Comments (7)
@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.
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.
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.
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.
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.
@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:
- Move to a client/server model, with me providing the API key on the server
- 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.
@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)
- Fix "identical-code" issue in src/commands/team.ts
- Fix "identical-code" issue in src/commands/fixtures.ts
- Fix "identical-code" issue in src/commands/team.ts
- Fix "identical-code" issue in src/commands/fixtures.ts
- Fix "method_lines" issue in src/commands/team.ts
- Problem with figlet dependency HOT 5
- update-notifier should suggest -g flag
- Improve error handling HOT 1
- Add caching for API calls HOT 1
- Migrate to cli-table3
- An in-range update of ts-jest is breaking the build 🚨 HOT 6
- Move to npm
- Issue with line endings HOT 2
- An in-range update of ora is breaking the build 🚨 HOT 1
- An in-range update of @types/ora is breaking the build 🚨 HOT 1
- An in-range update of @types/node is breaking the build 🚨 HOT 8
- An in-range update of @types/node is breaking the build 🚨 HOT 8
- An in-range update of ts-jest is breaking the build 🚨 HOT 2
- Scores are incorrect or not completed HOT 2
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 soccer-go.