Getting 502 Bad gateway error in a API endpoint after 2 successufull response

For Workes & Pages, what is the name of the domain?

What is the issue or error you’re encountering

When calling an API endpoint getting 502 Bad gateway error after 2 successufull response

Screenshot of the error