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

Deleting existing user sessions failes with database error (541) #859

Closed
ItsDrike opened this issue Jul 8, 2024 · 5 comments
Closed

Deleting existing user sessions failes with database error (541) #859

ItsDrike opened this issue Jul 8, 2024 · 5 comments

Comments

@ItsDrike
Copy link

ItsDrike commented Jul 8, 2024

Describe the bug
When attempting to delete my logged in sessions from the stremio website, nothing seems to happen. Upon further inspection using the developer tools, it turns out that the deletion requests are giving back HTTP 541 status code, with the JSON response body of: {"error":{"message":"Database error #2"}}

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to https://www.stremio.com/acc-settings using your browser.
  2. Scroll down to user sessions
  3. Open developer tools
  4. Click on delete all sessions (or delete on any individual session)
  5. See the newly made request to delete this session fail with HTTP 541

Expected behavior
The session(s) should be deleted.

Screenshots
image

Desktop (please complete the following information):

  • OS: NixOS (nixpkgs rev: 9f4128e00b0ae8ec65918efeba59db998750ead6)
  • Browser Firefox

Additional Information
Below is a curl command to produce the HTTP request to replicate the failure shown in the browser. Note that I have redacted the authKey from body.

curl 'https://api.strem.io/api/logout' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://www.stremio.com/' -H 'content-type: application/json' -H 'Origin: https://www.stremio.com' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'Priority: u=1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"authKey":"[MY AUTH TOKEN FOR THIS SESSION]"}'
@GStrategos
Copy link

I'm using Chromecast and having 541 API errors all the time. I can't even uninstall or install any add-ons because of that error. Everything started acting weird after 1.6.10 and 1.6.11 updates tbh.

@jaruba
Copy link
Member

jaruba commented Jul 9, 2024

@GStrategos it's unrelated to the android tv updates

@GStrategos
Copy link

GStrategos commented Jul 10, 2024

@GStrategos it's unrelated to the android tv updates

Ok thanks! I mentioned them because I had no API errors with 1.6.9. Do we know what's causing them then?

Edit: I just had a 529 error too. Never had this before as far as I remember.

Cheers!

@TRtomasz
Copy link
Member

Is this still happening @GStrategos ?

@ItsDrike
Copy link
Author

I was able to get my user sessions deleted today, so it seems that the issue is resolved

@TRtomasz TRtomasz closed this as completed Aug 1, 2024
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

4 participants