Giter VIP home page Giter VIP logo

Comments (7)

acifani avatar acifani commented on June 26, 2024 1

@cirrusUK @tytondon1234 Hi guys, I've published version 0.5.0 on npm. AUR should follow soon, I'm in contact with the guy and I'll tell him to update his version.

I've decided to go with option 2 for now, meaning everyone has to provide its own API key and set it to SOCCER_GO_API_KEY env var. You can get it here: https://www.football-data.org/client/register

Feedback is welcome

from soccer-go.

matei-radu avatar matei-radu commented on June 26, 2024

Have you tried installing it globally via NPM, just to see if it's the AUR package the one with issues (or both)?

In any case, tomorrow I'll investigate a bit on this.

from soccer-go.

cirrusUK avatar cirrusUK commented on June 26, 2024

i get errors usiing both methods
`cirrus@hawker64  /home/cirrus   node /usr/lib/node_modules/soccer-go/lib/cache/index.js  21:25:05
fs.js:121
throw err;
^

Error: EACCES: permission denied, open '/usr/lib/node_modules/soccer-go/lib/cache/.cache'
at Object.openSync (fs.js:450:3)
at Object.writeFileSync (fs.js:1212:35)
at new Cache (/usr/lib/node_modules/soccer-go/lib/cache/Cache.js:35:20)
at Object. (/usr/lib/node_modules/soccer-go/lib/cache/index.js:13:15)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
`

i will try on another arch install and report back asap, thanks.

from soccer-go.

justinwerner avatar justinwerner commented on June 26, 2024

I have the same issue on Manjaro I3 edition (Arch based distribution). I am not sure why this is happening. Also, I tested it on my mac and am having the same result. @matt-block did you figure anything out?

from soccer-go.

matei-radu avatar matei-radu commented on June 26, 2024

I had a quick look and the "issue" is in the API: we are using v1 which was rendered obsolete at the beginning of the year. From the error response:

v1 has reached it's EOL. Please migrate to v2.

We need to migrate to v2 to solve this. I can work on this but only over the weekend.

@tytondon1234
@cirrusUK (sorry for the late response)

from soccer-go.

acifani avatar acifani commented on June 26, 2024

@cirrusUK @tytondon1234 Hi guys, apologize for being so late to the party. Our data provider has recently deprecated the APIs we were using, as @matt-block noticed.

The V2 will also have a stricter free tier and require an API key to work. I can see 2 options going forward:

  1. Move to a client/server model, with me providing the API key on the server
  2. Make users provide their own API key. This will be a bit inconvenient but also will guarantee not running into the free tier capping that a shared API key will probably cause

from soccer-go.

cirrusUK avatar cirrusUK commented on June 26, 2024

@acifani && @matt-block I'm most glad to report that its seems to be the AUR pkg at fault. it throws same permissions error i posted above even after exporting new API key, however installing with npm it works great, thanks for the code, and apoligies for my belated response.
regards
P.S the ascii text has a typo, it's Premier league not Premiere ;)
IIRC i fixed it with a one character edit to /src/constants/leagues.ts
- { code: 'PL', name: 'Premiere League' },
+ { code: 'PL', name: 'Premier League' },
sadly the free tier does not include the Scottish league, and it's old firm day tomorow 👍 come on the Glasgow Rangers

from soccer-go.

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.