Click here to Skip to main content
15,887,415 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Good day everyone, there's an issue that am currently facing now, am using a localhost on my computer to view client in the browser, after running npm start on my terminal in vs code. The website opens first with the login page like it supposed too, if u are a new user u should click on register button which is detailed small in that same login page, after I did that i.e registering a new account on clicking register it said "something went wrong" later on checking developers tools in that drop down menu it should this 👉 failed to load resource: the server responded with a status of 500(Internal server error)" The issue is from my register.js file but I have no idea how to resolve that though, someone said the issue is because I didn't use api/register and which I used I have followed even what chatgpt I.e chat.openai.com website told me but couldn't still fix it, even unistall and installed still not working or removing it.

What I have tried:

I have tried changing port from 8080 to 5000, refreshed the page and tried looking or paying close attention to the issue by checking network in developer tools section and others to find the errors, I even sent feedbacks to Microsoft to find the issues for me
Posted
Updated 14-Nov-23 6:07am
v3
Comments
Chris Copeland 14-Nov-23 8:32am    
There really isn't enough information here to help. Is this a frontend (JS, HTML) and backend (PHP, ASP.NET, Java) running separately and communicating with each other? If so, what frameworks are you using? What ports are your software running on? How are you running your server-side code?

You also haven't provided us with examples of code. Remember that we don't have access to your code, we also have no idea what it is you're building, what your end goals are, we know absolutely nothing about what you have now and what you'd like to build!

I can tell you an error of 500 Internal Server Error means that your frontend has hit some website endpoint, but that website endpoint has errored. So instead of looking in the developer console/tools for your frontend HTML and Javascript, look at the console or logs in the backend server for more information on why that error occurred.
Chris Copeland 14-Nov-23 8:33am    
Also when you say "I even sent feedbacks to Microsoft to find the issues for me" I hope you don't mean you used the Feedback tool built into Visual Studio/VS Code. That function is there solely for providing feedback on experience of using their software, not for asking for coding help.
Somtochukwu Kelvin Akuche 14-Nov-23 11:25am    
Ooh okay I get what u are saying, it's a frontend stuffs consissting of javascript and backend is node.js
The framework am using is react
My port is running on 8080
Am trying to build an inventory website, but I noticed once I click register it says ```something went wrong``` that's the res.send I put in my editor if there's an error, on checking the developer tools I saw that error
Please any help on looking into my console or log in the backend server why the error occurred
I have been battling this error for almost a week or weeks though, so why I said I sent a feesback to Microsoft was because when I asked chatgpt it talked about if am hostile the website I should contact the person incharge like community or something don't know how to explain it. So I thought maybe I should try though even if it isn't Web hosting
Thanks sir I really appreciate, based on what chatgpt showed could caused it I have done research on them and they don't seem to clear it
Dave Kreskowiak 14-Nov-23 11:39am    
You're going to have to set breakpoints in your sever-side code. The 500 error is a generic error that says "your server code crashed for some reason". That's all it means and it's not enough to go on to diagnose any problems with the code. You have to start with the debugger and start by looking at the server-side methods your front-end code called.

Nobody can do this for you.
Somtochukwu Kelvin Akuche 15-Nov-23 4:09am    
Thanks @Dave Kreskowiak for the ```breakpoints``` you said will try it out

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900