smarty / smartystreets-javascript-sdk

The official client libraries for accessing SmartyStreets APIs from javascript.
https://smartystreets.com/docs/sdk/javascript
Apache License 2.0
31 stars 30 forks source link

US Streets Client throws response.payload.map is not a function #43

Closed alexj99 closed 11 months ago

alexj99 commented 2 years ago

Getting this error from us-street service TypeError: n.payload.map is not a function at main.c036dd1….js:2 at main.c036dd1….js:2 at main.c036dd1….js:2 at main.c036dd1….js:2 at MutationObserver.a (main.c036dd1….js:2) at t.invoke (polyfills.f1627db….js:2) at n.runGuarded (polyfills.f1627db….js:2) at MutationObserver.<anonymous> (polyfills.f1627db….js:2)

My request is: https://(My host name)/(My host name)?street=6080+CENTER+DRIVE+SUITE+850&city=LOS+ANGELES&state=CA&zipcode=90045&match=invalid&candidates=5&agent=smartystreets+(sdk:javascript@1.11.3)&key=(My embedded key)

The response is a 200 code. Not really sure where to look except here.

alexj99 commented 2 years ago

The issue was occurring because I was using SharedCredentials and a batch lookup. This is not allowed

alexj99 commented 2 years ago

After removing the batch lookups the error is still happening

jcrob2 commented 1 year ago

Hi @alexj99. Are you still having this issue?