Skip to content
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

empty getState (events) and not show error #105

Closed
twocolors opened this issue Nov 24, 2021 · 4 comments
Closed

empty getState (events) and not show error #105

twocolors opened this issue Nov 24, 2021 · 4 comments
Assignees
Labels

Comments

@twocolors
Copy link

twocolors commented Nov 24, 2021

all error in stdout and not show in events error

[node-pyatv][2O] stdout: {"result": "failure", "datetime": "2021-11-24T21:13:36.424576+03:00", "exception": "invalid credentials: 321", "stacktrace": "Traceback (most recent call last):\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\", line 302, in appstart\n    print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\", line 196, in _handle_command\n    atv = await connect(config, loop, protocol=Protocol.MRP)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\", line 96, in connect\n    for setup_data in proto_methods.setup(\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\", line 192, in setup\n    stream = AirPlayStream(config, service)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\", line 79, in __init__\n    self._credentials: HapCredentials = parse_credentials(self.service.credentials)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\", line 139, in parse_credentials\n    raise exceptions.InvalidCredentialsError(\"invalid credentials: \" + detail_string)\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\n"}
[node-pyatv][2O] No hash value found in input ({"result":"failure","datetime":"2021-11-24T21:13:36.424576+03:00","exception":"invalid credentials: 321","stacktrace":"Traceback (most recent call last):\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\", line 302, in appstart\n    print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/scripts/atvscript.py\", line 196, in _handle_command\n    atv = await connect(config, loop, protocol=Protocol.MRP)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/__init__.py\", line 96, in connect\n    for setup_data in proto_methods.setup(\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\", line 192, in setup\n    stream = AirPlayStream(config, service)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/protocols/airplay/__init__.py\", line 79, in __init__\n    self._credentials: HapCredentials = parse_credentials(self.service.credentials)\n  File \"/Users/free/Library/Python/3.8/lib/python/site-packages/pyatv/auth/hap_pairing.py\", line 139, in parse_credentials\n    raise exceptions.InvalidCredentialsError(\"invalid credentials: \" + detail_string)\npyatv.exceptions.InvalidCredentialsError: invalid credentials: 321\n"})

when such a situation arrives empty events filled only with the date, but there must be errors in events

@sebbo2002 sebbo2002 self-assigned this Nov 25, 2021
@sebbo2002 sebbo2002 added the bug Something isn't working label Nov 25, 2021
@sebbo2002
Copy link
Owner

Thank you very much. I will take care of it next week.

@sebbo2002 sebbo2002 mentioned this issue Nov 29, 2021
github-actions bot pushed a commit that referenced this issue Nov 29, 2021
# [4.2.0-develop.1](v4.1.1-develop.1...v4.2.0-develop.1) (2021-11-29)

### Features

* Handle pyatv exceptions for `getState()` and event listeners ([a695e11](a695e11)), closes [#105](#105)
@sebbo2002
Copy link
Owner

🎉 This issue has been resolved in version 4.2.0-develop.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Nov 29, 2021
# [4.2.0](v4.1.0...v4.2.0) (2021-11-29)

### Features

* Add previously inaccessible types and classes to exports ([9443c02](9443c02))
* Handle pyatv exceptions for `getState()` and event listeners ([a695e11](a695e11)), closes [#105](#105)
@sebbo2002
Copy link
Owner

🎉 This issue has been resolved in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@twocolors
Copy link
Author

thx

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants