NodeBB-Community / nodebb-plugin-custom-pages

Allows you to add as many new pages as you like to your NodeBB forum
BSD 2-Clause "Simplified" License
39 stars 24 forks source link

Route Randomly does not exist #59

Closed Jey-Cee closed 4 years ago

Jey-Cee commented 5 years ago

The custom routes are randomly dropping 404 errors, i can see it in log. If this is happen all routes are unavailable. I did not found a reason or hints why this is happen.

Nodebb version: 1.12.2 Plugin version: 1.1.2

We have 4 custom pages they are all public.

I will deliver more information if anyone can tell me waht information relevant.

EDIT: For one route i saw that there was added "/api/" in front, so this is not the correct route. (is: /api/myRoute, should be: /myRoute)

Jey-Cee commented 4 years ago

New info: After restarting nodebb i saw this issue. Then i go to admin and only hit save on the custom pages plugin and bam it routes are available. Additional information, we are running nodebb with multiple processes.

barisusakli commented 4 years ago

Do you have all the processes on the same server?

Jey-Cee commented 4 years ago

Yes they are all on the same server.

barisusakli commented 4 years ago

Also what do you mean by this. EDIT: For one route i saw that there was added "/api/" in front, so this is not the correct route. (is: /api/myRoute, should be: /myRoute)

Can you share the route settings.

barisusakli commented 4 years ago

I think I found the issue, gonna work on a fix.

barisusakli commented 4 years ago

Please try with 1.1.3 and let me know if it works now.

Jey-Cee commented 4 years ago

That was fast. Is it on npm? If not it could take a few days, as i am only the admin of the forum not for the server so i dont have ssh permissions.

barisusakli commented 4 years ago

Yeah it's published to npm, it should show up on the ACP dashboard after a while.

Jey-Cee commented 4 years ago

Also what do you mean by this. EDIT: For one route i saw that there was added "/api/" in front, so this is not the correct route. (is: /api/myRoute, should be: /myRoute)

Can you share the route settings.

If it is still intresting for you: Settings image

Route from Error Log api

Jey-Cee commented 4 years ago

OK update is done and looks good Thank you