1. Winthor Caingles
  2. PowerBuilder
  3. Thursday, 9 February 2023 06:11 AM UTC
Good day Appeon Support....
 
 
I need your help... what will I do if I get this kind of message? My work around is sending messages by ExportRowAsJson... I want to send it all at once. I used dw_1.ExportJson() but this is the response received.
 
"statusCode": 400,
"statusText":"Bad Request",
"errorCode":400101,
"errorType":"CLIENT_ERROR",
"errorDescription":"Cannot deserialize value of type `au.com.soprano.rest.lib.bean.message.APIMessageBean` from Array value (token `JsonToken.START_ARRAY`)"
 
 
Thanks for your help...
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Friday, 10 February 2023 07:59 AM UTC
  2. PowerBuilder
  3. # 1

Hi Winthor,

 

 

According to your description, this issue seems to be related that your server only accepting JSON object (the outmost data format: "{}") instead of JSON Array (the outmost data format: "[{}]") requests.

dw_1.ExportRowAsJson export JSON object  (”{}”)

dw_1.ExportJson export JSON array (”[{}]”)

 

BTW, here is a solution I found by searching similar error messages online. I include it here for your reference:

https://stackoverflow.com/questions/74138735/reading-from-json-using-jackson-error-cannot-deserialize-value-of-type-from

 

Regards,

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.