Open vendicto opened 6 years ago
See The Workaround here: https://github.com/graphcool/graphcool-framework/issues/512
@jesstelford unfortunately the work around seems to not be related to the error message "Function returned invalid status code: 0. Raw body: empty.last".
I get this error message just adding some console.log and not because exception thrown.
That's a shame! Do you have an isolation case where you can see that by adding only a console.log()
, it causes the error?
Having also this issue with aws-sdk s3 upload.
Removing console.log
s seems to help.
yes, it's a shame!, I commented all my console.log calls and finally works. It's weird, because in my local works fine. Now I have to find another way to track the behavior of the backend logs 😭
@brodriguezs one thing I have figured out as a workaround is using sentry and just forcing Raven.captureException(error, { extra: 'custom error message with ${variable}' } })
. So just create a separate dev only sentry account for the sole purpose of debugging your graphcool functions more easily.
@grimunit can you explain this a bit more?
@rubelux basically use sentry as a replacement for console.log
. So don't put the Raven.captureException
in a catch
block, just put it where you would put a console.log
and send the variables along that you're trying to inspect. And they print it out really cleanly for you and it has just been a faster way to view and debug the state in my functions.
For bug reports, please fill in the next sections:
Current behavior
Reproduction
graphcool.yml
facebookAuthentication.graphql
facebookAuthentication.ts
facebookCallback
action
schema
Expected behavior? return value will be