500 Error: Invalid Name: mvpw1:4
Getting a 500 error when calling a GET endpoint that should be returning a single record in a table called Courses. The endpoint ends in /course/{id}.
The error message is: Invalid name: mvpw1:4
Answers
-
I had something like this before, my solution was to double-check that everything had a value and that value is of the expected type.
I suggest that you add some if before the query to make sure that {id} is what you expect. The debugger can also help out with this.
-
@pete letkeman has a great idea! If you click the "3 dots" menu in the upper-right you can view the recent request history for the endpoint. Pick one that has the 500 error. Look for the input - what was sent? Look also at the URL to make sure the dynamic value part (e.g. the {id}) looks correct. For example, if "id" needs to be a number, but the front-end sends a non-numeric string, that could be a challenge.
But we start with looking! If you share a screenshot we might be able to help faster too.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback