Skip to main content

Deployment Related Messages

Error codes related to function deployment operations, including repository conflicts, file validation, and deployment exceptions.


Overview

CodeMessageDescription
DP0001A code repository has already existed. Bucket name {0}, key {1}A code repository already exists with the specified bucket name and key combination.
DP0002File extension .{0} is not supportedThe uploaded file has an unsupported extension.
DP0003Exception when deploying a functionAn unexpected error occurred during the function deployment process.
DP0004File size larger than 10MBThe uploaded file exceeds the maximum allowed size of 10MB.
DP0005handler.py file should not contain more than {0} linesThe 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

  1. Use a different bucket name and key combination.
  2. 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

  1. Use a supported file extension.
  2. 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

  1. Check the deployment configuration and function code for errors.
  2. 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

  1. 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.py file contains more than {0} lines of code.

Resolution

  1. Reduce the number of lines in handler.py to {0} or fewer.
  2. Consider refactoring large logic into separate modules imported by handler.py.