Skip to content

Body Not A String From Serverless Function

Application Error

The requested Serverless Function from the application did not return a string as the body.

This is an error with the application.


502: Bad Gateway
Code: BODY_NOT_A_STRING_FROM_FUNCTION

Troubleshoot

  • Check the application logs, which can be found at the host URL under the /_logs path, for example:
    https://my-deployment-my-username.vercel.app/_logs
    
  • Check if the application is returning an empty response, or possibly null.