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

User's episodes ratings retrieval timeout when rating filter is empty #271

Open
defhead opened this issue Mar 14, 2021 · 3 comments
Open
Labels
Bug Something isn't working In Progress We're working on it :)

Comments

@defhead
Copy link

defhead commented Mar 14, 2021

Hello,

In user's ratings retrieval endpoint, [GET] https://api.trakt.tv/users/<id>/ratings/<type>/<rating>, the "rating" filter is optional, but in fact, without it the request goes to timeout when the type is "episodes".

Example:

 curl -v -H "Content-Type: application/json" \
-H "Authorization: Bearer <MY_BEARER>" \
-H "trakt-api-key: <MY_API_KEY>" \
-H "trakt-api-version: 2" \
https://api.trakt.tv/users/<my_username>/ratings/episodes/?page=1&limit=5

Adding the "rating" filter, https://api.trakt.tv/users/<my_username>/ratings/episodes/8?page=1&limit=5, resolves the issue.

On movies, seasons and shows ratings retrieval, there is no issues when this filter is empty.

Maybe it's because my account has a lot of watched episodes (~18K), I don't know.

@rectifyer
Copy link
Contributor

Yeah, 18k ratings is the issue. If you provide the username I can troubleshoot further and maybe see why it's timing out even with the pagination params.

@rectifyer rectifyer added Bug Something isn't working In Progress We're working on it :) labels Apr 23, 2022
@defhead
Copy link
Author

defhead commented Apr 25, 2022

Username : eleon

I made some requests on this API just right now, between 04/05/2022 21:20 and 21:40 (GMT). Some of them went to timeout.

Especially when I don't put "page" and/or "limit" parameters. Those are optional, it seems they don't have default values on server side.

@eliehaykal
Copy link

Here is another user who informed me of similar timeout issues when retrieving ratings: phox00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working In Progress We're working on it :)
Projects
None yet
Development

No branches or pull requests

3 participants