Skip to content
New issue

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

HTTP 299 response causing error when attempting to parse the response #100

Open
babakontheweb opened this issue Dec 19, 2024 · 0 comments
Open

Comments

@babakontheweb
Copy link

We recently came across an error with our integration with this SDK where a POST to https://us-street.api.smarty.com/street-address responded with an unexpected status code HTTP 299. With the status code being a 2xx class, the SDK then attempted to parse the response only to fail with the following message and trace.

response.payload.map is not a function
TypeError: response.payload.map is not a function
    at assignResultsToLookups (util/sendBatch.js:30:20)
    at util/sendBatch.js:18:13
    at process.processTicksAndRejections (process/task_queues:95:5)
Screenshot 2024-12-19 at 3 38 37 PM

This was on version 5.1.1 of the SDK but reviewing the latest version of assignResultstoLookups the same issue should occur with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant