Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error when accessing Dashboard #143

Open
MarianRaphael opened this issue Jul 13, 2023 · 6 comments
Open

404 Error when accessing Dashboard #143

MarianRaphael opened this issue Jul 13, 2023 · 6 comments
Labels
blocked story A user-oriented description of a feature

Comments

@MarianRaphael
Copy link
Contributor

MarianRaphael commented Jul 13, 2023

Description

Currently, when a user connects to the device Editor via FlowForge and attempts to access their configured dashboard, they encounter a 404 error. This issue prevents users from seamlessly accessing the dashboard

Screenshot 2023-07-13 at 16 22 10
Screenshot 2023-07-13 at 16 22 02

User Story

As a FlowForge user who frequently uses the Dashboard on Devices,

I want to be able to directly access my configured dashboards when I connect to a device via FlowForge,

So that I can efficiently monitor and manage my devices without encountering any 404 errors or disruptions.

@MarianRaphael MarianRaphael added needs-triage Needs looking at to decide what to do story A user-oriented description of a feature blocked labels Jul 13, 2023
@hardillb
Copy link
Contributor

hardillb commented Jul 13, 2023

@MarianRaphael What is meant by " when a user connects to a device via Websocket" ?

Do you mean when accessing the Device editor access via the FlowForge tunnel?

@MarianRaphael
Copy link
Contributor Author

Via FlowForge

@hardillb
Copy link
Contributor

Still not clear, do you mean when accessing the devices' editor?

@MarianRaphael
Copy link
Contributor Author

Yes

@knolleary
Copy link
Member

Based on the screenshot it appears the link in the NR Dashboard sidebar for opening the dashboard is app.flowforge.com/ui. This is because Dashboard is generating that URL itself. It knows from its local configuration that it is served at /ui - which is true when accessing Node-RED directly on the device.

However, when accessed via the proxy, the 'true' URL needs to include the full proxy path as a prefix.

The problem is Node-RED Dashboard has no knowledge that it is being accessed through our proxy tunnel and doesn't know it needs to include any other prefix to the path.

I don't immediately see a way around this.

@knolleary knolleary removed the needs-triage Needs looking at to decide what to do label Jul 19, 2023
@GogoVega
Copy link

GogoVega commented Jan 6, 2024

It's just an idea 😅

When creating the popup with the editor tunnel url, a parameter can be added at the end of this url (&tunnelUsed=true) so that the editor checks if this parameter exists

https://github.com/FlowFuse/node-red-dashboard/blob/ea50f91885b5cceb3514710b27c8ab7e93e89695/nodes/config/ui_base.html#L190

const tunnelUsed = document.URL.endWith("&tunnelUsed=true");
// then use document.URL to get the full path
// or use a parameter containing full path directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked story A user-oriented description of a feature
Projects
Status: Medium
Development

No branches or pull requests

4 participants