Node.js client throwing an error while API return Plan limit has been reached error #265
Open
2 tasks done
Labels
bug
Something isn't working
Prerequisites
Put an X between the brackets on this line if you have done all of the following:
Description
Hello, An error is thrown when API return Plan limit has been reached
I initilaized the Mindee client to not throw, instead return an error.
Steps to Reproduce
Expected behavior:
Client should not through, instead return an error with proper error code as mentioned in documentation.
Actual behavior:
An error is thrown saying :
TypeError: Cannot read properties of undefined (reading 'ocr')
It shouldn't be trying to process the API response while having an error returned.
Reproduces how often:
Every time
Versions
Testing on Mac OS
14.1.1
Using Node.js
v20.9.0
Additional Information
The text was updated successfully, but these errors were encountered: