Comments (13)
thank your report.
Will take a look ASAP.
from geoip.
I saw you are on node 0.6.x.
If possible, please update to node 0.8.x, the support for node 0.6.x is now been obsoleted
from geoip.
Thank you Kunno, let me upgrade node to 0.8.x
from geoip.
Hi Kunno, now I have node v0.8.6, however I see same issue. Thank you.
from geoip.
Do you use the latest city data from maxmind?
Are you sure there are actual ip address in req.header('X-Forwarded-For')
?
Because the city.lookupSync method is works me without any problem if I provided the valid ipv4 address to it.
from geoip.
Hi Kuno, I have latest city data file from maxmind. req.header('X-Forwarded-For') also gives me correct IP address. I also noticed some of IPs are getting city code and some are not.
What I found is with certain IP addresses city.lookupSync does not return city data.
Thank you.
from geoip.
Can you give me some example ip address that didn't return data?
from geoip.
try this one : 50.152.210.240
from geoip.
it return some data on my machine
> city.lookupSync('50.152.210.240');
{ country_code: 'US',
country_code3: 'USA',
country_name: 'United States',
latitude: 38,
longitude: -97,
continent_code: 'NA' }
>
from geoip.
right, I get same data but it does not have city data
from geoip.
this is a normal situation, it turns out that for some ip addresses the maxmind's city database is not accurate enough to have the actual info about city.
this is normal for free version db, not sure the situation in commercial version.
from geoip.
Thank you Kuno. Strange thing is it was showing city fine for some time and suddenly stopped.
from geoip.
Done.
from geoip.
Related Issues (20)
- installation problema HOT 7
- Bug in the async country lookup method HOT 7
- Build fails on Windows 7 HOT 13
- nan.h error on node v0.10.22 HOT 14
- GeoIP on Ubuntu 13.10 HOT 7
- installation problem HOT 2
- core dump when invalid data file supplied HOT 2
- build fails under node v0.11.13 HOT 2
- Compile for io.js 1.0.4 HOT 2
- nan ~1.8.4 required for io.js 2.x.x compatibility HOT 1
- Synchronous method(the recommended way). why? HOT 1
- Installation on CentOs
- Build failed on io.js v2.3.1 HOT 1
- IP2Location LITE Support HOT 1
- use of static to get the value of info HOT 2
- OS X 10.11 Installation Issues HOT 2
- Doesn't build with nodejs 6.1.0 HOT 3
- Is it possible to use GeoIP2-City.mmdb ?
- Bug report(Mac os X 10.12) HOT 1
- Respect DNT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoip.