r6api.js icon indicating copy to clipboard operation
r6api.js copied to clipboard

Ranked 2.0 not working

Open Us3r-3C29x opened this issue 2 years ago • 17 comments

I tried to use it, but its not working anymore

Please fix

Us3r-3C29x avatar Dec 07 '22 14:12 Us3r-3C29x

Same.

Please open pr if you have a fix :)

I will try to figure out how to get stuff from ranked 2.0 once I have enough free time, spending most of my coding time on Advent of Code these days.

related: https://github.com/Seems2Legit/Rainbow-Six-Siege-Player-Stats-API/issues/91

danielwerg avatar Dec 09 '22 10:12 danielwerg

Any updates?

Us3r-3C29x avatar Dec 14 '22 16:12 Us3r-3C29x

https://github.com/hmes98318/r6s-stats-api

He updated it, you may have a look on it. I dont currently have time

Us3r-3C29x avatar Dec 16 '22 09:12 Us3r-3C29x

https://github.com/hmes98318/r6s-stats-api

He updated it, you may have a look on it. I dont currently have time

Last I checked that package was simply scraping r6 tracker site, which @BadCoder1337 seem to confirm in other issue.

danielwerg avatar Dec 16 '22 12:12 danielwerg

Got it working on my private branch, thanks to https://github.com/Seems2Legit/Rainbow-Six-Siege-Player-Stats-API/issues/91#issuecomment-1362191970

Still need to re-factor a lot of code now. Once it's done I will update master branch, pr are always welcome :)

Also the comment doesn't directly mention that you need to pass following headers:

Ubi-AppId: "e3d5ea9e-50bd-43b7-88bf-39794f4e3d40",
Authorization: "ubi_v1 t=TICKET_HERE",
Ubi-SessionId: "UUID_HERE"

danielwerg avatar Dec 22 '22 07:12 danielwerg

https://github.com/danielwerg/r6api.js/commit/76ce63132078fd140e6c26565349a51c9b899bea

Mostly done, not sure if getProfileSeasonalv2 would be better name, thoughts? Here is new method names on my v5 branch:

danielwerg avatar Dec 27 '22 10:12 danielwerg

Still doesn't work, tested with both AppsID but still nothing, getting error 500 from server

RealRunSpace avatar Mar 09 '23 23:03 RealRunSpace

Still doesn't work, tested with both AppsID but still nothing, getting error 500 from server

Have you tried next branch?

danielwerg avatar Mar 10 '23 10:03 danielwerg

Yes, that's actually the next branch, the old one didn't requiere the App ID for anything (I think)

RealRunSpace avatar Mar 10 '23 11:03 RealRunSpace

Yes, that's actually the next branch, the old one didn't requiere the App ID for anything (I think)

Well I will need a snippet of code to reproduced that because it's work fine for me.

danielwerg avatar Mar 10 '23 15:03 danielwerg

Check out Discord in the general channel, if you are online now we can try to short some things out!!

Thanks btw!

RealRunSpace avatar Mar 10 '23 15:03 RealRunSpace

@RealRunSpace @danielwerg are there any updates?

ghost avatar May 20 '23 20:05 ghost

It does work perfectly since lot of time ago

RealRunSpace avatar May 20 '23 20:05 RealRunSpace

@RealRunSpace ohh, then I'm making something wrong... Maybe u can come to the Discord general chat real quick so i can clear up some things?

ghost avatar May 20 '23 20:05 ghost

I'm not at home currently sorry, but someone will help you soon don't worry

RealRunSpace avatar May 20 '23 20:05 RealRunSpace

I think i figured out the problem. There was no npm update ;)

ghost avatar May 20 '23 20:05 ghost

Edit: I'm now facing a weird "Internal Server Error". More on Discord if somebody wants to help ty :)

ghost avatar May 20 '23 21:05 ghost