cancel
Showing results for 
Search instead for 
Did you mean: 

Error while parsing an XML stream: 'BOM / charset detection failed'

Pavan_Golesar
Active Participant

Dear Gurus,

While carrying out gateway post operation I am facing below issue...

Error while parsing an XML stream: 'BOM / charset detection failed'


Snap:


Did anyone encountered similar error.??


Regs,

Pavan G

Accepted Solutions (0)

Answers (3)

Answers (3)

AshwinDutt
Active Contributor

Hello Pavan,

Can you try just passing as below ? Do not put ' , '.

{

"Remarks":"P@V@N"

}

Regards,

Ashwin

Pavan_Golesar
Active Participant
0 Kudos

When I removed Comma (,) in it gives Error while parsing an XML stream: 'BOM / charset detection failed' in error log ..

Pavan_Golesar
Active Participant
0 Kudos

Current Error:

So I checked in ST22 Snapshot from ST22.

AshwinDutt
Active Contributor
0 Kudos

Now please debug inside create entity and see why 500 internal server error is coming.

amarnath_prasad
Explorer
0 Kudos

Could you please go into  little deep so that i can understand complete requirement?

CarlosRoggan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Pavan,

usually, for POST operation with json, my requests look like follows:

Headers:

Content-Type      application/json

Accept                 application/json

body:

{

     "name"     : "Joe",

     "age"        : "22",

     "ID"          :  "1234",

     "propname" : "propvalue"

}

As Ashwin indicated, no comma after the last property,

also no

d:

only the payload in between curley braces.

Regards,

Carlos

Pavan_Golesar
Active Participant
0 Kudos

OK, Let me try. I would let you know if it works in my case.

Thanks

Pavan G

Pavan_Golesar
Active Participant
0 Kudos

Hi carlos,

I tried as You said but still facing same issue. It didn't help.

Regs,

Pavan G

AshwinDutt
Active Contributor
0 Kudos

Is it still 500 Internal Server Error ? If yes did you check if call is coming to CreateEntity Method ?

Pavan_Golesar
Active Participant
0 Kudos

Yes, Debugger is hitting on method CreateEntity .

AshwinDutt
Active Contributor
0 Kudos

Then now issue is not with Payload. POST request is fired successfully.

Continue debugging and check what is the issue.