Error code 502

HTTP error code 502 means "Bad Gateway". This error occurs when you send a request to a URL, but the URL's server receives an invalid response from another server that it depends on to fulfill the request.

Possible causes

  • We currently do have not matching peers for your zone's configuration, as they might already be in use with a different client, or unavailable for other reasons.
  • The connection has been timed out due to inactivity. 
  • The connection has been closed by the host (target URL) side

Sample error 502 response

Request URL: SAMPLE_URL Request method: GET Status code: 502
Super proxy IP: IP
Username: brd-customer-CUSTOMER_ID-zone-ZONE-country
Password: PASSWORD
Sent from: 127.0.0.1
Response headers
connection: keep-alive
date: Tue, 14 Feb 2023 08:49:16 GMT
keep-alive: timeout=5
transfer-encoding: chunked
x-lpm-port: 24000
x-brd-error: waiting for selector ".price-container" failed: timeout 90000ms exceeded
x-brd-error-code: expect_element
x-request-id2: REQUEST_ID
Request headers
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36(KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
host: SAMPLE_HOST
accept-encoding: gzip, deflate
Connection: keep-alive

Was this article helpful?