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

Wrong display of error message "There was an error: Internal Server Error" #5568

Open
omChauhanDev opened this issue Dec 31, 2023 · 4 comments
Labels

Comments

@omChauhanDev
Copy link
Contributor

omChauhanDev commented Dec 31, 2023

What is happening?

As an instructor whenever we try to add any available article in our program, we go to the available articles section inside our program where after providing the title or url of the desired article in the input field, we click on the "Add Articles" button, then instead of displaying that our article is added successfully it show an error message "There was an error: Internal Server Error"

Not only this, after that as we refresh our page we will find that there is no error and our desired article got added successfully.

To Reproduce

Steps to reproduce the behavior:

  1. Go to My Dashboard section in "http://localhost:3000/"
  2. Click on any of your program
  3. Then click on Articles Section which is in your program navbar
  4. Click on the "Available Articles" tab
  5. Click on the "Add available articles" button
  6. Add your desired article title or url. Note: This should be one per line.
  7. Click on "Add articles"

Expected behavior

The right behavior is when we click on the "Add Articles" button it should automatically repaint the required component and render our desired article instead of displaying that error message or if there is any genuine error which is displaying that message then it should be fixed.

Screenshots

Before clicking on "Add Articles" button

Before Clicking on button

After clicking on "Add Articles" button

Screenshot from 2023-12-31 09-50-27

After refreshing the page

Screenshot from 2023-12-31 09-51-44

System Information

  • OS: [Fedora Linux]
  • Browser [e.g. brave]
  • Version [39]
@ragesoss
Copy link
Member

ragesoss commented Jan 2, 2024

@om-chauhan1 what error appears in the server console when this happens? I'm not clear about whether this is a bug that can occur in production, or if it's related to your dev environment.

@omChauhanDev
Copy link
Contributor Author

omChauhanDev commented Jan 6, 2024

Through this attached video i have shown both of these errors that appears on ui and console while adding and removing articles in a program.

Recording.of.issue.of.Internal.Server.Error.webm

@ragesoss
Copy link
Member

ragesoss commented Jan 8, 2024

In the video, you're showing the browser console error. There will be more details about the initial error in the rails server console (typical in the terminal where you are running guard or rails s). This is an error that has occurred in the Ruby backend, but we can't tell what exactly went wrong from the JS side.

@omChauhanDev
Copy link
Contributor Author

Yes i understand your point, here is video showing what is happening in the console of rails server.

3.Compressed.Recording.Issue.5568.mp4

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

No branches or pull requests

2 participants