Common errors encountered while using Serverless Functions
Function Handler does not exist, check that you provided the right HANDLER parameter …
Provided Handler does not exist, or does not export methods properly
The systems cannot find the function which will handle the request. It can be related to an error in your code before your
Make sure to provide the right handler path.
If you used a zip file, make sure the dependencies are present in your zip package
If you used the Serverless framework, make sure that the
.serverlessdirectory created with
serverless packagecontains your zip file.
Make sure that the dependencies folders (
packagein Python) are in package/include
Serverless Functions rely on Alpine Linux, therefore, some C-based libraries (
numpy) will not work. Refer to the official documentation to safely add these libraries to your package.
Too many retries, sub-runtime server did not come up in 10ms seconds
This error is returned by the runtime when it cannot process the request. It has several different origins.
Make sure that you only imported the required dependencies and not the complete libraries
Avoid performing too many initialization operations
Update your function’s resources by provisioning more memory and more vCPU.
Timeout happens when your function can’t return a results in the defined amount of time.
- Increase the Timeout parameter in the Scaleway console or with the API
- Update your function’s resources by provisioning more memory and more vCPU.
This issue can happen for the following reasons:
- You created too many namespaces and reached your account’s quota
- You created too many Registry namespaces and reached your account’s quota