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

hitting the API with the wrong data? #534

Open
mircealungu opened this issue Sep 12, 2024 · 2 comments
Open

hitting the API with the wrong data? #534

mircealungu opened this issue Sep 12, 2024 · 2 comments
Assignees

Comments

@mircealungu
Copy link
Member

logs on the backend show that we're calling get_user_infinished_reading_sessions with an inte instead of viewport_settings?

[Thu Sep 12 15:10:10.491181 2024] [wsgi:error] [pid 22:tid 140435464644288] [remote 172.18.0.1:56954]   File "/Zeeguu-API/zeeguu/api/endpoints/user.py", line 111, in get_user_unfinished_reading_sessions
[Thu Sep 12 15:10:10.491198 2024] [wsgi:error] [pid 22:tid 140435464644288] [remote 172.18.0.1:56954]     scrollHeight = viewport_settings["scrollHeight"]
[Thu Sep 12 15:10:10.499501 2024] [wsgi:error] [pid 22:tid 140435464644288] [remote 172.18.0.1:56954]                    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
[Thu Sep 12 15:10:10.501128 2024] [wsgi:error] [pid 22:tid 140435464644288] [remote 172.18.0.1:56954] TypeError: 'int' object is not subscriptable
@tfnribeiro
Copy link
Contributor

Which account did you see this? I think it can be because before sending the viewportSettings in extra data we had the total number of scrolls. So if you haven't opened a new article with the new frontend code then it will still be storing ints, rather than the expected data dictionary.

@mircealungu
Copy link
Member Author

mircealungu commented Sep 13, 2024

Which account did you see this? I think it can be because before sending the viewportSettings in extra data we had the total number of scrolls. So if you haven't opened a new article with the new frontend code then it will still be storing ints, rather than the expected data dictionary.

It was my main account. And I don't see it anymore. Strange ! I'll keep an eye open for it if it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants