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:

  • BlackBerry Enterprise Server 5
  • BlackBerry 7 OS and earlier
CollapseEnvironment
  • BlackBerry Enterprise Server 5.0 SP3 MR3
CollapseOverview
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 = https://www.example.com/ , 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). )>

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

1) Navigate to the folder below

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

2) Open rimpublic.property file and add the following line

application.handler.https.absolutedUrl=true

3) Restart the BlackBerry MDS Connection Service.

Disclaimer

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

   (a) that the terms of use for the documents found at www.blackberry.com/legal/knowledgebase 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 www.blackberry.com/btsc.