Skip to content

Real-time collaboration not working - infinite loading  #7

Description

@tcarreira

Problem

When real-time collaboration is Off, everything seems to be working.
But after turning real-time collaboration On, after opening a file, the vscode just keeps loading indefinitely, showing that blue line at the top:

Screenshot_20210317_210750

More information

The logs don't seem to be relevant (for my eyes).
But the browser network tab is showing lots of 404 connecting firebase (real database removed):

Request URL: https://<DATABASE_NAME>.appspot.com/.lp?start=t&ser=38874610&cb=5&v=5&ns=<DATABASE_NAME>
Request Method: GET
Status Code: 404 

You may have noticed that https://<DATABASE_NAME>.appspot.com does not match the README (firebase-databaseURL: 'https://<DATABASE_NAME>.firebaseio.com').
I changed it because with the original I would get an error launching code-server :

[2021-03-18T00:29:29.934Z]  @firebase/database: FIREBASE WARNING: Firebase error. Please ensure that you spelled the name of your Firebase correctly (https://<DATABASE_NAME>.firebaseio.com) 

I got the "correct" server name from the Firebase console (storageBucket).

Am i missing any config?
Is this a bug or incomplete documentation?
I also read Firepad documentation which seems to say the same as you did.

Tested scenario

  • Web Browser: Firefox / Brave / Chromium
  • Local OS: Ubuntu 20.04.1 LTS
  • Remote OS: Ubuntu 20.04.1 LTS
  • Remote Architecture: amd64
  • code-server --version: 3.8.0 39fc66bd58ce4c9b5934a91caf5eaa0774706a3d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions