Hi all,
I’m trying to read emails and attached .ics file with Meteor.
The good news is, it works
The bad news is it does only on localhost and not once deployed to Galaxy
I test locally using ngrok so I can declare a route to mailgun to receive form-data direct to my local (that was helpful to create this code).
So here is the code, I added a lot of log to try to understand why it does not work …
I thought it was linked to writing right issues, but it seems not…
And here is what I get in Galaxy log
2017-12-18 21:50:50+01:00 { host: 'roti.express',
2017-12-18 21:50:50+01:00 'user-agent': 'mailgun/treq-16.12.0',
2017-12-18 21:50:50+01:00 'content-length': '28643',
2017-12-18 21:50:50+01:00 accept: '*/*',
2017-12-18 21:50:50+01:00 'accept-encoding': 'gzip',
2017-12-18 21:50:50+01:00 'content-type': 'multipart/form-data; boundary=e1f03361-c8a1-4b15-8ac7-67b3391740c5',
2017-12-18 21:50:50+01:00 'x-forwarded-for': '52.87.206.95',
2017-12-18 21:50:50+01:00 'x-forwarded-proto': 'https' }
2017-12-18 21:50:50+01:00 IncomingForm {
2017-12-18 21:50:50+01:00 domain: null,
2017-12-18 21:50:50+01:00 _events: {},
2017-12-18 21:50:50+01:00 _eventsCount: 0,
2017-12-18 21:50:50+01:00 _maxListeners: undefined,
2017-12-18 21:50:50+01:00 error: null,
2017-12-18 21:50:50+01:00 ended: false,
2017-12-18 21:50:50+01:00 maxFields: 1000,
2017-12-18 21:50:50+01:00 maxFieldsSize: 2097152,
2017-12-18 21:50:50+01:00 keepExtensions: false,
2017-12-18 21:50:50+01:00 uploadDir: '/tmp',
2017-12-18 21:50:50+01:00 encoding: 'utf-8',
2017-12-18 21:50:50+01:00 headers: null,
2017-12-18 21:50:50+01:00 type: null,
2017-12-18 21:50:50+01:00 hash: false,
2017-12-18 21:50:50+01:00 multiples: false,
2017-12-18 21:50:50+01:00 bytesReceived: null,
2017-12-18 21:50:50+01:00 bytesExpected: null,
2017-12-18 21:50:50+01:00 _parser: null,
2017-12-18 21:50:50+01:00 _flushing: 0,
2017-12-18 21:50:50+01:00 _fieldsSize: 0,
2017-12-18 21:50:50+01:00 openedFiles: [] }
2017-12-18 21:50:50+01:00 [ 'npm-22-fb0c0f5b', 'test' ]
2017-12-18 21:50:50+01:00 npm-22-fb0c0f5b
2017-12-18 21:50:50+01:00 test
2017-12-18 21:50:50+01:00 The file was saved!
Can someone throw me a bone, I don’t know which direction to digg now…
Thanks