#AxiosError: Request failed with status code 401
1 messages · Page 1 of 1 (latest)
@odd steppe
response: {
status: 401,
statusText: 'Unauthorized',
headers: Object [AxiosHeaders] {
date: 'Mon, 18 Dec 2023 17 41 GMT',
server: 'uvicorn',
'content-length': '216',
'content-type': 'application/json',
'access-control-allow-origin': '',
'access-control-allow-headers': '',
'access-control-allow-methods': 'POST, OPTIONS, DELETE, GET, PUT',
'access-control-max-age': '600',
via: '1.1 google',
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
connection: 'close'
},
The body of the response should have more details
that's not the body - I'm not sure how to long it using axios, however
there is no body
there isn't? Strange.
https://stackoverflow.com/questions/45017822/catching-error-body-using-axios-post
Have you checked error.response.data?
its so long i cant send it here
the code was working fine and i did not edit it and i got this error
@odd steppe
did i reached my limit of characters ?@odd steppe
I don't know - that's why I asked for the error body