I have a webex bot that listens for a submit from an adaptive card. The callback triggers a function that makes an API call. I built it on MacOS and it is working fine there, but when i moved it to ubuntu im getting an error after the API call is successfully made. It has no issue making the call but does not seem to like the fact that the API returns a response.
What I Did
Can include my python code if needed, below is traceback
2022-06-13 15:12:48 [INFO] [webex_bot.webex_bot.webex_bot.process_raw_command]:216 New user_command: pipeline
2022-06-13 15:12:48 [INFO] [webex_bot.webex_bot.webex_bot.process_raw_command]:217 is_card_callback_command: True
2022-06-13 15:12:48 [INFO] [webex_bot.webex_bot.webex_bot.process_raw_command]:239 Found command: pipeline
2022-06-13 15:12:49 [ERROR] [base_events.asyncio.default_exception_handler]:1744 Future exception was never retrieved
future: <Future finished exception=TypeError("We were expecting to receive an instance of one of the following types: 'basestring'or 'None'; but instead we received <Response [201]> which is a 'Response'.")>
Traceback (most recent call last):
File "/home/craig/.pyenv/versions/3.10.4/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webex_bot/websockets/webex_websocket_client.py", line 74, in _process_incoming_websocket_message
self.on_card_action(attachment_actions=attachment_actions, activity=activity)
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webex_bot/webex_bot.py", line 177, in process_incoming_card_action
self.process_raw_command(raw_message,
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webex_bot/webex_bot.py", line 282, in process_raw_command
return self.do_reply(reply, room_id, user_email, reply_one_to_one, is_one_on_one_space)
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webex_bot/webex_bot.py", line 310, in do_reply
self.send_message_to_room_or_person(user_email,
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webex_bot/webex_bot.py", line 332, in send_message_to_room_or_person
self.teams.messages.create(roomId=room_id, markdown=reply)
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webexteamssdk/api/messages.py", line 242, in create
check_type(markdown, basestring, optional=True)
File "/home/craig/.pyenv/versions/webex/lib/python3.10/site-packages/webexteamssdk/utils.py", line 170, in check_type
raise TypeError(error_message)
TypeError: We were expecting to receive an instance of one of the following types: 'basestring'or 'None'; but instead we received <Response [201]> which is a 'Response'.
Description
I have a webex bot that listens for a submit from an adaptive card. The callback triggers a function that makes an API call. I built it on MacOS and it is working fine there, but when i moved it to ubuntu im getting an error after the API call is successfully made. It has no issue making the call but does not seem to like the fact that the API returns a response.
What I Did
Can include my python code if needed, below is traceback