I am trying to setup Web Sockets API gateway that will integrate with http endpoints on HTTP API Gateway. I have cdk stack which deploys fine on localstack, but when I try to invoke the route with http integration, I get the following exception:
No connection adapters were found for 'cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-api.localhost.localstack.cloud%3A4566%2Fapi%2Fws=&Authorization=...
The cdk code that sets up the integration:
const connectIntegration = new CfnIntegration(this, "connect-integration", {
apiId: webSocketApi.attrApiId,
integrationType: 'HTTP',
integrationUri: props.wsApiEndpoint,
integrationMethod: "PUT",
requestParameters: {
'integration.request.header.tenantid': 'context.authorizer.tenantid',
'integration.request.header.X-Websocket-ConnectionId': 'context.connectionId',
}
});
The endpoint is exposed on HTTP Api Gateway
const route = httpApi.addRoutes({
path: '/{proxy+}',
methods: [HttpMethod.ANY],
integration: vpcLinkIntegration,
//authorizer: routeOptions.authorizer
});
There is a node.js backend container in ECS exposing /api/ws endpoints with PUT, POST and DELETE verbs.
Had anyone experienced issue like this?
Here is a full log:
localstack | 2023-12-19T15:07:38.877 DEBUG --- [uncthread681] l.s.a.integrations : Sending PUT request to cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-api.localhost.localstack.cloud%3A4566%2Fapi%2Fws=&Authorization=eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg in response to invocation message {'version': '1.0', 'resource': '/production', 'httpMethod': None, 'path': '/production?Authorization=eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg', 'body': '{"action": "$connect"}', 'headers': {'Sec-WebSocket-Version': '13', 'Sec-WebSocket-Key': 'eHuMME4OulILgEAi9EXAsg==', 'Connection': 'Upgrade', 'Upgrade': 'websocket', 'Sec-WebSocket-Extensions': 'permessage-deflate; client_max_window_bits', 'Host': 'localhost.localstack.cloud:4511'}, 'multiValueHeaders': {'Sec-WebSocket-Version': ['13'], 'Sec-WebSocket-Key': ['eHuMME4OulILgEAi9EXAsg=='], 'Connection': ['Upgrade'], 'Upgrade': ['websocket'], 'Sec-WebSocket-Extensions': ['permessage-deflate; client_max_window_bits'], 'Host': ['localhost.localstack.cloud:4511']}, 'requestContext': {'accountId': '4566/api/ws', 'apiId': '48da457b', 'resourcePath': '/production', 'domainPrefix': 'localhost', 'domainName': 'localhost.localstack.cloud', 'resourceId': None, 'requestId': '1981ea7d-4efe-4846-bf5b-b95e3af6aa0b', 'identity': {'accountId': '4566/api/ws', 'sourceIp': '127.0.0.1', 'userAgent': None, 'cognitoIdentityId': None, 'cognitoIdentityPoolId': None}, 'httpMethod': None, 'protocol': 'HTTP/1.1', 'requestTime': '19/Dec/2023:15:07:38 +0000', 'requestTimeEpoch': 1702998458877, 'authorizer': {'userId': 'd0002946-70e0-472a-9d68-52a85609045d', 'tenantid': '888', 'principalId': 'd0002946-70e0-472a-9d68-52a85609045d'}, 'connectionId': 'c4a6154a', 'path': '/production', 'stage': 'production', 'routeKey': '$connect', 'messageId': None, 'eventType': 'CONNECT', 'version': '1.0'}, 'isBase64Encoded': False, 'queryStringParameters': {'Authorization': 'eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkb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YWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg']}, 'pathParameters': {}, 'stageVariables': {}}
localstack | 2023-12-19T15:07:38.878 INFO --- [uncthread681] l.s.a.integrations : Error invoking integration request for route "$connect": No connection adapters were found for 'cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-api.localhost.localstack.cloud%3A4566%2Fapi%2Fws=&Authorization=eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg'
localstack | 2023-12-19T15:07:38.878 DEBUG --- [uncthread285] l.utils.websockets : Received error on $connect event handler - denying WebSocket connection: Exception during $connect action: No connection adapters were found for 'cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-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2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg'
localstack | 2023-12-19T15:07:38.892 INFO --- [uncthread285] websockets.server : connection closed
localstack | 2023-12-19T15:07:38.904 INFO --- [uncthread681] localstack.utils.threads : Thread run method <function AdaptiveThreadPool.submit.<locals>._run at 0xfffe9365fe20>(None) failed: Exception during $connect action: No connection adapters were found for 'cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-api.localhost.localstack.cloud%3A4566%2Fapi%2Fws=&Authorization=eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg' Traceback (most recent call last):
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack_ext/services/apigateway/integrations.py.enc", line 136, in v2_invoke_action_from_websocket
localstack | J=A.data_as_string();I=create_integration_payload_event(A);R=json.dumps(json_safe(J))if isinstance(J,(dict,list))else J;A.data=I[_A]=str(R);I[_H].update(get_event_request_context(A));I[_H]['connectionId']=A.connection_id;C=v2_invoke_integration_request(A,H,I)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack_ext/services/apigateway/integrations.py.enc", line 143, in v2_invoke_integration_request
localstack | D=integration_details;C=invocation_context;B=message;B=prepare_request_to_integration_params(D,B,C);A=v2_do_invoke_integration_request(C,D,B)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack_ext/services/apigateway/integrations.py.enc", line 168, in v2_do_invoke_integration_request
localstack | elif E in['HTTP',_a]:return HttpIntegration().invoke(B)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack_ext/services/apigateway/integrations.py.enc", line 208, in invoke
localstack | C=json.dumps(json_safe(C))if isinstance(C,dict)else C;U={}if E in[N,'DELETE',_X]else{'data':C};B=apply_route_path_params_to_integration_uri(A,O,B);LOG.debug('Sending %s request to %s in response to invocation message %s',E,B,H);G=safe_requests.request(method=E,url=B,headers=D,**U);M=G.content
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/utils/http.py", line 135, in _wrapper
localstack | return method(*args, **kwargs)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
localstack | return session.request(method=method, url=url, **kwargs)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
localstack | resp = self.send(prep, **send_kwargs)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/requests/sessions.py", line 697, in send
localstack | adapter = self.get_adapter(url=request.url)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/requests/sessions.py", line 794, in get_adapter
localstack | raise InvalidSchema(f"No connection adapters were found for {url!r}")
localstack | requests.exceptions.InvalidSchema: No connection adapters were found for 'cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-api.localhost.localstack.cloud%3A4566%2Fapi%2Fws=&Authorization=eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg'
localstack |
localstack | The above exception was the direct cause of the following exception:
localstack |
localstack | Traceback (most recent call last):
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/utils/threads.py", line 58, in run
localstack | result = self.func(self.params, **kwargs)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/utils/asyncio.py", line 30, in _run
localstack | return fn(*args, **kwargs)
localstack | ^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack_ext/services/apigateway/integrations.py.enc", line 98, in A
localstack | with RequestContextManager(S):B=v2_invoke_action_from_websocket(A,D,E)
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack_ext/services/apigateway/integrations.py.enc", line 140, in v2_invoke_action_from_websocket
localstack | if E==_Q:raise ConnectionDeniedException(f"Exception during $connect action: {K}")from K
localstack | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
localstack | localstack_ext.services.apigateway.models.ConnectionDeniedException: Exception during $connect action: No connection adapters were found for 'cd4eac2f.execute-api.localhost.localstack.cloud:4566/api/ws?cd4eac2f.execute-api.localhost.localstack.cloud%3A4566%2Fapi%2Fws=&Authorization=eyJhbGciOiJSUzI1NiIsImtpZCI6ImI3MTQ3NjE0LTc0NGMtNGM1Ny05NGRmLTFmNDFkMTI1ZTI5NSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDMwMDIwNTAsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV82MDE4OTI5NGFmOGQ0YjA3ODQ2MGRlMGE2MzUzYzc5NSIsInN1YiI6ImQwMDAyOTQ2LTcwZTAtNDcyYS05ZDY4LTUyYTg1NjA5MDQ1ZCIsImF1dGhfdGltZSI6MTcwMjk5ODQ1MCwiaWF0IjoxNzAyOTk4NDUwLCJldmVudF9pZCI6ImM0ODcyZGQ5LWM5OTEtNGM1ZS1hYWQ0LWZkM2YyNjZmYjlkOSIsInRva2VuX3VzZSI6ImlkIiwiY29nbml0bzp1c2VybmFtZSI6ImFkbWluMUB0ZXN0LmNvbSIsImVtYWlsIjoiYWRtaW4xQHRlc3QuY29tIiwiYXVkIjoicWpvb2pqaXcxM3dkZGVudzhsOTE4Z3BnY3MiLCJjb2duaXRvOmdyb3VwcyI6WyJBZG1pbiJdLCJnaXZlbl9uYW1lIjoiQWRtaW4iLCJmYW1pbHlfbmFtZSI6IlVzZXIiLCJjdXN0b206dGVuYW50aWQiOiI4ODgiLCJjb2duaXRvOnVzZXJfc3RhdHVzIjoiQ09ORklSTUVEIiwidGVuYW50aWQiOiI4ODgifQ.O1fAvI3nW_I2N0Ezno-pRawfgfVAqEHtY8ZpbaTwGv-B5XXKHg1kO5qHTcZG1vhbzDoL-lvWz1HLttX15-JZ23am1aWDKPuOydfL1C07qxgpKGEAdUPfHr1aAxq9glwsZL-csx4828iBykQfc17-m3He5fjgVaq9_5EvqBpl-lu8KIzRG8IvFrXUDXWyB9ghDqbElizmmRBNBb5u-RoHCzSWR91-ii8znf1CLnk9_-8eF32XFilTlxqlasm81ADg2xYaDFJUgp3-7yeq2LX1_yJBTInzM88-TZHSVjVKWpHQt5Mwo8hExv429uxhp1hgaPp_ICHk9wvxLfwBbCUOgg'
localstack |
localstack | 2023-12-19T15:07:38.904 DEBUG --- [uncthread681] localstack.utils.threads : FINISHED: <Future at 0xfffe93687990 state=finished raised ConnectionDeniedException>
localstack | 2023-12-19T15:16:20.080 DEBUG --- [ Thread-31] l.s.l.i.execution_environm : Execution environment 7e32c60a77ad4344ab88bae9bfbd2826 for function arn:aws:lambda:us-east-1:000000000000:function:app-stack-local-CustomVpcRestrictDefault-afcc6cfe:$LATEST has not received any invocations in a while. Stopping.
localstack | 2023-12-19T15:16:20.081 DEBUG --- [ Thread-31] l.u.c.docker_sdk_client : Stopping container: localstack-lambda-app-stack-local-customvpcrestrictdefault-afcc6cfe-7e32c60a77ad4344ab88bae9bfbd2826
localstack | 2023-12-19T15:16:20.212 DEBUG --- [ Thread-31] l.u.c.docker_sdk_client : Removing container: localstack-lambda-app-stack-local-customvpcrestrictdefault-afcc6cfe-7e32c60a77ad4344ab88bae9bfbd2826