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

TypeError: Cannot read property 'continent' of undefined #515

Closed
cibergarri opened this issue Jun 24, 2021 · 0 comments
Closed

TypeError: Cannot read property 'continent' of undefined #515

cibergarri opened this issue Jun 24, 2021 · 0 comments

Comments

@cibergarri
Copy link

I got this error when I use the minfraud insights api, but not always, just from time to time. It looks like the response does not have the correct format so is not being correctly parsed.

I was using version 3.2.0 and I upgraded to 3.4.0 but it didn't fixed the issue

TypeError: Cannot read property 'continent' of undefined at new Country (/code/node_modules/@maxmind/geoip2-node/dist/src/models/Country.js:10:44) at new City (/code/node_modules/@maxmind/geoip2-node/dist/src/models/City.js:7:9) at new Insights (/code/node_modules/@maxmind/geoip2-node/dist/src/models/Insights.js:6:9) at Insights.getIpAddress (/code/node_modules/@maxmind/minfraud-api-node/dist/src/response/models/insights.js:22:26) at new Insights (/code/node_modules/@maxmind/minfraud-api-node/dist/src/response/models/insights.js:13:31) at IncomingMessage.response.on (/code/node_modules/@maxmind/minfraud-api-node/dist/src/webServiceClient.js:60:36) at IncomingMessage.emit (events.js:203:15) at IncomingMessage.EventEmitter.emit (domain.js:448:20) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19)

maxmind/GeoIP2-node#415

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

No branches or pull requests

2 participants