[2024-10-08 18:35:10][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 18:35:10][DEBUG] : Sending http request: [2024-10-08 18:35:10][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 18:35:10][DEBUG] : Starting new HTTPS connection (1): cognito-idp.us-east-2.amazonaws.com:443 [2024-10-08 18:35:11][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 200 2731 [2024-10-08 18:35:11][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 16:35:11 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '2731', 'Connection': 'keep-alive', 'x-amzn-RequestId': '4cd19406-63ba-436a-838e-1aa5a37f749e'} [2024-10-08 18:35:11][DEBUG] : Response body: b'{"ChallengeName":"PASSWORD_VERIFIER","ChallengeParameters":{"SALT":"xxxxxxxxxxxxxxxxxxx","SECRET_BLOCK":"xxxxxxxxxx","SRP_B":"xxxxxxxxx","USERNAME":"xxxxxxxxx"}}' [2024-10-08 18:35:11][DEBUG] : Event needs-retry.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 18:35:11][DEBUG] : No retry needed. [2024-10-08 18:35:11][DEBUG] : Event before-parameter-build.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 18:35:11][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 18:35:11][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 18:35:11][DEBUG] : Event before-call.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 18:35:11][DEBUG] : Event before-call.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 18:35:11][DEBUG] : Making request for OperationModel(name=RespondToAuthChallenge) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.RespondToAuthChallenge', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"ClientId": "4qte47jbstod8apnfic0bunmrq", "ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"TIMESTAMP": "Tue Oct 8 16:35:11 UTC 2024", "USERNAME": "xxxxxxxxxxxxxxx", "PASSWORD_CLAIM_SECRET_BLOCK": "xxxxxxxxxxxxxxx", "PASSWORD_CLAIM_SIGNATURE": "xxxxxxxxxxxxxxx"}}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 18:35:11][DEBUG] : Event request-created.cognito-identity-provider.RespondToAuthChallenge: calling handler > [2024-10-08 18:35:11][DEBUG] : Event choose-signer.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 18:35:11][DEBUG] : Event request-created.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 18:35:11][DEBUG] : Sending http request: [2024-10-08 18:35:11][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 18:35:11][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 400 79 [2024-10-08 18:35:11][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 16:35:11 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '79', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'a7d316a0-224f-4489-bc8f-dead31388743', 'x-amzn-ErrorType': 'NotAuthorizedException:', 'x-amzn-ErrorMessage': 'Incorrect username or password.'} [2024-10-08 18:35:11][DEBUG] : Response body: b'{"__type":"NotAuthorizedException","message":"Incorrect username or password."}' [2024-10-08 18:35:11][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 16:35:11 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '79', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'a7d316a0-224f-4489-bc8f-dead31388743', 'x-amzn-ErrorType': 'NotAuthorizedException:', 'x-amzn-ErrorMessage': 'Incorrect username or password.'} [2024-10-08 18:35:11][DEBUG] : Response body: b'{"__type":"NotAuthorizedException","message":"Incorrect username or password."}' [2024-10-08 18:35:11][DEBUG] : Event needs-retry.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 18:35:11][DEBUG] : No retry needed. [2024-10-08 18:35:11][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-08 19:07:57][DEBUG] : Signal 15 caught, exiting... [2024-10-08 19:07:57][DEBUG] : Shutdown [2024-10-08 19:07:57][DEBUG] : Removing PID file /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:07:58][INFO] : Lancement du démon Emporia Pro : /usr/bin/python3 /var/www/html/plugins/emporiapro/resources/emporiaprod/emporiaprod.py --loglevel debug --callback http://127.0.0.1:80/plugins/emporiapro/core/php/jeeEmporiaPro.php --apikey xxxxxxxxxxxxxxx --pidfile /tmp/jeedom/emporiapro/deamon.pid --socketport 55027 --config xxxxxxxxxxxxxxx [2024-10-08 19:07:59][INFO] : Starting Emporia Energy Pro Daemon [2024-10-08 19:07:59][INFO] : Log level : debug [2024-10-08 19:07:59][INFO] : Socket port : 55027 [2024-10-08 19:07:59][INFO] : Socket host : localhost [2024-10-08 19:07:59][INFO] : PID file : /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:07:59][INFO] : Apikey : xxxxxxxxxxxxxxx [2024-10-08 19:07:59][INFO] : Configuration : xxxxxxxxxxxxxxx [2024-10-08 19:07:59][INFO] : Writing PID 1149662 to /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:07:59][INFO] : Init request module v2.32.3 [2024-10-08 19:07:59][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2024-10-08 19:07:59][INFO] : jeeEmporiaPro:: result:NULL [2024-10-08 19:07:59][DEBUG] : http://127.0.0.1:80 "GET /plugins/emporiapro/core/php/jeeEmporiaPro.php?apikey=xxxxxxxxxxxxxxx HTTP/1.1" 200 0 [2024-10-08 19:07:59][DEBUG] : Using selector: EpollSelector [2024-10-08 19:07:59][INFO] : Socket interface started [2024-10-08 19:07:59][INFO] : LoopNetServer Thread started [2024-10-08 19:07:59][DEBUG] : Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane [2024-10-08 19:07:59][INFO] : Listening on: [localhost:55027] [2024-10-08 19:07:59][DEBUG] : Changing event name from before-call.apigateway to before-call.api-gateway [2024-10-08 19:07:59][DEBUG] : Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict [2024-10-08 19:07:59][DEBUG] : Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration [2024-10-08 19:07:59][DEBUG] : Changing event name from before-parameter-build.route53 to before-parameter-build.route-53 [2024-10-08 19:07:59][DEBUG] : Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search [2024-10-08 19:07:59][DEBUG] : Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section [2024-10-08 19:07:59][DEBUG] : Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask [2024-10-08 19:07:59][DEBUG] : Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section [2024-10-08 19:07:59][DEBUG] : Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search [2024-10-08 19:07:59][DEBUG] : Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section [2024-10-08 19:07:59][DEBUG] : IMDS ENDPOINT: http://169.254.169.254/ [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: env [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: assume-role [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: assume-role-with-web-identity [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: sso [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: shared-credentials-file [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: custom-process [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: config-file [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: ec2-credentials-file [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: boto-config [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: container-role [2024-10-08 19:07:59][DEBUG] : Looking for credentials via: iam-role [2024-10-08 19:07:59][DEBUG] : Starting new HTTP connection (1): 169.254.169.254:80 [2024-10-08 19:08:00][DEBUG] : Caught retryable HTTP exception while making metadata service request to http://169.254.169.254/latest/api/token: Connect timeout on endpoint URL: "http://169.254.169.254/latest/api/token" Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 464, in send urllib_response = conn.urlopen( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 802, in urlopen retries = retries.increment( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 527, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py", line 770, in reraise raise value File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 716, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 96, in request rval = super().request(method, url, body, headers, *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 123, in _send_output self.send(msg) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 223, in send return super().send(str) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 169.254.169.254 timed out. (connect timeout=1)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/utils.py", line 458, in _fetch_metadata_token response = self._session.send(request.prepare()) File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 499, in send raise ConnectTimeoutError(endpoint_url=request.url, error=e) botocore.exceptions.ConnectTimeoutError: Connect timeout on endpoint URL: "http://169.254.169.254/latest/api/token" [2024-10-08 19:08:00][DEBUG] : Starting new HTTP connection (2): 169.254.169.254:80 [2024-10-08 19:08:01][DEBUG] : Caught retryable HTTP exception while making metadata service request to http://169.254.169.254/latest/meta-data/iam/security-credentials/: Connect timeout on endpoint URL: "http://169.254.169.254/latest/meta-data/iam/security-credentials/" Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 464, in send urllib_response = conn.urlopen( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 802, in urlopen retries = retries.increment( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 527, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py", line 770, in reraise raise value File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 716, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 96, in request rval = super().request(method, url, body, headers, *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 123, in _send_output self.send(msg) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 223, in send return super().send(str) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 169.254.169.254 timed out. (connect timeout=1)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/utils.py", line 513, in _get_request response = self._session.send(request.prepare()) File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 499, in send raise ConnectTimeoutError(endpoint_url=request.url, error=e) botocore.exceptions.ConnectTimeoutError: Connect timeout on endpoint URL: "http://169.254.169.254/latest/meta-data/iam/security-credentials/" [2024-10-08 19:08:01][DEBUG] : Max number of attempts exceeded (1) when attempting to retrieve data from metadata service. [2024-10-08 19:08:01][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/endpoints.json [2024-10-08 19:08:02][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/sdk-default-configuration.json [2024-10-08 19:08:02][DEBUG] : Event choose-service-name: calling handler [2024-10-08 19:08:02][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/cognito-idp/2016-04-18/service-2.json.gz [2024-10-08 19:08:02][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/cognito-idp/2016-04-18/endpoint-rule-set-1.json.gz [2024-10-08 19:08:02][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/partitions.json [2024-10-08 19:08:02][DEBUG] : Event creating-client-class.cognito-identity-provider: calling handler [2024-10-08 19:08:02][DEBUG] : Looking for endpoint for cognito-idp via: environment_service [2024-10-08 19:08:02][DEBUG] : Looking for endpoint for cognito-idp via: environment_global [2024-10-08 19:08:02][DEBUG] : Looking for endpoint for cognito-idp via: config_service [2024-10-08 19:08:02][DEBUG] : Looking for endpoint for cognito-idp via: config_global [2024-10-08 19:08:02][DEBUG] : No configured endpoint found. [2024-10-08 19:08:02][DEBUG] : Setting cognito-idp timeout as (60, 60) [2024-10-08 19:08:02][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/_retry.json [2024-10-08 19:08:02][DEBUG] : Registering retry handlers for service: cognito-idp [2024-10-08 19:08:02][DEBUG] : Event before-parameter-build.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:08:02][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 19:08:02][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 19:08:02][DEBUG] : Event before-call.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:08:02][DEBUG] : Event before-call.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:08:02][DEBUG] : Making request for OperationModel(name=InitiateAuth) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.InitiateAuth', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"AuthFlow": "USER_SRP_AUTH", "AuthParameters": {"USERNAME": "clair", "SRP_A": "xxxxxxxxxxxxxxx"}, "ClientId": "xxxxxxxxxxxxxxx"}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 19:08:02][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler > [2024-10-08 19:08:02][DEBUG] : Event choose-signer.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:08:02][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:08:02][DEBUG] : Sending http request: [2024-10-08 19:08:02][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 19:08:02][DEBUG] : Starting new HTTPS connection (1): cognito-idp.us-east-2.amazonaws.com:443 [2024-10-08 19:08:03][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 200 2731 [2024-10-08 19:08:03][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:08:03 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '2731', 'Connection': 'keep-alive', 'x-amzn-RequestId': '3f7e1f1d-b576-4eaf-9451-9707d240ffd9'} [2024-10-08 19:08:03][DEBUG] : Response body: b'{"ChallengeName":"PASSWORD_VERIFIER","ChallengeParameters":{"SALT":"xxxxxxxxxxxxxxx","SECRET_BLOCK":"xxxxxxxxxxxxxxx","SRP_B":"xxxxxxxxxxxxxxx","USERNAME":"xxxxxxxxxxxxxxx","USER_ID_FOR_SRP":"xxxxxxxxxxxxxxx"}}' [2024-10-08 19:08:03][DEBUG] : Event needs-retry.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:08:03][DEBUG] : No retry needed. [2024-10-08 19:08:03][DEBUG] : Event before-parameter-build.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:08:03][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 19:08:03][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 19:08:03][DEBUG] : Event before-call.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:08:03][DEBUG] : Event before-call.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:08:03][DEBUG] : Making request for OperationModel(name=RespondToAuthChallenge) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.RespondToAuthChallenge', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"ClientId": "xxxxxxxxxxxxxxx", "ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"TIMESTAMP": "Tue Oct 8 17:08:03 UTC 2024", "USERNAME": "xxxxxxxxxxxxxxx", "PASSWORD_CLAIM_SECRET_BLOCK": "xxxxxxxxxxxxxxx", "PASSWORD_CLAIM_SIGNATURE": "xxxxxxxxxxxxxxx"}}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 19:08:03][DEBUG] : Event request-created.cognito-identity-provider.RespondToAuthChallenge: calling handler > [2024-10-08 19:08:03][DEBUG] : Event choose-signer.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:08:03][DEBUG] : Event request-created.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:08:03][DEBUG] : Sending http request: [2024-10-08 19:08:03][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 19:08:03][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 400 79 [2024-10-08 19:08:03][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:08:03 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '79', 'Connection': 'keep-alive', 'x-amzn-RequestId': '8a2baf83-d95a-4ec7-9d35-3fe0ef0aa31f', 'x-amzn-ErrorType': 'NotAuthorizedException:', 'x-amzn-ErrorMessage': 'Incorrect username or password.'} [2024-10-08 19:08:03][DEBUG] : Response body: b'{"__type":"NotAuthorizedException","message":"Incorrect username or password."}' [2024-10-08 19:08:03][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:08:03 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '79', 'Connection': 'keep-alive', 'x-amzn-RequestId': '8a2baf83-d95a-4ec7-9d35-3fe0ef0aa31f', 'x-amzn-ErrorType': 'NotAuthorizedException:', 'x-amzn-ErrorMessage': 'Incorrect username or password.'} [2024-10-08 19:08:03][DEBUG] : Response body: b'{"__type":"NotAuthorizedException","message":"Incorrect username or password."}' [2024-10-08 19:08:03][DEBUG] : Event needs-retry.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:08:03][DEBUG] : No retry needed. [2024-10-08 19:08:03][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-08 19:11:05][DEBUG] : Signal 15 caught, exiting... [2024-10-08 19:11:05][DEBUG] : Shutdown [2024-10-08 19:11:05][DEBUG] : Removing PID file /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:11:05][INFO] : Lancement du démon Emporia Pro : /usr/bin/python3 /var/www/html/plugins/emporiapro/resources/emporiaprod/emporiaprod.py --loglevel debug --callback http://127.0.0.1:80/plugins/emporiapro/core/php/jeeEmporiaPro.php --apikey xxxxxxxxxxxxxxx --pidfile /tmp/jeedom/emporiapro/deamon.pid --socketport 55027 --config xxxxxxxxxxxxxxx [2024-10-08 19:11:07][INFO] : Starting Emporia Energy Pro Daemon [2024-10-08 19:11:07][INFO] : Log level : debug [2024-10-08 19:11:07][INFO] : Socket port : 55027 [2024-10-08 19:11:07][INFO] : Socket host : localhost [2024-10-08 19:11:07][INFO] : PID file : /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:11:07][INFO] : Apikey : xxxxxxxxxxxxxxx [2024-10-08 19:11:07][INFO] : Configuration : xxxxxxxxxxxxxxx [2024-10-08 19:11:07][INFO] : Writing PID 1150597 to /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:11:07][INFO] : Init request module v2.32.3 [2024-10-08 19:11:07][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2024-10-08 19:11:07][INFO] : jeeEmporiaPro:: result:NULL [2024-10-08 19:11:07][DEBUG] : http://127.0.0.1:80 "GET /plugins/emporiapro/core/php/jeeEmporiaPro.php?apikey=xxxxxxxxxxxxxxx HTTP/1.1" 200 0 [2024-10-08 19:11:07][DEBUG] : Using selector: EpollSelector [2024-10-08 19:11:07][INFO] : Socket interface started [2024-10-08 19:11:07][INFO] : LoopNetServer Thread started [2024-10-08 19:11:07][DEBUG] : Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane [2024-10-08 19:11:07][INFO] : Listening on: [localhost:55027] [2024-10-08 19:11:07][DEBUG] : Changing event name from before-call.apigateway to before-call.api-gateway [2024-10-08 19:11:07][DEBUG] : Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict [2024-10-08 19:11:07][DEBUG] : Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration [2024-10-08 19:11:07][DEBUG] : Changing event name from before-parameter-build.route53 to before-parameter-build.route-53 [2024-10-08 19:11:07][DEBUG] : Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search [2024-10-08 19:11:07][DEBUG] : Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section [2024-10-08 19:11:07][DEBUG] : Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask [2024-10-08 19:11:07][DEBUG] : Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section [2024-10-08 19:11:07][DEBUG] : Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search [2024-10-08 19:11:07][DEBUG] : Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section [2024-10-08 19:11:07][DEBUG] : IMDS ENDPOINT: http://169.254.169.254/ [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: env [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: assume-role [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: assume-role-with-web-identity [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: sso [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: shared-credentials-file [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: custom-process [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: config-file [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: ec2-credentials-file [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: boto-config [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: container-role [2024-10-08 19:11:07][DEBUG] : Looking for credentials via: iam-role [2024-10-08 19:11:07][DEBUG] : Starting new HTTP connection (1): 169.254.169.254:80 [2024-10-08 19:11:08][DEBUG] : Caught retryable HTTP exception while making metadata service request to http://169.254.169.254/latest/api/token: Connect timeout on endpoint URL: "http://169.254.169.254/latest/api/token" Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 464, in send urllib_response = conn.urlopen( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 802, in urlopen retries = retries.increment( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 527, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py", line 770, in reraise raise value File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 716, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 96, in request rval = super().request(method, url, body, headers, *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 123, in _send_output self.send(msg) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 223, in send return super().send(str) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 169.254.169.254 timed out. (connect timeout=1)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/utils.py", line 458, in _fetch_metadata_token response = self._session.send(request.prepare()) File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 499, in send raise ConnectTimeoutError(endpoint_url=request.url, error=e) botocore.exceptions.ConnectTimeoutError: Connect timeout on endpoint URL: "http://169.254.169.254/latest/api/token" [2024-10-08 19:11:08][DEBUG] : Starting new HTTP connection (2): 169.254.169.254:80 [2024-10-08 19:11:09][DEBUG] : Caught retryable HTTP exception while making metadata service request to http://169.254.169.254/latest/meta-data/iam/security-credentials/: Connect timeout on endpoint URL: "http://169.254.169.254/latest/meta-data/iam/security-credentials/" Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/lib/python3.9/dist-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 464, in send urllib_response = conn.urlopen( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 802, in urlopen retries = retries.increment( File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 527, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py", line 770, in reraise raise value File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 716, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 416, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 96, in request rval = super().request(method, url, body, headers, *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 123, in _send_output self.send(msg) File "/usr/local/lib/python3.9/dist-packages/botocore/awsrequest.py", line 223, in send return super().send(str) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 169.254.169.254 timed out. (connect timeout=1)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/botocore/utils.py", line 513, in _get_request response = self._session.send(request.prepare()) File "/usr/local/lib/python3.9/dist-packages/botocore/httpsession.py", line 499, in send raise ConnectTimeoutError(endpoint_url=request.url, error=e) botocore.exceptions.ConnectTimeoutError: Connect timeout on endpoint URL: "http://169.254.169.254/latest/meta-data/iam/security-credentials/" [2024-10-08 19:11:09][DEBUG] : Max number of attempts exceeded (1) when attempting to retrieve data from metadata service. [2024-10-08 19:11:09][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/endpoints.json [2024-10-08 19:11:09][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/sdk-default-configuration.json [2024-10-08 19:11:09][DEBUG] : Event choose-service-name: calling handler [2024-10-08 19:11:09][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/cognito-idp/2016-04-18/service-2.json.gz [2024-10-08 19:11:09][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/cognito-idp/2016-04-18/endpoint-rule-set-1.json.gz [2024-10-08 19:11:09][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/partitions.json [2024-10-08 19:11:09][DEBUG] : Event creating-client-class.cognito-identity-provider: calling handler [2024-10-08 19:11:09][DEBUG] : Looking for endpoint for cognito-idp via: environment_service [2024-10-08 19:11:09][DEBUG] : Looking for endpoint for cognito-idp via: environment_global [2024-10-08 19:11:09][DEBUG] : Looking for endpoint for cognito-idp via: config_service [2024-10-08 19:11:09][DEBUG] : Looking for endpoint for cognito-idp via: config_global [2024-10-08 19:11:09][DEBUG] : No configured endpoint found. [2024-10-08 19:11:09][DEBUG] : Setting cognito-idp timeout as (60, 60) [2024-10-08 19:11:09][DEBUG] : Loading JSON file: /usr/local/lib/python3.9/dist-packages/botocore/data/_retry.json [2024-10-08 19:11:09][DEBUG] : Registering retry handlers for service: cognito-idp [2024-10-08 19:11:09][DEBUG] : Event before-parameter-build.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:09][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 19:11:09][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 19:11:09][DEBUG] : Event before-call.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:09][DEBUG] : Event before-call.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:09][DEBUG] : Making request for OperationModel(name=InitiateAuth) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.InitiateAuth', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"AuthFlow": "USER_SRP_AUTH", "AuthParameters": {"USERNAME": "clair", "SRP_A": "xxxxxxxxxxxxxxx"}, "ClientId": "xxxxxxxxxxxxxxx"}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 19:11:09][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler > [2024-10-08 19:11:09][DEBUG] : Event choose-signer.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:09][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:09][DEBUG] : Sending http request: [2024-10-08 19:11:09][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 19:11:09][DEBUG] : Starting new HTTPS connection (1): cognito-idp.us-east-2.amazonaws.com:443 [2024-10-08 19:11:10][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 200 2727 [2024-10-08 19:11:10][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:11:10 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '2727', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'd8c6942c-b41b-4673-aebb-4a6e04b1d281'} [2024-10-08 19:11:10][DEBUG] : Response body: b'{"ChallengeName":"PASSWORD_VERIFIER","ChallengeParameters":{"SALT":"xxxxxxxxxxxxxxx","SECRET_BLOCK":"xxxxxxxxxxxxxxx","SRP_B":"xxxxxxxxxxxxxxx","USERNAME":"xxxxxxxxxxxxxxx","USER_ID_FOR_SRP":"xxxxxxxxxxxxxxx"}}' [2024-10-08 19:11:10][DEBUG] : Event needs-retry.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:10][DEBUG] : No retry needed. [2024-10-08 19:11:10][DEBUG] : Event before-parameter-build.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:11:10][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 19:11:10][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 19:11:10][DEBUG] : Event before-call.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:11:10][DEBUG] : Event before-call.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:11:10][DEBUG] : Making request for OperationModel(name=RespondToAuthChallenge) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.RespondToAuthChallenge', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"ClientId": "xxxxxxxxxxxxxxx", "ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"TIMESTAMP": "Tue Oct 8 17:11:10 UTC 2024", "USERNAME": "xxxxxxxxxxxxxxx", "PASSWORD_CLAIM_SECRET_BLOCK": "xxxxxxxxxxxxxxx", "PASSWORD_CLAIM_SIGNATURE": "xxxxxxxxxxxxxxx"}}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 19:11:10][DEBUG] : Event request-created.cognito-identity-provider.RespondToAuthChallenge: calling handler > [2024-10-08 19:11:10][DEBUG] : Event choose-signer.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:11:10][DEBUG] : Event request-created.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:11:10][DEBUG] : Sending http request: [2024-10-08 19:11:10][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 19:11:10][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 200 3944 [2024-10-08 19:11:10][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:11:10 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '3944', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'd094ad63-ac84-4cca-ac6b-b227b37c5f72'} [2024-10-08 19:11:10][DEBUG] : Response body: b'{"AuthenticationResult":{"AccessToken":"xxxxxxxxxxxxxxx","ExpiresIn":3600,"IdToken":"xxxxxxxxxxxxxxx","RefreshToken":"xxxxxxxxxxxxxxx","TokenType":"Bearer"},"ChallengeParameters":{}}' [2024-10-08 19:11:10][DEBUG] : Event needs-retry.cognito-identity-provider.RespondToAuthChallenge: calling handler [2024-10-08 19:11:10][DEBUG] : No retry needed. [2024-10-08 19:11:10][DEBUG] : Starting new HTTPS connection (1): cognito-idp.us-east-2.amazonaws.com:443 [2024-10-08 19:11:11][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "GET /us-east-2_ghlOXVLi1/.well-known/jwks.json HTTP/1.1" 200 916 [2024-10-08 19:11:11][DEBUG] : Event before-parameter-build.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:11][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 19:11:11][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 19:11:11][DEBUG] : Event before-call.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:11][DEBUG] : Event before-call.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:11][DEBUG] : Making request for OperationModel(name=InitiateAuth) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.InitiateAuth', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"ClientId": "xxxxxxxxxxxxxxx", "AuthFlow": "REFRESH_TOKEN_AUTH", "AuthParameters": {"REFRESH_TOKEN": "xxxxxxxxxxxxxxx"}}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 19:11:11][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler > [2024-10-08 19:11:11][DEBUG] : Event choose-signer.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:11][DEBUG] : Event request-created.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:11][DEBUG] : Sending http request: [2024-10-08 19:11:11][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 19:11:11][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 200 2141 [2024-10-08 19:11:11][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:11:11 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '2141', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'e03b92a1-019e-40ff-8fd7-30b54d2ad31c'} [2024-10-08 19:11:11][DEBUG] : Response body: b'{"AuthenticationResult":{"AccessToken":"xxxxxxxxxxxxxxx","ExpiresIn":3600,"IdToken":"xxxxxxxxxxxxxxx","TokenType":"Bearer"},"ChallengeParameters":{}}' [2024-10-08 19:11:11][DEBUG] : Event needs-retry.cognito-identity-provider.InitiateAuth: calling handler [2024-10-08 19:11:11][DEBUG] : No retry needed. [2024-10-08 19:11:11][DEBUG] : Event before-parameter-build.cognito-identity-provider.GetUser: calling handler [2024-10-08 19:11:11][DEBUG] : Calling endpoint provider with parameters: {'Region': 'us-east-2', 'UseDualStack': False, 'UseFIPS': False} [2024-10-08 19:11:11][DEBUG] : Endpoint provider result: https://cognito-idp.us-east-2.amazonaws.com [2024-10-08 19:11:11][DEBUG] : Event before-call.cognito-identity-provider.GetUser: calling handler [2024-10-08 19:11:11][DEBUG] : Event before-call.cognito-identity-provider.GetUser: calling handler [2024-10-08 19:11:11][DEBUG] : Making request for OperationModel(name=GetUser) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSCognitoIdentityProviderService.GetUser', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.35.35 md/Botocore#1.35.35 ua/2.0 os/linux#6.5.13-arm64 md/arch#aarch64 lang/python#3.9.2 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.35.35'}, 'body': b'{"AccessToken": "xxxxxxxxxxxxxxx"}', 'url': 'https://cognito-idp.us-east-2.amazonaws.com/', 'context': {'client_region': 'us-east-2', 'client_config': , 'has_streaming_input': False, 'auth_type': 'none', 'unsigned_payload': None}} [2024-10-08 19:11:11][DEBUG] : Event request-created.cognito-identity-provider.GetUser: calling handler > [2024-10-08 19:11:11][DEBUG] : Event choose-signer.cognito-identity-provider.GetUser: calling handler [2024-10-08 19:11:11][DEBUG] : Event request-created.cognito-identity-provider.GetUser: calling handler [2024-10-08 19:11:11][DEBUG] : Sending http request: [2024-10-08 19:11:11][DEBUG] : Certificate path: /usr/local/lib/python3.9/dist-packages/certifi/cacert.pem [2024-10-08 19:11:11][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "POST / HTTP/1.1" 200 302 [2024-10-08 19:11:11][DEBUG] : Response headers: {'Date': 'Tue, 08 Oct 2024 17:11:11 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '302', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'a29c2f94-2a07-49a9-92ea-f23a7da85148'} [2024-10-08 19:11:11][DEBUG] : Response body: b'{"UserAttributes":[{"Name":"sub","Value":"15cadfec-f7b8-414f-a603-7b7feb7a0422"},{"Name":"website","Value":"emporiaenergy.com"},{"Name":"email_verified","Value":"true"},{"Name":"name","Value":"MarcDietrich"},{"Name":"email","Value":"clair"}],"Username":"xxxxxxxxxxxxxxx"}' [2024-10-08 19:11:11][DEBUG] : Event needs-retry.cognito-identity-provider.GetUser: calling handler [2024-10-08 19:11:11][DEBUG] : No retry needed. [2024-10-08 19:11:11][DEBUG] : Starting new HTTPS connection (1): cognito-idp.us-east-2.amazonaws.com:443 [2024-10-08 19:11:12][DEBUG] : https://cognito-idp.us-east-2.amazonaws.com:443 "GET /us-east-2_ghlOXVLi1/.well-known/jwks.json HTTP/1.1" 200 916 [2024-10-08 19:11:12][DEBUG] : Starting new HTTPS connection (1): api.emporiaenergy.com:443 [2024-10-08 19:11:12][DEBUG] : https://api.emporiaenergy.com:443 "GET /customers HTTP/1.1" 200 124 [2024-10-08 19:11:12][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-08 19:12:14][DEBUG] : Signal 15 caught, exiting... [2024-10-08 19:12:14][DEBUG] : Shutdown [2024-10-08 19:12:14][DEBUG] : Removing PID file /tmp/jeedom/emporiapro/deamon.pid [2024-10-08 19:12:21][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-09 06:30:11][ERROR] : Could not authenticate with Emporia API (err= 'Auth' object has no attribute 'cognito') [2024-10-09 06:43:33][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-19 06:05:31][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-22 15:48:25][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-22 15:52:43][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-22 15:58:53][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-22 16:05:22][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given) [2024-10-22 16:26:01][ERROR] : Could not authenticate with Emporia API (err= get_customer_details() takes 1 positional argument but 2 were given)