502 Bad Gateway

Hi Amity supporters,

I am using the TS version of Amity API to develop social features of my React Native application.

I have implemented a share post feature that users can attach an image on it, It works sometimes and it doesn’t sometimes :).

When I tried to upload an image and submit a post, I got this error from my console:

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

Can someone help me to figure out this HTTP error?

Hello, May I know your app region and your current version, please? Could we see your code as well? :))

Hi @amitysupport,

Yes, here it is:

export const connectToAmity = () => {
  createClient(valueConstant.amity.apiKey, API_REGIONS.US);
  enableCache();
};
1 Like

Hello @Tech are you still facing this? could you please provide the timestamps when this error arises?

Hello @amitysupport .
Fortunately, I can not see that error anymore and everything is working well.