So I’m working on a website and I have a suggestions box that takes a simple text input. After inputing some text and hitting enter I get this alert that I set up:
The bad gateway error I get
However, I have no idea why this is happening as my code for the page seems solid. I read online and heard that it may have to do with my inputs:
This is the code that calls a fetch operation
Finally, though I don’t think the code even executes to this point I have this code:
The server side code to connect to the database
If anybody ever ran into this issue before or have any suggestions I would greatly appreciate a reply.
I tried out using different values for the JSON.stringify.
Orin Hayes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1