Problem in Production URL Toggle

Team sorry to trouble back to back as i have been setting this up i have lots of question…

So i have my workflow and i have tested it well when i toggle it to production url and start sending the jobs to that url getting 404

Below the error message is there any solution for this

Seems like you forgot to post the error message.

{
    "code": 404,
    "message": "The requested webhook \"POST n8n\" is not registered.",
    "hint": "The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)",
    "stack": "ResponseError: The requested webhook \"POST n8n\" is not registered.\n    at ActiveWorkflowRunner.executeWebhook (/usr/lib/node_modules/n8n/dist/src/ActiveWorkflowRunner.js:94:23)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    at async /usr/lib/node_modules/n8n/dist/src/WebhookServer.js:62:24"
}

Its active and in prod
@jan

Getting resolved by deleting the workflow and recreate a new one @jan

Good to hear that you found a solution. Still strange that this was necessary.

@jan i too feel the same, but am not sure why it behave like this, any how it was an quick workaround

@jan am facing the issue on post call in webhook below the output from postman… Did i miss anything on configuration?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /webhook/n8n</pre>
</body>
</html>

Also am facing the issue only on Production URL not in Stage

Hm, this doesn’t look like an error returned by n8n (which would be the "The requested webhook "GET foo" is not registered" error you have seen earlier).

So this could be a problem in a reverse proxy you might have set up in front of n8n. Is it correctly redirecting traffic send to your webhook endpoint to n8n? Are there any helpful log entries?

{"code":404,"message":"The requested webhook \"POST fsfr\" is not registered.","hint":"The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)","stack":"ResponseError: The requested webhook \"POST fsfr\" is not registered.\n at ActiveWorkflowRunner.executeWebhook (/usr/lib/node_modules/n8n/dist/src/ActiveWorkflowRunner.js:94:23)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async /usr/lib/node_modules/n8n/dist/src/WebhookServer.js:62:24"}

This is what am getting let me configure log for this between can yo please suggest any workaround

So that looks like a different error message than before (this come coming from n8n) and would simply suggest the following:

  1. The workflow isn’t active (when using the Production URL)
  2. The workflow has not been manually executed and is not currently waiting for a webhook (when using the Test URL)
  3. The path and/or the method configured in your webhook node could be wrong.

For 1: Whether your workflow is active or not can be seen on the toggle in the upper right:
image

For 2: Simply hit the Execute Workflow button at the bottom of the n8n canvas:
image

For 3: You can double-check the settings here in the node details view:

problem got identified and resolved

i got the same problem, but i just can´t get it working:

whenever i try to togle production it just falls back to test url

i tried in version @0.220.0 and @0.221.0 both the same thing its like when i togle production webhook it just falls back to test url. I tried deleting the workflow hell i deleted the whole vm and install from scrap and it didn´t work

{“code”:404,“message”:“The requested webhook "GET facebook-teste11221" is not registered.”,“hint”:“The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren’t shown on the canvas (only in the executions list)”,“stacktrace”:“ResponseError: The requested webhook "GET facebook-teste11221" is not registered.\n at ActiveWorkflowRunner.executeWebhook (/usr/lib/node_modules/n8n/src/ActiveWorkflowRunner.ts:223:11)\n at /usr/lib/node_modules/n8n/src/AbstractServer.ts:284:16”}

Even tho as shown in the picture the workflow is active

With test webhook i get:

{"code":404,"message":"The requested webhook \"GET e682084f-ea77-41ab-8d59-83c5c7bdded2\" is not registered.","hint":"Click the 'Execute workflow' button on the canvas, then try again. (In test mode, the webhook only works for one call after you click this button)","stacktrace":"ResponseError: The requested webhook \"GET e682084f-ea77-41ab-8d59-83c5c7bdded2\" is not registered.\n    at TestWebhooks.callTestWebhook (/usr/lib/node_modules/n8n/src/TestWebhooks.ts:72:11)\n    at /usr/lib/node_modules/n8n/src/AbstractServer.ts:378:35\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:144:13)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:140:7)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:140:7)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:140:7)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:140:7)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:140:7)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:140:7)\n    at Route.dispatch (/usr/lib/node_modules/n8n/node_modules/express/lib/router/route.js:114:3)\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n    at /usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:284:15\n    at param (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:365:14)\n    at param (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:376:14)\n    at Function.process_params (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:421:3)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)\n    at refreshExpiringCookie (/usr/lib/node_modules/n8n/src/middlewares/auth.ts:61:2)\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)\n    at /usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9\n    at Function.process_params (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)\n    at /usr/lib/node_modules/n8n/src/middlewares/auth.ts:123:4\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)\n    at /usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9\n    at Function.process_params (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)\n    at /usr/lib/node_modules/n8n/src/middlewares/auth.ts:104:11\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)\n    at /usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9\n    at Function.process_params (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)\n    at initialize (/usr/lib/node_modules/n8n/node_modules/passport/lib/middleware/initialize.js:98:5)\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)\n    at /usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9\n    at Function.process_params (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)\n    at next (/usr/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)\n    at cookieParser (/usr/lib/node_modules/n8n/node_modules/cookie-parser/index.js:46:14)\n    at newFn (/usr/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)\n    at Layer.handle [as handle_request] (/usr/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)"}

are you using separate node for test webhook

when I reinstalled n8n test webhook doesn´t work anymore
rsrs

Can you update to 221.2 and let me know if you see the same issue? It would also be helpful to open a new thread as chances are your issue is new and not related to the one from last year.

Just update to 221.2 and i got it working.

But the problem wasn´t the version i rolled back to 220.0 and it work as well

IN my Env files there were some problems with configurations
Changing my HAproxy and running pointng everything to localhost and redirecting traffic throgh proxy did the trick

Thanks!!!

Yeah still having issues it doesn´t working anymore, and I didn´t touch anything :stuck_out_tongue:

deleting the workflow and restarting the vm comes back but crashes after a while

2023-03-24T15:18:28.061Z | error    | Error: The URL path that the "Webhook" node uses is already taken. Please change it to something else. "{ file: 'ErrorReporterProxy.js', function: 'report' }"
2023-03-24T15:18:42.458Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:19:36.609Z | error    | The session "hw7ja30ro4n" is not registered. "{\n  sessionId: 'hw7ja30ro4n',\n  file: 'abstract.push.js',\n  function: 'send'\n}"
2023-03-24T15:19:42.458Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:20:42.458Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:21:42.458Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:22:42.459Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:23:42.459Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:24:42.460Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"
2023-03-24T15:25:42.462Z | debug    | Wait tracker querying database for waiting executions "{ file: 'WaitTracker.js', function: 'getWaitingExecutions' }"

It appears you may be using GET (on the calling side, not n8n), where POST is necessary?

"message":"The requested webhook \"GET...