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

XHR request results in "Server Error (500)" when logging to the dashboard #63

Open
hadizz opened this issue Jan 14, 2022 · 0 comments
Open

Comments

@hadizz
Copy link

hadizz commented Jan 14, 2022

Hi

How I get Error:

when I want to login to the dashboard at this location https://thesis.ashkantaravati.ir/dashboard/{my-token}, I enter my email without @gmail and get a 500 error.

Request URL:

https://thesis.ashkantaravati.ir/api/stats/dashboard

Payload:

{"token":"remove token for privacy","email":"hadiz"}

Response

<!doctype html>
<html lang="en">
<head>
  <title>Server Error (500)</title>
</head>
<body>
  <h1>Server Error (500)</h1><p></p>
</body>
</html>

Solution

I suggest setting validation for the form (email field) and showing loading when the user clicked on the button so that we prevent sending bulk API calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant