Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Serverless Containers
    • You called a Serverless Container, but got the Code 502 Message Error during function invocation
    • Resolving the "Service account is not available" error
    • How to set up a static IP address

In this article:

  • Issue description
  • Solution
  • If the issue persists
  1. Serverless Containers
  2. You called a Serverless Container, but got the Code 502 Message Error during function invocation

You called a Serverless Container, but got the Code 502 Message Error during function invocation

Written by
Yandex Cloud
Updated at September 12, 2023
  • Issue description
  • Solution
  • If the issue persists

Issue descriptionIssue description

You used to run your application in a CRI-compatible environment within a container on a VM instance or a physical server.
You migrated the application to Serverless Containers, but now when you call it, you get 502 Message Error during function invocation

SolutionSolution

You might get error 502 when the code running in the container makes an HTTP request, but this request terminates with an error.

  • Check your container operating log. It might include the full error text mentioning the problem request.
  • If you are unable to find any useful data in your container log, enable detailed logging for your containerized application.

Alert

When calling a container over HTTPS, certain HTTP headers in the request and response are changed (see the documentation).
When migrating your application to the Serverless Containers environment, you need to consider these changes.

If the issue persistsIf the issue persists

If the above actions didn't help, create a request for support.
Specify the following information in your request:

  1. Container ID.
  2. Time and date of your container call that terminated with an error.
  3. Description of the container call procedure (whether the container is called from the third-party application code over the service API or directly, from the management console or YC CLI utility).
  4. Full text of the error from the Serverless container log.

Was the article helpful?

Previous
All solutions for Serverless Containers
Next
Resolving the "Service account is not available" error
© 2025 Direct Cursus Technology L.L.C.