We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When making a call such as:
hyperwalletManager.getHyperwallet().listUsers({ "email" : emailAddress }, function(err, users){ ... });
A TypeError is thrown when no results are returned, due to the fact that the 204 No Content response does not include a "Content-Type" header.
TypeError: Cannot read property 'indexOf' of undefined at /Users/aaron/WaitrInc/hyperwallet-node-sdk/src/utils/ApiClient.js:175:88
The following conditional does not check the status code before executing indexOf against the non-existent res.header["content-type"] array.
indexOf
res.header["content-type"]
https://github.com/hyperwallet/node-sdk/blob/master/src/utils/ApiClient.js#L175
I have a PR which fixes this issue and also includes an additional test to cover this case.
The text was updated successfully, but these errors were encountered:
2c8b226
Merge pull request #17 from WaitrInc/fix/issue-16
6b4541d
Fixes #16
This issue still seems to be present in the npm module. Is there a build pending?
Sorry, something went wrong.
No branches or pull requests
When making a call such as:
A TypeError is thrown when no results are returned, due to the fact that the 204 No Content response does not include a "Content-Type" header.
The following conditional does not check the status code before executing
indexOf
against the non-existentres.header["content-type"]
array.https://github.com/hyperwallet/node-sdk/blob/master/src/utils/ApiClient.js#L175
I have a PR which fixes this issue and also includes an additional test to cover this case.
The text was updated successfully, but these errors were encountered: