Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Help Error auth #1

Open
sussdorf opened this issue Feb 24, 2023 · 4 comments
Open

Help Error auth #1

sussdorf opened this issue Feb 24, 2023 · 4 comments

Comments

@sussdorf
Copy link

Hi i became a Error Messege when i sende a requests top the api this won:

{
"detail": [
{
"loc": [
"header",
"authorization"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
What can i do

@sussdorf
Copy link
Author

Error: Unprocessable Entity

@Saif807380
Copy link
Owner

The API endpoint you're trying to call is an authenticated one. It requires you to send a JWT in the header with the authorization field. The request header would look something like this -

{
    "Authorization": "Bearer <jwt>",
    .
    .
    .
}

@Saif807380
Copy link
Owner

Reference for sending authenticated request using Postman - https://stackoverflow.com/questions/24709944/sending-jwt-token-in-the-headers-with-postman

@sussdorf
Copy link
Author

I have do this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants