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
In case of error, status 400 is set and response body is sent, but the function just goes on and four lines later it tries to send the response body again.
By the way, could you change it that the whole err object could be sent back instead of the general "request failed" message?
The text was updated successfully, but these errors were encountered:
And yes, we need to clean up the error logic here.
tobice
changed the title
Getting "headers already sent" when fetch action return error.
Getting "headers already sent" when fetch action returns error.
Oct 1, 2014
I think the problem is at this line: https://github.com/yahoo/fetchr/blob/master/libs/fetcher.js#L108
In case of error, status 400 is set and response body is sent, but the function just goes on and four lines later it tries to send the response body again.
By the way, could you change it that the whole err object could be sent back instead of the general "request failed" message?
The text was updated successfully, but these errors were encountered: