Hello here!
we are using the bot and getting this error:
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-471' coro=<Client.event_handler() done, defined at /opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py:743> exception=AttributeError("'str' object has no
attribute 'get'")>
Traceback (most recent call last):
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 755, in event_handler
await self.process_event(payload.event_name.lower(), payload, gateway)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 741, in process_event
await self.execute_error(e, gateway)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 714, in execute_error
raise error
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 734, in process_event
key, args = await self.handle_middleware(payload, name, gateway)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 667, in handle_middleware
extractable = await ware(self, gateway, payload, *args, **kwargs)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 154, in wrapper
return await func(cls, gateway, payload)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/middleware/presence_update.py", line 38, in presence_update_middleware
return ("on_presence_update", PresenceUpdateEvent.from_dict(payload.data))
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 276, in from_dict
return cls(
File "<string>", line 8, in __init__
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 222, in __post_init__
attr_value = [
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 223, in <listcomp>
self.__attr_convert(attr_item, classes[0])
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 181, in __attr_convert
return factory(attr_value)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 239, in __factory__
return cls.from_dict(*args, **kwargs)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 276, in from_dict
return cls(
File "<string>", line 18, in __init__
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 222, in __post_init__
attr_value = [
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 223, in <listcomp>
self.__attr_convert(attr_item, classes[0])
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 183, in __attr_convert
return factory(attr_value)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 239, in __factory__
return cls.from_dict(*args, **kwargs)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 277, in from_dict
**dict(
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 286, in <lambda>
lambda object_argument: data.get(object_argument)
AttributeError: 'str' object has no attribute 'get' [26/1806]
Keeping thread 932528191325736992 alive
ERROR:pincer.core:An http exception occurred while trying to send a request to channels/932528191325736992/messages. (400, Bad Request)
ERROR:asyncio:Exception in callback Cron.set_result(<_GatheringFu...ad Request')]>)
handle: <Handle Cron.set_result(<_GatheringFu...ad Request')]>)>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/aiocron/__init__.py", line 112, in set_result
raise result
File "/opt/antonio/keepalive/bot.py", line 108, in keep_alive
await bot.keep_them_all_alive()
File "/opt/antonio/keepalive/bot.py", line 92, in keep_them_all_alive
await self.keep_alive(thread_id)
File "/opt/antonio/keepalive/bot.py", line 98, in keep_alive
msg = await channel.send('ping')
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/objects/guild/channel.py", line 517, in send
resp = await self._http.post(
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/core/http.py", line 446, in post
return await self.__send(
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/core/http.py", line 186, in __send
return await self.__handle_response(
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/core/http.py", line 272, in __handle_response
raise exception
pincer.exceptions.BadRequestError: Bad Request
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-1550' coro=<Client.event_handler() done, defined at /opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py:743> exception=AttributeError("'str' object has no
attribute 'get'")>
Traceback (most recent call last):
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 755, in event_handler
await self.process_event(payload.event_name.lower(), payload, gateway)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 741, in process_event
await self.execute_error(e, gateway)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 714, in execute_error
raise error
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 734, in process_event
key, args = await self.handle_middleware(payload, name, gateway)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 667, in handle_middleware
extractable = await ware(self, gateway, payload, *args, **kwargs)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/client.py", line 154, in wrapper
return await func(cls, gateway, payload)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/middleware/presence_update.py", line 38, in presence_update_middleware
return ("on_presence_update", PresenceUpdateEvent.from_dict(payload.data))
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 276, in from_dict
return cls(
File "<string>", line 8, in __init__
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 222, in __post_init__
attr_value = [
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 223, in <listcomp>
self.__attr_convert(attr_item, classes[0])
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 181, in __attr_convert
return factory(attr_value)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 239, in __factory__
return cls.from_dict(*args, **kwargs)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 276, in from_dict
return cls(
File "<string>", line 18, in __init__
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 222, in __post_init__
attr_value = [
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 223, in <listcomp>
self.__attr_convert(attr_item, classes[0])
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 183, in __attr_convert
return factory(attr_value)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 239, in __factory__
return cls.from_dict(*args, **kwargs)
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 277, in from_dict
**dict(
File "/opt/antonio/keepalive/kavenv/lib/python3.9/site-packages/pincer/utils/api_object.py", line 286, in <lambda>
lambda object_argument: data.get(object_argument)
AttributeError: 'str' object has no attribute 'get'
Is there anything we can look at or help debug?
Thanks