Error 14004

hi everybody,
i created an api service with codeless, it is post request :

  1. i send a serial number
  2. service updates a property on a table on which row that its serial number matches mine.
  3. i tested it in backendless console with invoke button, every thing is what i want.

my problem: when i try to send request with post man, it give me an error:

{
“code”: 14004,
“message”: “Service invocation failed: ExceptionClass:"RuntimeException" {Msg:"com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value\n at [Source: "----------------------------402423429253811955971116\r\nContent-Disposition: form-data; name="serial_number"\r\n\r\n\"123456789\"\r\n----------------------------402423429253811955971116–\r\n"; line: 1, column: 55]", Cause:"Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value\n at [Source: "----------------------------402423429253811955971116\r\nContent-Disposition: form-data; name="serial_number"\r\n\r\n\"123456789\"\r\n----------------------------402423429253811955971116–\r\n"; line: 1, column: 55]"}”,
“errorData”: {}
}

i’m waiting, thanks for your help.

Hi again,

I’ve responded to you at Slack channel

Anton

thanks a lot Anton.

Hi,
I’m facing the same error with post request.
It would be great if you post the solution here.
Thanks

Can you invoke your service using Backendless Console?

Yes, it’s working fine in Backendless Console, but getting error in Postman and in angular app.
The error code is same i.e. 14004 both in Postman and in angular app.

When you invoke the service from Backendless Console, take a look in the browser’s Developer Tools (the network tab) how the request is structured. Here’s an example:

Once you see how the request is structured (see at the bottom of my screenshot above), you would need to do the same in Postman or your app.

1 Like