zencoder-node icon indicating copy to clipboard operation
zencoder-node copied to clipboard

Data object could be null in error handler

Open dudewheresmycode opened this issue 4 years ago • 1 comments
trafficstars

If a response does not include a full JSON response body, the data variable can be null. Which causes an error to be thrown on line 62 when reading the errors object from the response data.

TypeError: Cannot read property 'errors' of null

dudewheresmycode avatar Feb 03 '21 15:02 dudewheresmycode

We're unfortunately running into this issue for a request returning 404... @cgpuglie @chriswarren I realize that you may not work at Zencoder any longer but is there any chance this issue could be fixed? @tedk maybe?

rjayasin avatar Apr 17 '23 19:04 rjayasin