forked from jaydenseric/graphql-upload
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
When I use processRequest
in my AWS lambda function like this:
module.exports.hello = (event, context, callback) => {
processRequest(event, null, { environment: "lambda" }).then((processed) => {
// ...
});
};
I get the following error:
ERROR Unhandled Promise Rejection
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "TypeError: Cannot read property 'once' of null",
"reason": {
"errorType": "TypeError",
"errorMessage": "Cannot read property 'once' of null",
"stack": [
"TypeError: Cannot read property 'once' of null",
" at /var/task/node_modules/graphql-upload-minimal/public/process-request.js:378:14",
" at new Promise (<anonymous>)",
" at processRequest (/var/task/node_modules/graphql-upload-minimal/public/process-request.js:78:10)",
" at Runtime.module.exports.handle [as handler] (/var/task/handler.js:27:9)",
" at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"
]
},
"promise": {},
"stack": [
"Runtime.UnhandledPromiseRejection: TypeError: Cannot read property 'once' of null",
" at process.<anonymous> (/var/runtime/index.js:35:15)",
" at process.emit (events.js:310:20)",
" at process.EventEmitter.emit (domain.js:482:12)",
" at processPromiseRejections (internal/process/promises.js:209:33)",
" at processTicksAndRejections (internal/process/task_queues.js:98:32)"
]
}
Metadata
Metadata
Assignees
Labels
No labels