-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Omada / OMDSDN - Fails due to KeyError: 'null' #997
Comments
This should be fixed in the -dev image. It would be great if you could test this. Can you please switch to the Thanks in advance, |
@FlyingToto would be helpful if you could test as well if this doesn't break something. 🙏 |
Hey @jokob-sk, thanks for the quick response! I tested the |
wow! you guys are way too fast for me! :-) going back to the question, surrounding the section with a catch will avoid the error but you won't be able to any data from the plugin... I am thinking that 2 other options which might be to instruct the plugin to ignore parsing the routers for now:
This should also avoid another limitation of netalertX which is that it doesn't support routers specifically and represent them like switches. Theoretically, by parsing the switch configuration alone, it will still detect the router and report it like any other devices and even insert it between the ISP link and the switch properly.
|
In the first option, what do you mean by " |
for option (2) I would suggest to try the following: replace:
with:
|
I modified the
|
@xfilo, you can double check that your code has been modified in the logs, when the plugin runs you should see a second entry that should look like this: from:
to:
|
Hey @FlyingToto, correct, there is a second entry in the log. However, my previous statement still holds—using the official image, the execution fails, while with the dev image, it runs successfully, but there is no actual difference except for the log output. |
but it replaced "router" with "switch" correct? try this...
|
Yes, I connected my computer ( I’ve highlighted some key pieces (my opinion) in the log below with ⬇️⬆️.
|
Let me know if you need to build a new Pinging @Leicas as well in case he has time and can help out. |
so it looks like it is indeed treating your router as a standard switch and finding your laptop connected to it. |
The device list appears correct. However, if by |
hum... that's weird... also is looks like SSID is actually the device type... almost like columns are misaligned. I can see it from the logs parsing the devices... from checking your logs more carefully it looks like you get an extra column returned by the omada plugin normally I would expect:
but it looks like you get an extra field thingy... |
The extra column makes sense to me now, as I'm using device names with spaces, such as |
oh ok! now that makes more sense! I didn 't realized that omada would let you use a space in the device name! |
@xfilo created a new @FlyingToto , @Lucide - If you still own OMADA equipment it would be great if you could test this. You know the drill by now :) This should be fixed in the -dev image. It would be great if you could test this. Can you please switch to the |
Hi @FlyingToto, coming back to this - I’ve renamed all my devices to remove spaces, and while the logs look better, there’s still a The parent node assignment appears correct, except for To be honest, this doesn’t bother me much anymore, but it would be great to resolve the issue (if there is one) for other users.
|
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
I enabled the OMDSDN plugin, configured it, ran it manually and it fails on this error:
Expected Behavior
I actually don't know, what is the exact expected behaviour, but I made a temporary fix like this - basically placed the whole function in a try-catch:
Steps To Reproduce
Other than running the omada_sdn.py manually from the Settings tab, I don't know how to reproduce the issue.
Doesn't matter if it's ran manually or it scheduled, the result is the same.
Maybe it's an issue on my side, but I cannot tell.
app.conf
docker-compose.yml
What installation are you running?
Production (netalertx)
app.log
Here is the shortened log:
Debug enabled
The text was updated successfully, but these errors were encountered: