-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error "/DevMgmt/ProductUsageDyn.xml" every 10 sec #170
Comments
Pls provide debug log level logs and diagnostics files |
Here it is :) |
something is very wrong with your system / network, pls read the logs and start fixing it one by one, |
So it's not an issue when your code causes thousands upon thousands of errors "failed to get xyz", and then you me for other unrelated things in my HA log? 😂 That's the right way to do software development, definitely... |
since you are the BEST software developer across the universe i probably should teach you basic principle of development like:
now, if one of your users has an issue with his/her environment, they should fix it before contacting you, unless your code created that problem... is that the case? no, so as you would have done because you are (again) THE BEST developer, i suggested to fix the issues within your environment first. if you don't want to change anything in your environment and fix the issues (templates that are running with lots of issues in them every 3ms and messing up with your system), and would like to ignore logs of specific intergation / component in HA, I suggest to read the manual of HA and address it in Logger component, before complainig on standards of others, start with yourself. IF YOU FIND THAT POST BIT OFFENSIVE, THE NEXT TIME, BE MORE REPECTFUL TO OTHERS! |
@BennyOtt i was under the wrongly impression logs provided by you, |
@igorsantos07 btw, next time when you are posting logs, read the issue and make sure it's the same as yours before ridding on it error reported here is about failure to process data while logs you have shared are for timeouts (again, issue accessing from you system to the printer). |
The other problem seems to have been resolved, for whatever reason my printer didn't display it at the time. What I'm surprised about, though, is why it's making so many requests. |
calls explained below
only call that running every 10 seconds should be regarding device status, in all releases since added device status (v1) up until v2.0.2 - it called all endpoints all the time, i reduced amount of calls, status remains... i see lots of timouts for you device, is it offline? reason i'm asking, all endpoints returns timeout (not 404 or any other issue). in v2.0.4, i have added better handling to online / offline modes of the printer, maybe it will reduce the amount of request additionally when the printer is offline (depends on the answer above) which version are you using? thanks |
2.0.3 and printer is online or accessible |
Great, leaving it open for follow up in yhe upcoming few days |
@elad-bar sorry if I didn't know any better, but you can't say I didn't "read the issue". The messages on my logs are the SAME as in the originating issue. If it's not caused by the same issue, then I am not able to know - if I knew, I would not post the logs but a solution instead 🤷 But indeed, sorry for not making it clear I wasn't the OP. That was indeed a mistake I made, since I was pretty sure the same error messages would mean the same error - I mean, why would I think the opposite? About the rest of your complaints... I still can't think how you were respectful to me when you shut the issue down in the first place, complaining about unrelated things in my logs, in such an ugly way. The main issue there is that, actually, logs about the integration include unrelated stuff as well. I guess there could be a reason for that, but that's still not a reason for you to complain about whatever else is going on in my installation instead of focusing on the reported problem. Not to mention, you could just used good'old "find in file" to look for the Lastly... even IF the reported issue was caused by silly things like broken templates, it would make no sense at all for the integration to break because of that. Otherwise, as you yourself mentioned:
Bonus: besides the latest versions that indeed stopped with the constant logging of errors, I noticed I forgot to trash the integration and create it again when updated to v2. It could be useful if, next time you're doing breaking changes, if the integration left a "repair" notice on HA stating stuff like "HPPrinter integration had to re-do everything, and it's now in a broken state. Re-create it from scratch." |
I like the approch of attack and then get offensive, that doesn't work...
If you find my assumption wrong, please provide what i asked for me to debug., As I wrote to the issue reporter, i need debug logs to understand what happen, you would like to provide them great, up to you |
So, repeating myself - and not pointing the finger towards you -, I wonder why the heck when you "enable debug logging" on a specific integration's page, HA creates a log with absolutely everything it had logged in the meantime. I mean, you're right on complaining about the log I sent being filled with irrelevant stuff. But it's not my fault either, and I guess you didn't know HA would do that kind of thing. At least I didn't 🤷 I guess it kinda makes sense, in cases where an issue might be related to other stuff outside the integration... But it was indeed very unfortunate when I just got tired of some templating on cards and left them "working as is", not even realizing they were causing tons of errors on my logs. The most frequent one and always at the top was, exactly, the one entitling this issue. I should point out that, while I don't recall the exact steps I took two days ago, given the file I uploaded had the integration name on it, most probably it came from the But yeah, I guess we both were having bad days and it was a communication issue? Peace? 🙃 |
bad day it was, sorry for my part in making it, new day new start :) enable debug logging is adding configuration to log in debug level, but it will also bring the rest of the logs, logger:
default: warning
logs:
custom_components.hpprinter: debug what i'm missing in logs is the transition between status of http requests, that will explain why it's not working (if the issue caused by a bug in the integration) |
Hi,
Interestingly, the log is currently running relatively frequently, because every 10 seconds my printer generates /DevMgmt/ProductUsageDyn.xml, which has no content. 2.0.3 is installed
It is an HP Officejet Pro 8210 that does not have a scanner.
The text was updated successfully, but these errors were encountered: