Loading...
Asked by Stacey Thomas on Jun 24, 2024
Stacey built a UI extension custom card that calls a serverless function to fetch data from a 3rd party API. The function executes successfully (confirmed by logs), but the React component fails to display the retrieved message, showing only error states.
Answered by Stacey Thomas
Stacey resolved the issue by correcting how she accessed the response body in her React code. She needed to use `serverlessResponse.response.body` instead of `serverlessResponse.body`.