Error when requesting client access token from server API #103
Answered
by
asafc
rbanks-willow
asked this question in
Q&A
|
I'm running the OPAL server using the docker image, and I'm getting the following error from the The request seems to match the swagger definition, so I'm not sure what's missing that's causing the error. Any help or tips would be appreciated. |
Answered by
asafc
Jul 16, 2021
Replies: 2 comments 5 replies
|
Hi @rbanks-willow, OPAL was recently upgraded to a more recent version of FastAPI and they became a little bit more strict with HTTP request content-type (supposedly due to security issues). The In postman, simply change the following: A valid request example |
0 replies
Answer selected by
asafc
|
As far as I can tell, this also applies to the obtain-token function from the opal cli -- here with an added pprint of the json response: |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Hi @rbanks-willow,
OPAL was recently upgraded to a more recent version of FastAPI and they became a little bit more strict with HTTP request content-type (supposedly due to security issues).
The
Content-Typeheader of all your requests must beapplication/json, you are currently submittingtext/plain.In postman, simply change the following:
A valid request example
A valid request (and response) will look like this: