Closed joebrands closed 3 years ago
Worth noting that I did also try port: 8080 with no ssl and same result
Check whether the user is an admin user - it seems QNAP devices only provide this information to users with admin permissions. See https://github.com/colinodell/python-qnapstats/issues/19#issuecomment-403984791
Yep, they are an admin user. Is this an ssl access error or an permissions access error? Ive turned off a lot of services on the QNAP to limit vulnerabilities so I am wondering if one of those needs to be on
Well, it seems the error is that the "dnsInfo"
key does not exist in the data being returned from the QNAP. It's very possible this is indeed a compatibility issue where your device never provides that, or it could be something related to security where something is locked down and causing QNAP to not provide that.
Would you be able to run the debug.py
script from this library and share the output? (You may want to review and redact certain values for privacy/security, but please try to keep the overall structure as-is if possible.) It will output the raw data this library gets back from the QNAP and will help us determine what data (if any) is being provided and may help us narrow down this issue.
Well apparently not:
2021-03-16 18:26:12 ERROR (MainThread) [custom_components.pyscript.file.debug] Exception in </config/pyscript/debug.py> line 6:
host = input("192.168.1.69") #prefix with 'https://' if needed
^
NameError: name 'input' is not defined
I just tried running it with Pyscript in HASS
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello,
Some device cannot have DnsInfo, i open PullRequest #63 to avoid TypeError.
And to start debug, you don't need to add your IP in input
you can only run script, you will have prompt to add your ip, port, login, password.
Fixed via #63
"Failed to fetch QNAP stats from the NAS". I am not sure if I need to allow permissions somewhere on my QNAP or if it is a comparability issue with TS-673/v4.5.2
Device Model Number: TS-673
QTS Version: 4.5.2
configuration.yaml
XML/Debug Output: