Skip to content

Login serves a raw JSON file while JavaScript is disabled #2960

@halotroop2288

Description

@halotroop2288

Describe the Bug

The login page serves a raw JSON file as a response to a login attempt while JavaScript is blocked on the webpage.

This issue serves as a quick answer for others having this problem, but I think it could also be handled better by the backend. Feel free to close this if it is considered invalid.

Steps to Reproduce the Bug

  1. Install NoScript or disable JavaScript on your browser
  2. Go to https://viewtube.io
  3. Press the Sign In button in the top right
  4. Enter your credentials and press enter
  5. Be served a raw JSON file as a response.

Expected Behavior

The error is served as a text box on the login page.

Screenshot/Screen recording

Screenshot

Device Info

  • Device: Desktop PC
  • OS: Arch Linux 6.10.0-arch1-2
  • Browser: LibreWolf 123.0-1
  • Version: Unknown. Probably 0.16.2 (latest at time of writing)

Additional Context

The exact response from the login page is:

{"message":"Cannot POST /login","error":"Not Found","statusCode":404}

Solution for end-users

  • Enable JavaScript in your browser settings
  • Trust viewtube.io (or whatever instance you are using) in your NoScript configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions