Giter Club home page Giter Club logo

Comments (9)

bwindels avatar bwindels commented on August 23, 2024 1

@luke2m You were hitting a bug that got introduced with 0.1.33 and fixed in 0.1.34

from hydrogen-web.

bwindels avatar bwindels commented on August 23, 2024

fwiw, this is expected in the service worker and can show up in the logs like this.

from hydrogen-web.

bwindels avatar bwindels commented on August 23, 2024

I wonder if this can be caused by there being a network but CORS failing, (or even a non 2xx response?)

Seeing this:

The FetchEvent for "https://matrix.org/_matrix/client/r0/sync?since=...&timeout=30000&filter=..." resulted in a network error response: the promise was rejected.
sw.js:1 Uncaught (in promise) TypeError: Failed to fetch
matrix.org/_matrix/client/r0/sync?since=...&timeout=30000&filter=...:1 Failed to load resource: net::ERR_FAILED

from hydrogen-web.

bwindels avatar bwindels commented on August 23, 2024

Matthew saw this as well on Tuesday:
image

from hydrogen-web.

bwindels avatar bwindels commented on August 23, 2024

Wild ideas as to what could cause this that may or may not make sense:

  • Unlikely: some usage of request outside of HomeServerApi, like for downloading attachments is causing this, and somehow it ends up in the promise for sync.

We should test while being offline (simulated, real) and see if we can reproduce.

from hydrogen-web.

luke2m avatar luke2m commented on August 23, 2024

I have this on iOS safari 14, it shows up in a green bar at the top of the screen. (Not sure if this helps or even is related)
Sync failed because of TypeError: null is not an object (evaluating 'this._roomEncryption.getEventIdsForMissingKey') will test on Linux tomorrow

from hydrogen-web.

luke2m avatar luke2m commented on August 23, 2024

No issue on Gnome Web 3.38.2 and Chrome 88.0.4324.182 (Both on Arch Linux x86_64)

from hydrogen-web.

bwindels avatar bwindels commented on August 23, 2024

just ran into this again on chrome 88, the status bar in the app said Sync failed because of TypeError: Failed to fetch, and the logs showed the same:

{
          "s": 0,
          "d": 659,
          "v": {
            "t": "network",
            "url": "https://matrix.org/_matrix/client/r0/sync?since=m1881256857~1.1881256861_redacted&timeout=30000&filter=5",
            "method": "GET"
          },
          "l": 6,
          "e": {
            "stack": "TypeError: Failed to fetch",
            "name": "TypeError",
            "message": "Failed to fetch"
          }
        }

I'm not sure if the server actually went offline as the client had stopped syncing for at least 30 min

from hydrogen-web.

bwindels avatar bwindels commented on August 23, 2024

Just hit this, it happened just after the homeserver was restarted.

from hydrogen-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.