Closed 4konung closed 4 years ago
Do you have your connection config setup properly?
Closing since no response from the issue reporter and not actionable as well
Do you have your connection config setup properly?
Setup done step by step with this guide. I've even hardcoded API_KEY and domain into config file.
Tested with different templates of adonis v5 framework - API server and WEB Application. This error occurs only on API template (of course with installed @adonisjs/view).
The reason of such errors is a got
package, for example here:
https://github.com/adonisjs/mail/blob/develop/src/Transports/Mailgun.ts#L125
There are a lot of issues with got
in other packages, the main reason of error is a number of libraries that are possibly in dependency tree that are monkey patching got
client. In my case it was obsolete googleapis
package. It was a really tricky to identify this problem.
Some references, to save someone else time:
Package version
Adonisjs v5
Node.js and npm version
Sample Code (to reproduce the issue)
Basically I've just copied from docs
When I try to send message I've got this error: