Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No operator data on new players #2

Open
reality-exe opened this issue Mar 17, 2024 · 1 comment
Open

No operator data on new players #2

reality-exe opened this issue Mar 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@reality-exe
Copy link

When attempting to get player data from someone who's new, it returns server error 500.

Here's what gets logged:

TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at /home/node/app/src/http/ubi-r6-stats.ts:529:74
    at Generator.next (<anonymous>)
    at fulfilled (/home/node/app/src/http/ubi-r6-stats.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: No operator data.
    at /home/node/app/src/http/ubi-r6-stats.ts:168:19
    at Array.forEach (<anonymous>)
    at /home/node/app/src/http/ubi-r6-stats.ts:158:19
    at Generator.next (<anonymous>)
    at fulfilled (/home/node/app/src/http/ubi-r6-stats.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
@SwiftCODA
Copy link
Owner

Thanks. This is a known issue of Ubisoft's and I don't think they're planning to do anything about it. Basically, sometimes the lifetime or operators data will be blank for certain players, often "new" ones.

If you're interested in contributing, go ahead and make a fork of the repo and add a handler for that error in both the lifetime and operators request functions--in a manner that just displays null as the value for operators and lifetime in the final response object.

@SwiftCODA SwiftCODA added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants