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
The error I get in the console is: UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 21): TypeError: Cannot read property 'content-type' of undefined
As you can see in the comment I left in my code, I tried adding headers but I assume I'm not doing this right. Does anyone have any insight into what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
Assuming you export this function as the default export (es6) or via module.exports =, headers can be accessed by data.headers. data is an http request in nodejs
At least in the way I'm attempting to do it. I'm working on a microservice to do image conversion.
The error I get in the
console
is:UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 21): TypeError: Cannot read property 'content-type' of undefined
As you can see in the comment I left in my code, I tried adding headers but I assume I'm not doing this right. Does anyone have any insight into what I'm doing wrong?
The text was updated successfully, but these errors were encountered: