Deployment Related Messages
Error codes related to function deployment operations, including repository conflicts, file validation, and deployment exceptions.
Overview
| Code | Message | Description |
|---|---|---|
DP0001 | A code repository has already existed. Bucket name {0}, key {1} | A code repository already exists with the specified bucket name and key combination. |
DP0002 | File extension .{0} is not supported | The uploaded file has an unsupported extension. |
DP0003 | Exception when deploying a function | An unexpected error occurred during the function deployment process. |
DP0004 | File size larger than 10MB | The uploaded file exceeds the maximum allowed size of 10MB. |
DP0005 | handler.py file should not contain more than {0} lines | The handler.py file exceeds the maximum allowed number of lines. |
Error Code Details
DP0001
Message
A code repository has already existed. Bucket name {0}, key {1}
Description
A code repository already exists with the specified bucket name and key combination.
Root Cause
- A repository with the same bucket name
{0}and key{1}was previously created.
Resolution
- Use a different bucket name and key combination.
- Delete the existing repository if it is no longer needed.
DP0002
Message
File extension .{0} is not supported
Description
The uploaded file has an unsupported extension.
Root Cause
- The file extension
.{0}is not in the list of supported file extensions.
Resolution
- Use a supported file extension.
- Check the documentation for the list of accepted file types.
DP0003
Message
Exception when deploying a function
Description
An unexpected error occurred during the function deployment process.
Root Cause
- An internal exception was thrown during deployment.
- Invalid deployment configuration or function code caused the failure.
Resolution
- Check the deployment configuration and function code for errors.
- Retry the deployment. If the issue persists, contact support.
DP0004
Message
File size larger than 10MB
Description
The uploaded file exceeds the maximum allowed size of 10MB.
Root Cause
- The file included in the deployment package is larger than 10MB.
Resolution
- Reduce the file size to under 10MB before uploading.
DP0005
Message
handler.py file should not contain more than {0} lines
Description
The handler.py file exceeds the maximum allowed number of lines.
Root Cause
- The
handler.pyfile contains more than{0}lines of code.
Resolution
- Reduce the number of lines in
handler.pyto{0}or fewer. - Consider refactoring large logic into separate modules imported by
handler.py.