• Behzad86
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

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