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

checking the PM2 logs gives me this #2

Closed
jaapbakker88 opened this issue Aug 17, 2016 · 6 comments
Closed

checking the PM2 logs gives me this #2

jaapbakker88 opened this issue Aug 17, 2016 · 6 comments

Comments

@jaapbakker88
Copy link

I'm on Ubuntu 14.04
NPM 2.15
Node 4.4.7

mailgunner-0 (err):     at Function.Module._load (module.js:276:25)
mailgunner-0 (err):     at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
mailgunner-0 (err):     at Module.require (module.js:353:17)
mailgunner-0 (err):     at require (internal/module.js:12:17)
mailgunner-0 (err):     at Object.<anonymous> (/var/www/mailgunner/app.js:3:12)
mailgunner-0 (err):     at Module._compile (module.js:409:26)
mailgunner-0 (err):     at Object.Module._extensions..js (module.js:416:10)
mailgunner-0 (err):     at Module.load (module.js:343:32)
mailgunner-0 (err):     at Function.Module._load (module.js:300:12)
mailgunner-0 (err): Error: Cannot find module 'cors'
mailgunner-0 (err):     at Function.Module._resolveFilename (module.js:325:15)
mailgunner-0 (err):     at Function.Module._load (module.js:276:25)
mailgunner-0 (err):     at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
mailgunner-0 (err):     at Module.require (module.js:353:17)
mailgunner-0 (err):     at require (internal/module.js:12:17)
mailgunner-0 (err):     at Object.<anonymous> (/var/www/mailgunner/app.js:3:12)
mailgunner-0 (err):     at Module._compile (module.js:409:26)
mailgunner-0 (err):     at Object.Module._extensions..js (module.js:416:10)
mailgunner-0 (err):     at Module.load (module.js:343:32)
mailgunner-0 (err):     at Function.Module._load (module.js:300:12)
@jaapbakker88
Copy link
Author

Alright, I fixed this by adding the CORS module to the app, now it seems to be running. But the mailgun.myurl.com/api/submit/:mail Does just return me an error page of my main website. Do you have any idea how to fix this? Sorry for bothering. I'm still pretty new to all this stuff

@murphyj
Copy link
Owner

murphyj commented Aug 17, 2016

@jaapbakker88 have you configured your config file with the correct mailgun parameters?

You can try using your sandbox credentials locally.

@murphyj
Copy link
Owner

murphyj commented Aug 26, 2016

Hi Jaappakker,

Have you added the correct credentials for Mailgunner for accessing the API?

Regards

James Murphy Founder, Devangst Enterprises Ltd
[image: photo] Mobile: +44 7480 831 253
Email: developerangst@gmail.com
Skype: developerangst@gmail.com <#>
Website: http://devangst.com
Get a signature like this: Click here!
http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0=&u=773482359579331

On Wed, 17 Aug 2016 at 14:54, jaapbakker88 notifications@github.com wrote:

Alright, I fixed this by adding the CORS module to the app, now it seems
to be running. But the mailgun.myurl.com/api/submit/:mail Does just
return me an error page of my main website. Do you have any idea how to fix
this? Sorry for bothering. I'm still pretty new to all this stuff


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAL5X9uL0Qd06ZtTBwQVnrDC2BQwNbz5ks5qgxKhgaJpZM4Jmc8O
.

@murphyj
Copy link
Owner

murphyj commented Aug 27, 2016

@jaapbakker88 just remembered. When you're hosting mailgunner you also need to make sure you can send and receive mail to the Mailgun API. Make sure you've added the CNAME etc. records.

See: https://documentation.mailgun.com/quickstart-sending.html

@jaapbakker88
Copy link
Author

I'll try setting up everything from scratch again. Does the mailgun domain have to be the same one as the one I'm hosting the script? Eg. Mailgun domain: mg.example.com and domain where I'm hosting and sending from: somethingelse.nl

Jaap Bakker

On za 27 aug. 2016 at 21:52 James Murphy

<
mailto:James Murphy notifications@github.com

wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }

https://github.com/jaapbakker88
just remembered. When you're hosting mailgunner you also need to make sure you can send and receive mail to the Mailgun API. Make sure you've added the CNAME etc. records.

See:
https://documentation.mailgun.com/quickstart-sending.html

You are receiving this because you were mentioned.

Reply to this email directly,
#2 (comment)
, or
https://github.com/notifications/unsubscribe-auth/ABHlhuk1cFFMtB7PDFsyc9NOP9AilSi-ks5qkJWMgaJpZM4Jmc8O
.

@murphyj murphyj closed this as completed Feb 16, 2021
@murphyj murphyj reopened this Feb 16, 2021
@murphyj
Copy link
Owner

murphyj commented Feb 16, 2021

Realised I didn't answer the last question.

No the domain can be different. There's no cross-domain restrictions as far as I know. Not from the local server anyway.

@murphyj murphyj closed this as completed Feb 16, 2021
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