54
Views
2
Comments
Solved
Failed to parse JSON request content
Question
Application Type
Reactive

Hi Community,

I have encounter the following errors in the LOGS in ODC portal,

Message: OS-BERT-40004 - Failed to parse JSON request content

Stack:    at OutSystems.RESTService.Runtime.Core.Controllers.ScreenServices.ScreenServicesApiController.EndpointAsync(Stream input, String apiVersionHash, EndpointAsyncImplementationDelegate implementationAsync, CancellationToken cancellationToken) 

However, when i clicked on the 'Go to Trace' button, it shows 'this trace can't be displayed'. But when i go to the traces listing, i can find the error, and when i clicked into it. The thing is that, i couldn't make sense of what is happening...and in the UI, everything appears to be working fine.

Are there any areas which i missed out, or where should i even start to find the 'root cause' of this?

Thank you!

2024-12-27 06-34-00
Suryanarayana Vundru
Solution

Hi @Jun Mun Chan,

Please verify and validate the data you are using — including field names, data types, sub-structures, and overall format — to ensure it is fully compatible with the structure you're using to parse the data. Any mismatch or malformed input can result in a JSON parsing error like OS-BERT-40004.


2022-05-01 03-47-53
Jun Mun Chan

Yes, after investigating, dirty data was injected into the DEV entity thru another functionality of the app, causing this error.

Thank you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.