All Products
Search
Document Center

Function Compute:Why does a public endpoint of an HTTP trigger fail to return an .apk file?

Last Updated:May 28, 2024

This topic describes the reason why a public endpoint of an HTTP trigger cannot return an .apk file and provides solutions.

Problem description

A 400 error with the error code ApkDownloadForbidden is returned when you use a public endpoint of an HTTP trigger (format: https://[subdomain-prefix].[region].fcapp.run) to access a service and return an .apk file.

Possible causes

For security reasons, requests that use public endpoints of HTTP triggers to access functions that are created on and after June 10, 2024 are blocked.

Solutions

Use the internal endpoint of the HTTP trigger or a custom domain name to return the .apk file.

Method

Procedure

Internal endpoint of the HTTP trigger (format: https://[subdomain-prefix].[region]-vpc.fcapp.run)

  1. Log on to the Function Compute console. In the left-side navigation pane, click Functions.

  2. In the top navigation bar, select a region. On the Functions page, click the function that you want to manage.

  3. On the function details page, click the Configurations tab. Then, click Triggers in the left-side navigation pane.

  4. On the Triggers tab, copy the Internal Endpoint in the Configurations column.

Custom domain name

For more information, see Configure custom domain names.