Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Please I need help with this error #16

Open
talented-vicky opened this issue Jan 19, 2023 · 2 comments
Open

Please I need help with this error #16

talented-vicky opened this issue Jan 19, 2023 · 2 comments

Comments

@talented-vicky
Copy link

ResponseError: Unauthorized
at Request._callback (C:\Users\HP\Documents\personal\node_js\shopping\shopping-app\node_modules@sendgrid\client\src\classes\client.js:124:25)
at Request.self.callback (C:\Users\HP\Documents\personal\node_js\shopping\shopping-app\node_modules\request\request.js:185:22)
at Request.emit (node:events:390:28)
at Request. (C:\Users\HP\Documents\personal\node_js\shopping\shopping-app\node_modules\request\request.js:1154:10)
at Request.emit (node:events:390:28)
at IncomingMessage. (C:\Users\HP\Documents\personal\node_js\shopping\shopping-app\node_modules\request\request.js:1076:12)
at Object.onceWrapper (node:events:509:28)
at IncomingMessage.emit (node:events:402:35)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 401,
response: {
headers: {
server: 'nginx',
date: 'Wed, 18 Jan 2023 23:59:51 GMT',
'content-type': 'application/json',
'content-length': '116',
connection: 'close',
'access-control-allow-origin': 'https://sendgrid.api-docs.io',
'access-control-allow-methods': 'POST',
'access-control-allow-headers': 'Authorization, Content-Type, On-behalf-of, x-sg-elas-acl',
'access-control-max-age': '600',
'x-no-cors-reason': 'https://sendgrid.com/docs/Classroom/Basics/API/cors.html',
'strict-transport-security': 'max-age=600; includeSubDomains'
},
body: { errors: [Array] }
}
}

@talented-vicky
Copy link
Author

I have printed the api_key in my terminal and it's actually the same as what I have in my sendGrid account

@TylerThompson
Copy link

@talented-vicky not from sendgrid or nodemailer, but this could be a permissions issue with the apikey user

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

No branches or pull requests

2 participants