Skip to content

receiving a 401 error#52

Open
MisuseofMana wants to merge 1 commit intoAustinCodingAcademy:masterfrom
MisuseofMana:master
Open

receiving a 401 error#52
MisuseofMana wants to merge 1 commit intoAustinCodingAcademy:masterfrom
MisuseofMana:master

Conversation

@MisuseofMana
Copy link
Copy Markdown

Not sure why.
I can GET all, but can't post my login info to localhost:4001/auth/login
I've included the body but get back a 401 error. Here's the response.

{
"message": "Request failed with status code 401",
"name": "Error",
"stack": "Error: Request failed with status code 401\n at createError (C:\Users\Sean Yager\311_wk6_day2_authentication\node_modules\axios\lib\core\createError.js:16:15)\n at settle (C:\Users\Sean Yager\311_wk6_day2_authentication\node_modules\axios\lib\core\settle.js:17:12)\n at IncomingMessage.handleStreamEnd (C:\Users\Sean Yager\311_wk6_day2_authentication\node_modules\axios\lib\adapters\http.js:237:11)\n at IncomingMessage.emit (events.js:327:22)\n at endReadableNT (_stream_readable.js:1221:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)",
"config": {
"url": "https://dev-59lelze5.auth0.com/oauth/token",
"method": "post",
"data": "{"grant_type":"password","username":"contact@seanyager.com","password":"Auth03Mead","audience":"week6day2project","connection":"Username-Password-Authentication","scope":"openid","client_id":"A7rmytdrKq67SHgcvRD0a0ZiddeU3Bz5","client_secret":"rJ4EKe9tkaW7Gtwv9TlMeEcLkOkvMEF2j6pTctC4eZ8c49u_RFPoawB5UYGf8H0y"}",
"headers": {
"Accept": "application/json, text/plain, /",
"Content-Type": "application/json",
"User-Agent": "axios/0.19.0",
"Content-Length": 309
},
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant