I'm fairly new to docker, and I'm not sure where this network needs to be defined. I did not find any other references to monsoon-samples_default
in the codebase.
sam_app_1 | 2019-06-17 20:16:04 Exception on /2015-03-31/functions/GetPresignedURLFunction/invocations [POST]
sam_app_1 | Traceback (most recent call last):
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 261, in _raise_for_status
sam_app_1 | response.raise_for_status()
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
sam_app_1 | raise HTTPError(http_error_msg, response=self)
sam_app_1 | requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.35/networks/monsoon-samples_default
sam_app_1 |
sam_app_1 | During handling of the above exception, another exception occurred:
sam_app_1 |
sam_app_1 | Traceback (most recent call last):
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2311, in wsgi_app
sam_app_1 | response = self.full_dispatch_request()
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1834, in full_dispatch_request
sam_app_1 | rv = self.handle_user_exception(e)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1737, in handle_user_exception
sam_app_1 | reraise(exc_type, exc_value, tb)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 36, in reraise
sam_app_1 | raise value
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1832, in full_dispatch_request
sam_app_1 | rv = self.dispatch_request()
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1818, in dispatch_request
sam_app_1 | return self.view_functions[rule.endpoint](**req.view_args)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/samcli/local/lambda_service/local_lambda_invoke_service.py", line 145, in _invoke_request_handler
sam_app_1 | self.lambda_runner.invoke(function_name, request_data, stdout=stdout_stream_writer, stderr=self.stderr)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/samcli/commands/local/lib/local_lambda.py", line 93, in invoke
sam_app_1 | self.local_runtime.invoke(config, event, debug_context=self.debug_context, stdout=stdout, stderr=stderr)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/samcli/local/lambdafn/runtime.py", line 86, in invoke
sam_app_1 | self._container_manager.run(container)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/samcli/local/docker/manager.py", line 96, in run
sam_app_1 | container.create()
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/samcli/local/docker/container.py", line 134, in create
sam_app_1 | network = self.docker_client.networks.get(self.network_id)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/models/networks.py", line 180, in get
sam_app_1 | self.client.api.inspect_network(network_id, *args, **kwargs)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/utils/decorators.py", line 19, in wrapped
sam_app_1 | return f(self, resource_id, *args, **kwargs)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/api/network.py", line 212, in inspect_network
sam_app_1 | return self._result(res, json=True)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 267, in _result
sam_app_1 | self._raise_for_status(response)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 263, in _raise_for_status
sam_app_1 | raise create_api_error_from_http_exception(e)
sam_app_1 | File "/usr/local/lib/python3.7/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
sam_app_1 | raise cls(e, response=response, explanation=explanation)
sam_app_1 | docker.errors.NotFound: 404 Client Error: Not Found ("network monsoon-samples_default not found")
sam_app_1 | 2019-06-17 20:16:04 172.18.0.1 - - [17/Jun/2019 20:16:04] "POST /2015-03-31/functions/GetPresignedURLFunction/invocations HTTP/1.1" 500 -