You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as a starting point for my further development. However, even with the most basic samples I always encounter this error:
Traceback (most recent call last):
File "./sample.py", line 28, in <module>
bot.run(chat_type='d', sleep=0.5)
File ".../site-packages/pyrocketbot/client.py", line 42, in run
updates = self.get_updates()
File ".../site-packages/pyrocketbot/client.py", line 35, in get_updates
response = self.session.subscriptions_get().json()
File ".../site-packages/rocketchat_API/APISections/subscriptions.py", line 7, in subscriptions_get
return self.call_api_get("subscriptions.get", kwargs=kwargs)
File ".../site-packages/rocketchat_API/APISections/base.py", line 66, in call_api_get
url = self.server_url + api_path + method
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Although these third-party example bots have been developed while your rocketchat_API repository was older, downgrading with pip install rocketchat_API==1.28.1 didn't fix this issue; tried Python 3.10.16 / 3.12.8 versions. A temporary solution may be to simply to hardcode the value of self.server_url variable into this string, however it's not elegant... Hope this info could be helpful, have a nice day
P.S. While a most basic example described in Usage works fine, it doesn't involve receiving/processing/responding to the messages...
The text was updated successfully, but these errors were encountered:
Good day, @jadolg ! I'm trying to use your repository with various example bots that depend on it, like
as a starting point for my further development. However, even with the most basic samples I always encounter this error:
Although these third-party example bots have been developed while your
rocketchat_API
repository was older, downgrading withpip install rocketchat_API==1.28.1
didn't fix this issue; tried Python3.10.16
/3.12.8
versions. A temporary solution may be to simply to hardcode the value ofself.server_url
variable into this string, however it's not elegant... Hope this info could be helpful, have a nice dayP.S. While a most basic example described in Usage works fine, it doesn't involve receiving/processing/responding to the messages...
The text was updated successfully, but these errors were encountered: