Closed Jigar3 closed 3 years ago
I was able to fix this by using the same Node version on Docker, but still would like to know why was it not working v12.2.0
Hi. With what promise rejects? 12.2 is very old version and may contain bugs. Better upgrade to the latest lts.
The promise rejects with empty object
I would use get-stream to convert stream to promise. Streams are tricky to handle properly.
Cool, thanks. You can close this issue.
Expected Behavior
Running on Docker should return the same result.
Actual Behavior
While running on Docker, the promise Rejects, instead of resolving with the correct values. It works fine on the local machine I am running on.
How Do We Reproduce?
This is the function I am using and calling it like below
So, on my local machine, I correctly get the response, but on Docker, I get the response of the catch block.
Any ideas why this might be happening? Any help appreciated.