Greengrass - Stream Manager - Failed to establish connection with the server

0

Hi there, I've installed the stream manager via pip, also installed the stream manager component via AWS console and everything looks healthy. I am trying to run these samples from github: https://github.com/aws-greengrass/aws-greengrass-stream-manager-sdk-python/tree/main/samples and I am getting this error message (using sudo):

ERROR:StreamManagerClient:Received ConnectResponse with unexpected status ResponseStatusCode.Unauthorized.
ERROR:root:Exception while running
Traceback (most recent call last):
  File "s3.py", line 41, in main
    client = StreamManagerClient()
  File "/usr/local/lib/python3.8/dist-packages/stream_manager-1.1.1-py3.8.egg/stream_manager/streammanagerclient.py", line 114, in __init__
    UtilInternal.sync(self.__connect(), loop=self.__loop)
  File "/usr/local/lib/python3.8/dist-packages/stream_manager-1.1.1-py3.8.egg/stream_manager/utilinternal.py", line 39, in sync
    return asyncio.run_coroutine_threadsafe(coro, loop=loop).result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 444, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.8/dist-packages/stream_manager-1.1.1-py3.8.egg/stream_manager/streammanagerclient.py", line 152, in __connect
    await asyncio.wait_for(self.__connect_request_response(), timeout=self.request_timeout)
  File "/usr/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.8/dist-packages/stream_manager-1.1.1-py3.8.egg/stream_manager/streammanagerclient.py", line 309, in __connect_request_response
    raise ConnectFailedException("Failed to establish connection with the server")
stream_manager.exceptions.ConnectFailedException: Failed to establish connection with the server

So the error says that if failed to establish a connection with the server, but I am not sure what server is it referring to? DId I miss a step somewhere? Cheers, Mark

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions