Traceback (most recent call last):


 "/opt/python/lib/python3.8/site-packages/ask_sdk_runtime/dispatch.py", line 118, in dispatch

output = self.__dispatch_request(handler_input)
# type: Union[Output, None]


 "/opt/python/lib/python3.8/site-packages/ask_sdk_runtime/dispatch.py", line 182, in __dispatch_request

output = supported_handler_adapter.execute(


 "/opt/python/lib/python3.8/site-packages/ask_sdk_runtime/dispatch_components/request_components.py", line 437, in execute

return handler.handle(handler_input)


 "/var/task/lambda_function.py", line 249, in handle

service = build('calendar', 'v3', credentials=accessToken, cache_discovery=False)


 "/opt/python/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper

return wrapped(*args, **kwargs)


 "/opt/python/lib/python3.8/site-packages/googleapiclient/discovery.py", line 272, in build

return build_from_document(


 "/opt/python/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper

return wrapped(*args, **kwargs)


 "/opt/python/lib/python3.8/site-packages/googleapiclient/discovery.py", line 497, in build_from_document

http = _auth.authorized_http(credentials)


 "/opt/python/lib/python3.8/site-packages/googleapiclient/_auth.py", line 104, in authorized_http

return credentials.authorize(build_http())
AttributeError: 'str' object has no attribute 'authorize'END RequestId

E 2019-05-06 20:52:51,996 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last):


 "/usr/lib/python3.5/asyncore.py", line 83, in read

obj.handle_read_event()


 "/usr/lib/python3.5/asyncore.py", line 423, in handle_read_event

self.handle_read()


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/network/dispatcher/dispatcher_asyncore.py", line 48, in handle_read

self.connectionCallbacks.onRecvData(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/network/layer.py", line 100, in onRecvData

self.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/network/layer.py", line 103, in receive

self.toUpper(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/noise/layer_noise_segments.py", line 39, in receive

self.toUpper(bytes(data))


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/noise/layer.py", line 156, in receive

self._flush_incoming_buffer()


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/noise/layer.py", line 144, in _flush_incoming_buffer

self.toUpper(self._wa_noiseprotocol.receive())


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/coder/layer.py", line 21, in receive

self.toUpper(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/logger/layer.py", line 14, in receive

self.toUpper(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/axolotl/layer_control.py", line 35, in receive

self.toUpper(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/axolotl/layer_receive.py", line 31, in receive

self.onMessage(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/axolotl/layer_receive.py", line 63, in onMessage

self.handleEncMessage(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/axolotl/layer_receive.py", line 79, in handleEncMessage

self.handleSenderKeyMessage(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup-3.2.0-py3.5.egg/yowsup/layers/axolotl/layer_receive.py", line 153, in handleSenderKeyMessage

plaintext = plaintext.encode() if sys.version_info >= (3, 0) else plaintext
AttributeError: 'bytes' object has no attribute 'encode'
