Replies: 2 comments
-
I'm seeing something similar. When making a POST request with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Converting this to a Proposal discussion, as per our Development Process. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Remix are you using?
1.6.3
Steps to Reproduce
useFetcher
:fetcher.submit(null, {action: "/api/v1/customers/", method: "get" })
you will notice that the no network request is made (not even a 404)
Updating the submit action:
fetcher.submit(null, {action: "/api/v1/customers?index", method: "get" })
OR
changing the route strucuture to this:
Fixes the issue
However this is only an issue inside remix, and is impossible to debug from postman or any other HTTP client (e.g. web browser) on the account that any external requests defaults to index.tsx if customers.tsx doesn't exist
At minimum an error should be displayed inside remix
Expected Behavior
External requests should behave exactly the same as internal
submit
requests.Actual Behavior
Submit inside remix behaves differently than external requests with no warning or error.
using the initial route structure and accessing the route
/api/v1/customers/
in postman works as expected, however doesn't work inside remixBeta Was this translation helpful? Give feedback.
All reactions