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

bug: Can Sign Up Unknown Error #93

Open
s8rr opened this issue Jul 28, 2024 · 6 comments
Open

bug: Can Sign Up Unknown Error #93

s8rr opened this issue Jul 28, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@s8rr
Copy link

s8rr commented Jul 28, 2024

What happened?

I installed the Revolt Chat using the Docs given. after installation when i try to sign up i got this error.
image
image

@s8rr s8rr added the bug Something isn't working label Jul 28, 2024
@s8rr s8rr changed the title bug: Can login Unknown Error bug: Can Sign Up Unknown Error Jul 28, 2024
@IAmTomahawkx
Copy link
Member

youve sent pictures of the login screen. Are you attempting to log in or sign up? Please provide more detail, as well as the error returned by the API from the network console.

@s8rr
Copy link
Author

s8rr commented Jul 29, 2024

In the sign up i get this error.

@paboum
Copy link

paboum commented Aug 29, 2024

While debugging the same issue in chrome I get an error:
Mixed Content: The page at 'https://revolt.my.domain/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://local.revolt.chat/ws'. This request has been blocked; this endpoint must be available over WSS.
After some investigation I've found out that the only place setting the incorrect url could be Revolt.toml which by default is initialized with unusable value rather than what comes from .env file which is ignored silently.

@paboum
Copy link

paboum commented Aug 29, 2024

I managed to work around via:

  1. Update .env by:
    • Replacing all occurences of ://local.revolt.chat with s://my.domain
    • In HOSTNAME, however, removing https:// prefix
  2. Create Revolt.toml file with correct app, api, events, autumn and january settings.
  3. Editing docker-compose.yml by adding:
     volumes:
      - ./Revolt.toml:/Revolt.toml

in services.api and services.events sections.

Another prudent thing to do would also be checking if config isn't missing critical values like this (treating local.revolt.chat as an erroreous) and yielding a warning or even preventing a container from starting.

@OlesyaShell
Copy link

When enabled https - in source code you have hardcoded http://_custom_doman/api/
For debug - setup https, open dev tools in browser.
Its reason why created new account and other operations impossible.

@OlesyaShell
Copy link

++ also hardcoded http://_custom_domain/api/auth/account/create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 💬 Needs Discussion
Development

No branches or pull requests

4 participants