Getting "Error 502 Bad Gateway" on the BlackBerry smartphone while browsing HTTPS websites.

Article ID: KB27537

Type: Support Content

Last Modified: 02-10-2012


Product(s) Affected:

  • BES5
  • BlackBerry 7 OS and earlier
  • BlackBerry Enterprise Server 5.0 SP3 MR3
In some environments the BlackBerry users may receive "Error 502 Bad Gateway" while browsing HTTPS websites.

The following event can be found in the MDAT log file on the BlackBerry Enterprise Server.

<2010-12-15 09:21:11.647 GMT>:[1326]:<MDS-CS_SERVER01_MDS-CS_1>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 12A34B56C, USERID = u3, CONNECTIONID = 1125279124, DESTINATION = , HTTPTRANSMISSION = HTTP/1.0 502 Proxy Error ( The Uniform Resource Locator (URL) does not use a recognized protocol. Either the protocol is not supported or the request was not typed correctly. Confirm that a valid protocol is in use (for example, HTTP for a Web request). )>

By default, the BlackBerry MDS Connection Service doesn’t use absolute URI while sending HTTPS requests. Some Proxy server may reject this type requests.

1) Navigate to the folder below

 C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\Servers\instance\config

2) Open file and add the following line


3) Restart the BlackBerry MDS Connection Service.


By downloading, accessing or otherwise using the Knowledge Base documents you agree:

   (a) that the terms of use for the documents found at apply to your use or reference to these documents; and

   (b) not to copy, distribute, disclose or reproduce, in full or in part any of the documents without the express written consent of RIM.

Visit the BlackBerry Technical Solution Center at