lunar-phase / smashgg-results

Summarizes tournament results in a concise manner
MIT License
6 stars 2 forks source link

API error? #2

Open rogueyoshi opened 3 years ago

rogueyoshi commented 3 years ago

PS C:\Users\sx-stream\Documents\GitHub\smashgg-results> node index.js battle-over-the-bridge-1 TypeError: Cannot read property 'externalUsername' of undefined at C:\Users\sx-stream\Documents\GitHub\smashgg-results\index.js:86:46 at Array.map (<anonymous>) at placingString (C:\Users\sx-stream\Documents\GitHub\smashgg-results\index.js:86:6) at Array.map (<anonymous>) at main (C:\Users\sx-stream\Documents\GitHub\smashgg-results\index.js:67:8) at processTicksAndRejections (internal/process/task_queues.js:95:5)

Do I need to specify token access levels? Did npm i but not sure why it's not working. Token is plaintext in SMASHGG_TOKEN file.

rogueyoshi commented 3 years ago

PR with fix: https://github.com/lunar-phase/smashgg-results/pull/3

EDIT: Not sure what broke the parsing change originally, but my node version is v14.17.3. Here's my package-lock for reference.