401 on POST but not GET

darryl_ssdarryl_ss Member Posts: 115
edited February 2020 in Development


Is there any reason why a POST request would fail with a 401 error yet a GET request will work?

The server response is telling me that the access token is invalid, yet it can't be, as I can use that same token to run a GET request?

Post edited by darryl_ss on

1 comment

  • joshgg29joshgg29 Member Posts: 1

    The endpoint must support a POST request. Some endpoints only support a GET request, and in that event you will receive a 405 error.

    You may not have your parameters set for your POST request correctly,

    please show some of your POST code and we can better assist you.

    "405 Method Not Allowed A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource"

Sign In or Register to comment.