Coder Social home page Coder Social logo

Comments (8)

ollyde avatar ollyde commented on July 19, 2024

The documentation is wrong.

The following works.

node ./node_modules/geoip-lite/scripts/updatedb.js license_key=XYZ

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

@OllyDixon not sure how your command is different from running npm run updatedb license_key=XYZ as internally npm does exactly what you've written.

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

hmm, I wonder if the quoting is an issue

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

no, doesn't look like that's an issue. Are you sure the license key is the same in both commands?

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

Both commands call the same url:

bos-mp9bf:node-geoip ptellis$ npm run updatedb license_key=ABC123

> [email protected] updatedb
> node scripts/updatedb.js "license_key=ABC123"

https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&license_key=ABC123
Checking  GeoLite2-Country-CSV.zip
ERROR: HTTP Request Failed [401 Unauthorized]
bos-mp9bf:node-geoip ptellis$ node scripts/updatedb.js license_key=ABC123
https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&license_key=ABC123
Checking  GeoLite2-Country-CSV.zip
ERROR: HTTP Request Failed [401 Unauthorized]

from node-geoip.

ollyde avatar ollyde commented on July 19, 2024

@bluesmoon I don't know I just copied the command and run in the project root both times.

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

ok. That error message is very specific to an invalid license key. Might help to edit the source and add some logging statements to see if there are any differences in the requests.

from node-geoip.

ollyde avatar ollyde commented on July 19, 2024

@bluesmoon I'll close for now.

from node-geoip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.