Incorrect HTTP Verb for route | Wheels.RouteNotFound #1225
|
Hello, I am having some trouble with updating a ColdFusion server to a Lucee + CFWheels setup. The issue was not encountered when running the project on Lucee without CFWheels. However, CFWheels has been rather helpful in its development, and I'd like to keep its inclusion as a framework. Most of the web app transferred from that pure Lucee version with Tomcat URL rewriting. However, when I tried to include CFWheels in a separate new version, only one operation did not perform as expected. It involves a form with a jQuery 'post()' method using JSON for form elements to be arguments in a CFC file called 'auth.cfc'. I did include Tomcat URL rewriting, and I have a temporary setup for wildcard routing with GET and POST methods. I also updated the /config/routes.cfm to include the following line:
After updating the URL path to match the planned changes and accounting for the suggested tomcat URL rewriting in documentation I had done earlier, the error updated to a Wheels.RouteNotFound error. I have no other alterations nor config settings that would interfere with the POST method. I have rewritten the jQuery operation to be a CFML condition using CGI scope for the time being, and I did a 'cfinvoke' function to the CFC file with the necessary arguments and values. I have noted the JSON is returned, but I am now landing on the /rewrite.cfm view with the following message:
I have performed the following actions, but the routing error persists.
I have been viewing and reading the CFWheels Routing documentation, but I am at a lost at this point. Could someone help point me in the right direction? Is there a mistake I'm making in debugging this? |
Replies: 1 comment 12 replies
|
Sorry to hear you're having issues getting routes working. Let's see if we can figure out what is going on. Have you tried reviewing the routes in your app to see if you are call the correct route? The easiest way to do this is to use the /wheels/routes URL to see the routing table. Can you post your routing table here and the code you are using to call the action. |
Sorry to hear you're having issues getting routes working. Let's see if we can figure out what is going on. Have you tried reviewing the routes in your app to see if you are call the correct route? The easiest way to do this is to use the /wheels/routes URL to see the routing table.
Can you post your routing table here and the code you are using to call the action.