iFraan / rocketleague.js

It's a scrapper/wrapper of TRNetwork stats site for Rocket League.
GNU General Public License v3.0
4 stars 2 forks source link

Grabbing Users Information #1

Closed Hiekki closed 2 years ago

Hiekki commented 2 years ago

When looking up someone's information, example yours from your README, all I get are errors.

error:

0|bot  | SyntaxError: Unexpected token e in JSON at position 0
0|bot  |     at JSON.parse (<anonymous>)
0|bot  |     at C:\Users\Hiekki\Documents\dev\eris-template\node_modules\rocketleague.js\src\index.js:17:22
0|bot  |     at ChildProcess.exithandler (node:child_process:390:7)
0|bot  |     at ChildProcess.emit (node:events:527:28)
0|bot  |     at maybeClose (node:internal/child_process:1092:16)
0|bot  |     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

I'm not sure what else to do beyond this? I've tested other names and platforms just to get the same result.

code:

            const { RLAPI, PLATFORM } = require('rocketleague.js');

            const user = await RLAPI.fetchUser(PLATFORM.Steam, 'iFraan_')
            console.log(user.get2v2);
iFraan commented 2 years ago

Are you using windows 10? Try downloading curl and putting it in the root of your project. https://curl.se/download.html

iFraan commented 2 years ago

Closing this since no further response.