Skip to main content
May 31, 2022
Solved

Calling POST with Web API fails, GET works

  • May 31, 2022
  • 3 replies
  • 0 views

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.

Best answer by stefanhelzle0001

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

3 replies

stefanhelzle0001
Brainy
June 1, 2022

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

June 1, 2022

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

June 1, 2022

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