+ Start a Discussion
NarenKNarenK 

Unable to call external rest web service in summer 12 pre release

Hi All,

 

Today when I tried to test a piece of code on summer 12 pre releaser org which is actually working on spring 12 release I am running into issue.

This piece of code call a external rest web service and prints response to debug logs.

 

I am constantly getting the following error in response body.

 

System.HttpResponse[Status=Forbidden, StatusCode=403] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://local.yahooapis.com/MapsService/V1/geocode">http://local.yahooapis.com/MapsService/V1/geocode</A> <P> The following error was encountered: <UL> <LI> <STRONG> Access Denied. </STRONG> <P> Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. </UL> <P>Your cache administrator is <A HREF="mailto:root">root</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Thu, 31 May 2012 05:55:08 GMT by proxy-sfm.net.salesforce.com (squid) </ADDRESS> </BODY></HTML>

 

And also I tried to use different rest web services and for all of them I am getting the above error. But when I tried to call Google rest apis everthing is working fine.

 

Any idea why I am getting this error on summer 12 pre-release org?

 

Thanks in advance for your help!.

 

Regards,

Naren

Behzad86Behzad86

Hi Naren,

 

Were you able to resolve this issue?

 

 

Thanks,

 

 

Behzad

Daniel BallingerDaniel Ballinger

This came up again in Spring '14 with code running on a pre-release org 'prerelna1.pre.salesforce.com'.

See HTTP Callout Problems in Spring '14? (http://salesforce.stackexchange.com/questions/32358/http-callout-problems-in-spring-14)

"You can't call out from a pre-release org, since the security rules are different from our production/developer environments."

"pre-rel doesn't have the same internet access as production, you are being blocked by the pre-rel outbound proxy"