-
-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Description
Tried using apolloUploadExpress()
but my requests were timing out.
Switched instead to directly calling processRequest()
and now I see that that function never actually resolves. Thought maybe if I set all the max sizes to MAX_SAFE_INTEGER
it would help, but apparently not.
try {
req.body = await processRequest(req, {
maxFieldSize: Number.MAX_SAFE_INTEGER,
maxFileSize: Number.MAX_SAFE_INTEGER,
maxFiles: Number.MAX_SAFE_INTEGER,
});
// Code never reached
console.info("done");
next();
} catch (err) {
// Code never reached
console.error(err);
}
I dumped some logs in the middleware.js
code, for each of the busyboy
events, and the only one that triggers is .on('finish')
. Busyboy parser is initialised with following config:
{
headers: {
host: '192.168.100.237:4000',
accept: '*/*',
authorization: 'Bearer <some token>',
api_key: '<some key>',
'accept-encoding': 'gzip, deflate',
'if-none-match': 'W/"3f8-yNZlH6jmDfpYMd2VxllbNZXCKkw"',
'accept-language': 'en-us',
'content-type': 'multipart/form-data; boundary=hSYbJ_sogzfSovLU3w7jIdppqkKLjjup1AsGtCsptszSxOLX38rD5wJ0tO1WcQ5UqeAlqu',
'content-length': '21508',
'user-agent': 'JIM/1 CFNetwork/897.15 Darwin/17.5.0',
connection: 'keep-alive',
os_version: 'ios'
},
limits: {
fieldSize: 9007199254740991,
fields: 2,
fileSize: 9007199254740991,
files: 9007199254740991
}
}
Metadata
Metadata
Assignees
Labels
No labels