Skip to main content
New Participant
May 31, 2022 5:15 PM UTC
Solved

Calling POST with Web API fails, GET works

I am unable to call a WEB API that uses POST (trying to write to a datastore). I made sure the service account has all the right permission. I am getting the following error:

500 - Internal Server Error

Edit: Turns out the service account simply did not have access to one of the objects called. Thank you.

stefanhelzle0001
Brainy
Jun 1, 2022 6:33 AM UTC

Can you share the code? Is the returned error the one as defined in the onError parameter?

3 replies

stefanhelzle0001
Brainy
Jun 1, 2022 6:33 AM UTC

Can you share the code? Is the returned error the one as defined in the onError parameter?

New Participant
Jun 1, 2022 2:53 PM UTC

It turns out that the service account simply didn't have access to one of the objects called. Thanks.

Inspiring
Jun 1, 2022 11:48 AM UTC

Internal server error means the problem is in your code, if onError you are not mentioning status code 500. You have to share the code