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

Internal error reported by "snoo history" command #6

Open
Gnorizo opened this issue Dec 11, 2023 · 0 comments
Open

Internal error reported by "snoo history" command #6

Gnorizo opened this issue Dec 11, 2023 · 0 comments

Comments

@Gnorizo
Copy link

Gnorizo commented Dec 11, 2023

I receive the error ValueError: 'status_requested' is not a valid EventType when executing the command snoo history. Attached is the traceback for troubleshooting. Thank you in advance for having created this amazing library and CLI!

Traceback (most recent call last):
  File "/Users/chris/.venv/default/bin/snoo", line 289, in <module>
    main()
  File "/Users/chris/.venv/default/bin/snoo", line 283, in main
    asyncio.run(async_main(args.username, args.password, token, token_updater, args))
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/chris/.venv/default/bin/snoo", line 205, in async_main
    await commands[args.command](snoo, args)
  File "/Users/chris/.venv/default/bin/snoo", line 108, in history
    for activity_state in await pubnub.history(100):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/.venv/default/lib/python3.11/site-packages/pysnoo/pubnub.py", line 144, in history
    return [ActivityState.from_dict(item.entry) for item in envelope.result.messages]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/.venv/default/lib/python3.11/site-packages/pysnoo/pubnub.py", line 144, in <listcomp>
    return [ActivityState.from_dict(item.entry) for item in envelope.result.messages]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/.venv/default/lib/python3.11/site-packages/pysnoo/models.py", line 660, in from_dict
    event=EventType(data.get("event", EventType.ACTIVITY.value)),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 1128, in __new__
    raise ve_exc
ValueError: 'status_requested' is not a valid EventType
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x1045894e0>, 207486.913482916)]']
connector: <aiohttp.connector.TCPConnector object at 0x1045ff090>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant