295
Views
7
Comments
Solved
500 Internal server error while I consume the Rest API.
Application Type
Mobile
Service Studio Version
11.53.41 (Build 62020)

Please tell me how to resolve this error.

UserImage.jpg
Chetna Upadhyay

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.

image_api_advanced.upload_image_post.trace.txt
2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

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

UserImage.jpg
Chetna Upadhyay

The API works fine when I tested it in postman.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Well than you should find out what you do different when calling it from OutSystems. 

UserImage.jpg
Chetna Upadhyay

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.

image_api_advanced.upload_image_post.trace.txt
2025-01-12 10-53-58
MatheusLima

what is this implementation? are u using mobile native features? where are u testing this, webbrowser or directly in a native mobile device?

UserImage.jpg
Chetna Upadhyay

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.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

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

UserImage.jpg
Chetna Upadhyay

The API works fine when I tested it in postman.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Well than you should find out what you do different when calling it from OutSystems. 

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