Please tell me how to resolve this error.
Hi Chetna Upadhyay,
Please follow this link to get the Logging Level.
https://www.outsystems.com/forums/discussion/37118/500-internal-server-error-when-rest-api-call/
https://www.outsystems.com/forums/discussion/33272/setting-logging-level-of-a-rest-api/
Thanks,
Ramesh
I enabled full logging and then try to post the image it still showing internal server error 500.
I have downloaded and attach the http trace below. Please see and tell me what's wrong with this.
Hi Cetna,
The HTTP 500 means that the external API that you called has an exception. If you have no access to the logging of the API that you consumed, you need to ask the supplier/developer to look into their error logging and determine what is wrong.
Most of the time it is because you provided wrong formatted data or did not provide data that actually is mandatory. If you have calls to the API that were successful in the past, you could compare the input and maybe figure out what you do wrong on your side.
Regards,
Daniel
The API works fine when I tested it in postman.
Well than you should find out what you do different when calling it from OutSystems.
what is this implementation? are u using mobile native features? where are u testing this, webbrowser or directly in a native mobile device?
Yes, I am testing this app in my mobile device as it does not support web browser to test the app. I need to send the images click on my mobile phone inside this app to the Rest API Post operation.