Skip to content

Unable to log in #699

Open
Open

Description

@richvdh

Describe the bug

Whenever I try to log into my HS, I get an error:

Something went wrong: POST https://matrix.sw1v.org/_matrix/client/r0/keys/upload?: Failed to fetch.

To Reproduce

  1. log in
  2. wait

Screenshots

image

Desktop (please complete the following information):

  • OS: linux
  • Browser: chrome
  • Version

Additional context

The basic problem here is that the homeserver is returning 500s, because it's so busy sending out device list updates after the /login. So in many ways the root cause is matrix-org/synapse#7721.

However, Hydrogen could usefully keep retrying, or give the user a "try again" option, rather than the only option being to log out and start again.

Activity

  1. llwp commented on Mar 4, 2022

    @llwp

    Definitely a good ~feature suggestion imho.

  2. bwindels commented on Mar 9, 2022

    @bwindels
    Contributor

    Hmm, it's somewhat annoying that the server returns a 500 rather than a 429 if the client should retry, but can't immediately think of any downsides of also retrying (for all requests, not just /keys/upload) on 500... at least a few times otherwise you'd never find out about a potential genuine server error.

  3. richvdh commented on Mar 9, 2022

    @richvdh
    MemberAuthor

    500 generally means "server failed to process this request". I'd say it's expected behaviour for any REST client to retry on a 500. More so than a 429.

  4. added
    bugSomething isn't working
    size:smalltakes less than 30 minutes to implement
    on May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsize:smalltakes less than 30 minutes to implement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions