Skip to content

Conversation

@EepyElvyra
Copy link
Contributor

@EepyElvyra EepyElvyra commented Jul 14, 2022

About

This pull request attempts to fixes this bug

Checklist

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue.
    • (If existent):
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

@Toricane
Copy link
Contributor

Have you tested it?

@EepyElvyra
Copy link
Contributor Author

Have you tested it?

The issue seems to occur randomly so I can't really test it/we don't know when it occurs

Toricane
Toricane previously approved these changes Jul 14, 2022
Copy link
Contributor

@Toricane Toricane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Damego
Copy link
Member

Damego commented Jul 14, 2022

Now this

Traceback (most recent call last):
  File "C:\Users\User\OneDrive\python\discord bots\mangalib-bot\source\main.py", line 23, in <module>
    client.start()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 134, in start
    raise e from e
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 132, in start
    self._loop.run_until_complete(self._ready())
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 391, in _ready
    await self._login()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 396, in _login
    await self._websocket._establish_connection(self._shards, self._presence)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\gateway\client.py", line 196, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\gateway\client.py", line 264, in _handle_connection
    self._dispatch_event(event, data)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\gateway\client.py", line 414, in _dispatch_event
    before = model(**old_obj._json)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\models\attrs_utils.py", line 120, in __init__
    super().__init__(**kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\models\attrs_utils.py", line 80, in __init__
    self.__attrs_init__(**passed_kwargs)  # type: ignore
  File "<attrs generated init interactions.api.models.message.Message>", line 8, in __attrs_init__
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\attr\converters.py", line 43, in optional_converter
    return converter(val)
TypeError: fromisoformat: argument must be str

@Damego
Copy link
Member

Damego commented Jul 14, 2022

LGTM!

nonono LBTM

@EepyElvyra
Copy link
Contributor Author

@Damego merge or no merge?

@Damego
Copy link
Member

Damego commented Jul 14, 2022

Now this

Traceback (most recent call last):
  File "C:\Users\User\OneDrive\python\discord bots\mangalib-bot\source\main.py", line 23, in <module>
    client.start()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 134, in start
    raise e from e
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 132, in start
    self._loop.run_until_complete(self._ready())
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 391, in _ready
    await self._login()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\client\bot.py", line 396, in _login
    await self._websocket._establish_connection(self._shards, self._presence)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\gateway\client.py", line 196, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\gateway\client.py", line 264, in _handle_connection
    self._dispatch_event(event, data)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\gateway\client.py", line 414, in _dispatch_event
    before = model(**old_obj._json)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\models\attrs_utils.py", line 120, in __init__
    super().__init__(**kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\interactions\api\models\attrs_utils.py", line 80, in __init__
    self.__attrs_init__(**passed_kwargs)  # type: ignore
  File "<attrs generated init interactions.api.models.message.Message>", line 8, in __attrs_init__
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\attr\converters.py", line 43, in optional_converter
    return converter(val)
TypeError: fromisoformat: argument must be str

@EdVraz

@EepyElvyra
Copy link
Contributor Author

ok ill look

@Toricane Toricane dismissed their stale review July 14, 2022 17:32

Error

@EepyElvyra EepyElvyra changed the title fix: Attempt to fix issue with item assignment fix: attempt to fix several issues related to the new cache Jul 14, 2022
Copy link
Member

@Damego Damego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now LGTM!

@EepyElvyra EepyElvyra enabled auto-merge (squash) July 14, 2022 18:54
Copy link
Contributor

@Toricane Toricane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@EepyElvyra EepyElvyra merged commit 0265ff7 into interactions-py:unstable Jul 14, 2022
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

Successfully merging this pull request may close these issues.

3 participants