Unable to access server - 502 error response on specific device

My app is working fine on all devices except on one specific device iPhone 12 Pro Max, that give error "502 Bad Gateway".

App is unable to connect to server, what could be the reason for this, is this related to firewall or VPN?

This happens only on a single device of the client but on our local testing devices it works perfectly fine.

Please do share your thoughts as this issue seems rather unexpected where the app on all other devices is working fine except for one.

Thank. you

My app is working fine on all devices except on one specific device iPhone 12 Pro Max, that give error "502 Bad Gateway".

When you are experiencing inconsistent failures then you are likely talking to a server that you did not expect to. Double check the network path in this case and make sure that you requests are actually talking to the servers that you would expect to. Next, since you are getting a 502 double check that your network request is actually reaching the downstream server or if it is failing before it gets downstream.

A great way to nail this down is to take a packet trace and see if you can get the IP of where the network request is failing.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

What Matt said plus…

See Debugging HTTP Server-Side Errors for general advice on this topic.

Also, what API are you using to issue these requests?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Unable to access server - 502 error response on specific device
 
 
Q