-
Notifications
You must be signed in to change notification settings - Fork 1
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
Crashes node-red #8
Comments
Why http://voron-klipper.feli-home.drachenkatze.org:7125 in the API field? - That is not a moonraker api code. |
Well the field was not really clear what to put in. If it said "API Key" it's obvious, but only "API" is ambiguous and I recommend renaming it. I have removed the value, so "API" is empty and websocket is "voron-klipper.feli-home.drachenkatze.org:7125". Still the same crash when clicking refresh. |
I have not tried it using a FQDN personally.. Do you know the IP & can you change the address to use the IP+Port and test it please. |
Of course I know the IP, I punched it into the zone file myself ;) But no luck either. Moonraker has the /25 as trusted_clients, but I don't even see a connection attempt or any error on the log. Looking at the code the issue seems to come up way before any request is being sent: https://github.com/MintyTrebor/moonNode/blob/main/MoonNode.js#L24 |
I just tested my setup with a FQDN and it works, so that's not the issue at least. Might also be worth deploying the flow, then going back in and refreshing. |
Well I don't think any request is actually sent. It crashes when it tries to retrieve the credentials. By crash I mean the exception posted above, which in turn shuts down the node red server. This is the location which triggers it. https://github.com/MintyTrebor/moonNode/blob/main/MoonNode.js#L24 |
Just incase can you delete the current connection and add it again. It looks like it still thinks there is a value in the API field |
As expected, pinging from the container works fine The other way around doesn't, because of the private subnet. I tried re-adding, the first time it didn't work, the second time it did. Not sure why, though. I'd suggest to check if |
Yes. I have just re-created it...Same error msg as you. If it contains a space it thinks it has a value, but then errors. I will update the error trapping and catch that condition. |
I'm always happy to help when I can! |
FYI - I have found the reason why it was failing when you removed/changed the API key... It looks like changing the connection properties requires a deploy before the new values are read. However - If you add a new connection it works without requiring a a deploy, hence the inconsistent behaviour. |
Node Red Version 3.02 (Docker Image)
moonNode from today, fresh install
Added a moonNode Monitor node. Created a new connection, filled in
voron-klipper.feli-home.drachenkatze.org:7125
for the WS andhttp://voron-klipper.feli-home.drachenkatze.org:7125
for the API fields. Clicked "Done", then "Refresh". Node Red crashes.Backtrace:
The text was updated successfully, but these errors were encountered: