Open zoltanhalasz opened 5 years ago
I am experiencing the same issue with the newComment function, see photo attached.
package.json
"dependencies": {
"@sendgrid/mail": "^6.4.0",
"firebase-admin": "~7.0.0",
"firebase-functions": "^2.3.1"
},
"devDependencies": {
"@sendgrid/mail": "^6.4.0",
"tslint": "^5.12.0",
"typescript": "^3.2.2"
},
I hope someone can help us.
Hi,
Please look to the error message in the body above. Do a try catch and within the catch, console log the body errors.
Az Android Outlookhttps://aka.ms/ghei36 letöltése
From: Robert Gomez notifications@github.com Sent: Wednesday, July 10, 2019 9:43:10 PM To: fireship-io/fireship.io fireship.io@noreply.github.com Cc: Zoltan Halasz zoltan.halasz@outlook.com; Author author@noreply.github.com Subject: Re: [fireship-io/fireship.io] genericEmail error - SendGrid Transactional Email (#146)
I am experiencing the same issue with the newComment function, see photo attached.
package.json
"dependencies": { "@sendgrid/mail": "^6.4.0", "firebase-admin": "~7.0.0", "firebase-functions": "^2.3.1" }, "devDependencies": { "@sendgrid/mail": "^6.4.0", "tslint": "^5.12.0", "typescript": "^3.2.2" },
[Screen Shot 2019-07-10 at 2 41 13 PM]https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F33521443%2F60995629-dfc4ac00-a320-11e9-9121-9ac89f451d46.png&data=02%7C01%7C%7C2de046e8535647c2fa3108d7056675d7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636983809922269114&sdata=kSJDnU6bIr7fY7t8eV9kmfUojvvlD1vLp8iMHuOP0p4%3D&reserved=0
I hope someone can help us.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffireship-io%2Ffireship.io%2Fissues%2F146%3Femail_source%3Dnotifications%26email_token%3DAKGE7YZCH7N6XMD4HVY7UP3P6YUT5A5CNFSM4H7NIKX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZUL7MY%23issuecomment-510181299&data=02%7C01%7C%7C2de046e8535647c2fa3108d7056675d7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636983809922279119&sdata=XMd6ENTm%2FETOFvVIhbaVqSIkiDh8xUpguktmFqDfBxk%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKGE7Y7LHQLGU6HO5OBEJGLP6YUT5ANCNFSM4H7NIKXQ&data=02%7C01%7C%7C2de046e8535647c2fa3108d7056675d7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636983809922289124&sdata=3fBD7RjWLU%2BZ%2BubTb824%2FvXy5LMbWECiai6ALGSJ1lo%3D&reserved=0.
Unhandled error { Error: Bad Request at Request.http [as _callback] (node_modules/@sendgrid/client/src/classes/client.js:124:25) at Request.self.callback (node_modules/request/request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
code: 400,
message: 'Bad Request',
response:
{ headers:
{ server: 'nginx',
date: 'Wed, 10 Jul 2019 08:37:24 GMT',
'content-type': 'application/json',
'content-length': '646',
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' },
body: { errors: [Array] } } }