We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While I running file run.sh (with TEST_RUN=False), i got error NoCredentialsError (log below) in test_docker.py file.
Hope you can help me with this matter !
` ⠿ Network integraton-test_default Created 0.0s ⠿ Container integraton-test-backend-1 Started 0.5s ⠿ Container integraton-test-kinesis-1 Started 0.5s
Connection was closed before we received a valid response from endpoint URL: "http://localhost:4566/". actual response: { "errorMessage": "Unable to locate credentials", "errorType": "NoCredentialsError", "requestId": "1173b84e-0972-4316-b62a-ff1e28282636", "stackTrace": [ " File "/var/task/lambda_function.py", line 19, in lambda_handler\n return model_service.lambda_handler(event)\n", " File "/var/task/model.py", line 73, in lambda_handler\n callback(prediction_event)\n", " File "/var/task/model.py", line 88, in put_record\n self.kinesis_client.put_record(\n", " File "/var/runtime/botocore/client.py", line 391, in _api_call\n return self._make_api_call(operation_name, kwargs)\n", " File "/var/runtime/botocore/client.py", line 705, in _make_api_call\n http, parsed_response = self._make_request(\n", " File "/var/runtime/botocore/client.py", line 725, in _make_request\n return self._endpoint.make_request(operation_model, request_dict)\n", " File "/var/runtime/botocore/endpoint.py", line 104, in make_request\n return self._send_request(request_dict, operation_model)\n", " File "/var/runtime/botocore/endpoint.py", line 134, in _send_request\n request = self.create_request(request_dict, operation_model)\n", " File "/var/runtime/botocore/endpoint.py", line 117, in create_request\n self._event_emitter.emit(event_name, request=request,\n", " File "/var/runtime/botocore/hooks.py", line 357, in emit\n return self._emitter.emit(aliased_event_name, **kwargs)\n", " File "/var/runtime/botocore/hooks.py", line 228, in emit\n return self._emit(event_name, kwargs)\n", " File "/var/runtime/botocore/hooks.py", line 211, in _emit\n response = handler(**kwargs)\n", " File "/var/runtime/botocore/signers.py", line 93, in handler\n return self.sign(operation_name, request)\n", " File "/var/runtime/botocore/signers.py", line 165, in sign\n auth.add_auth(request)\n", " File "/var/runtime/botocore/auth.py", line 378, in add_auth\n raise NoCredentialsError()\n" ] } diff={'dictionary_item_added': [root['predictions']], 'dictionary_item_removed': [root['errorMessage'], root['errorType'], root['requestId'], root['stackTrace']]} [+] Running 3/3 ⠿ Container integraton-test-backend-1 Removed 0.2s ⠿ Container integraton-test-kinesis-1 Removed 3.4s ⠿ Network integraton-test_default Removed 0.1s`
The text was updated successfully, but these errors were encountered:
Maybe this will help?
https://github.com/DataTalksClub/mlops-zoomcamp/blob/main/06-best-practices/code/README.md#unable-to-locate-credentials
Seems like a common problem, so opening a PR with a fix and a comment in README may make sense
Sorry, something went wrong.
Yeah. I fixed it. Thank you very much!
No branches or pull requests
While I running file run.sh (with TEST_RUN=False), i got error NoCredentialsError (log below) in test_docker.py file.
Hope you can help me with this matter !
` ⠿ Network integraton-test_default Created 0.0s
⠿ Container integraton-test-backend-1 Started 0.5s
⠿ Container integraton-test-kinesis-1 Started 0.5s
Connection was closed before we received a valid response from endpoint URL: "http://localhost:4566/".
actual response:
{
"errorMessage": "Unable to locate credentials",
"errorType": "NoCredentialsError",
"requestId": "1173b84e-0972-4316-b62a-ff1e28282636",
"stackTrace": [
" File "/var/task/lambda_function.py", line 19, in lambda_handler\n return model_service.lambda_handler(event)\n",
" File "/var/task/model.py", line 73, in lambda_handler\n callback(prediction_event)\n",
" File "/var/task/model.py", line 88, in put_record\n self.kinesis_client.put_record(\n",
" File "/var/runtime/botocore/client.py", line 391, in _api_call\n return self._make_api_call(operation_name, kwargs)\n",
" File "/var/runtime/botocore/client.py", line 705, in _make_api_call\n http, parsed_response = self._make_request(\n",
" File "/var/runtime/botocore/client.py", line 725, in _make_request\n return self._endpoint.make_request(operation_model, request_dict)\n",
" File "/var/runtime/botocore/endpoint.py", line 104, in make_request\n return self._send_request(request_dict, operation_model)\n",
" File "/var/runtime/botocore/endpoint.py", line 134, in _send_request\n request = self.create_request(request_dict, operation_model)\n",
" File "/var/runtime/botocore/endpoint.py", line 117, in create_request\n self._event_emitter.emit(event_name, request=request,\n",
" File "/var/runtime/botocore/hooks.py", line 357, in emit\n return self._emitter.emit(aliased_event_name, **kwargs)\n",
" File "/var/runtime/botocore/hooks.py", line 228, in emit\n return self._emit(event_name, kwargs)\n",
" File "/var/runtime/botocore/hooks.py", line 211, in _emit\n response = handler(**kwargs)\n",
" File "/var/runtime/botocore/signers.py", line 93, in handler\n return self.sign(operation_name, request)\n",
" File "/var/runtime/botocore/signers.py", line 165, in sign\n auth.add_auth(request)\n",
" File "/var/runtime/botocore/auth.py", line 378, in add_auth\n raise NoCredentialsError()\n"
]
}
diff={'dictionary_item_added': [root['predictions']], 'dictionary_item_removed': [root['errorMessage'], root['errorType'], root['requestId'], root['stackTrace']]}
[+] Running 3/3
⠿ Container integraton-test-backend-1 Removed 0.2s
⠿ Container integraton-test-kinesis-1 Removed 3.4s
⠿ Network integraton-test_default Removed 0.1s`
The text was updated successfully, but these errors were encountered: