Post route not found #644
Replies: 3 comments 3 replies
-
Hey! I cannot find any obvious errors in your setup. I have also checked the demo application ( From your list of available routes, the I can only guess that it's caused by LiveView. Maybe try to use the latest official supported LiveView version instead of the release candidate. We did not test the compatibility with LiveView 1.0 yet. You mention that the error occurs when creating a new LiveView application with a basic Backpex setup. Therefore, if the error still occurs, maybe you can share a minimal repo (?) Then I can look into it in detail. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hey all! I figured out why you might get the "no route found for POST XYZ" error when submitting a form. The reason is that something is wrong with your Live View setup. You may not notice this at first because the server still responds with the HTML content and everything seems fine, even though the Websocket connection to the server is failing. When the Live View connection fails, the form sends a POST request to the server instead of a Live View / Websocket event. This causes the "no route found" error because there is no such route. @Hkalani I noticed the following error in the browser console:
You forgot to import Alpine into your app.js file. Since the Live View setup is also configured in the Add this line at the top of your
|
Beta Was this translation helpful? Give feedback.
-
Missing POST Route for Form Submission in Backpex Admin
I'm encountering a routing issue while trying to create a new post using Backpex admin interface. Here are the details:
Environment
Router
Steps to Reproduce
/admin/posts
(displays correctly)Current Behavior
Receiving error:
no route found for POST /admin/posts/new (AppWeb.Router)
Expected Behavior
Form should submit successfully and create a new post.
Additional Information
Available Routes
Any assistance would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions