You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into a strange issue. After switching to Google Cloud, all my upload API endpoints are failing. The file is being uploaded successfully to my temporary directory, but it seems that the middleware is resolving before ctx.requests is populated with the information about the file. This might only occur on highly spec'ed servers.
From this koa issue and comment, it was recommended that instead of .then(next), you resolve(next()). I didn't have time to try this out myself so I just switched to another upload-handling middleware, but this may be something that might be helpful.
The text was updated successfully, but these errors were encountered:
I am running into a strange issue. After switching to Google Cloud, all my upload API endpoints are failing. The file is being uploaded successfully to my temporary directory, but it seems that the middleware is resolving before
ctx.requests
is populated with the information about the file. This might only occur on highly spec'ed servers.From this koa issue and comment, it was recommended that instead of
.then(next)
, youresolve(next())
. I didn't have time to try this out myself so I just switched to another upload-handling middleware, but this may be something that might be helpful.The text was updated successfully, but these errors were encountered: