Closed Fak3 closed 2 years ago
This is expected.
The error you're encountering will occur when invocation payload does not contain the necessary information to handle the request. See https://github.com/jordaneremieff/mangum/discussions/218 and related discussions for more information.
docker-compose.yml:
itc_api.py:
When i start the docker-compose and then send POST request:
curl -XPOST "http://localhost:8000/2015-03-31/functions/function/invocations" -d '{}'
i get an error: sust-fastapi | 28 Jun 2022 12:51:13,907 [INFO] (rapid) extensionsDisabledByLayer(/opt/disable-extensions-jwigqn8j) -> stat /opt/disable-extensions-jwigqn8j: no such file or directory sust-fastapi | 28 Jun 2022 12:51:13,907 [WARNING] (rapid) Cannot list external agents error=open /opt/extensions: no such file or directory sust-fastapi | START RequestId: 910cde42-d38c-46d0-a2f9-76afe136dc68 Version: $LATEST
sust-fastapi | [ERROR] RuntimeError: The adapter was unable to infer a handler to use for the event. This is likely related to how the Lam raise RuntimeError( # pragma: no coverine 55, in inferl__the request payload is valid for a supported handler.) sust-fastapi | END RequestId: 910cde42-d38c-46d0-a2f9-76afe136dc68