Closed maxileith closed 1 month ago
:tada: This issue has been resolved in version 7.4.0-develop.1 :tada:
The release is available on:
v7.4.0-develop.1
Your semantic-release bot :package::rocket:
Fix is on it's way. You get the errors as well if you set the second parameter in find
to true
:
const result = await pyatv.find({}, true);
console.log(result.devices);
console.log(result.errors);
Give it a try and let me know if that solves the problem. And thank you for the ticket, it was excellent. It contains everything I required. 👍🏼
Thanks for the fast response. Would it be possible to export the NodePyATVFindResponseObject interfcae, so I can reference that interface?
I knew I had forgotten something. Fix is on its way...
I knew I had forgotten something. Fix is on its way...
When will this be available in a prerelease version?
:tada: This issue has been resolved in version 7.4.0-develop.2 :tada:
The release is available on:
v7.4.0-develop.2
Your semantic-release bot :package::rocket:
Sorry, now it's there…
Hi, it's me again.
So on my homebridge-appletv-enhanced plugin I always had coming in a few issues regarding a specific error:
Now, I got my hand on verbose logs from a user who has these problems: https://github.com/maxileith/homebridge-appletv-enhanced/issues/407 (you can read the original logs in the attatchment of this issue). In verbose log, my plugin prints debug messages from your library and therefore it is easy to dig into it.
So the user has configured the plugin in a way that it does unicast discovery: Your library then executes the following
atvscript
command:So far so good. However, the
atvscript
then returns instead of a single JSON line three lines with the individual JSONs which your library simply does not expext:So 2 of the 6 unicast scans were unsuccesful. The
atvscript
return a seperate json for each error and one single json for all successful scans. As the lib does not expect that it throws the following error:Position 1504 is the line break after the first JSON in line 1 of 3.
So what I basically need, is that the library does not throw an error and parses the successful scans correctly. On top I need a list of errors so that I can output that in my plugin. Would that be feasible?
A workaround I could imagine would be to do call the find method for each Host individually ...
Thanks in advance and thank you for the lib :)