On Wed, Oct 29, 2014 at 1:19 PM, kishore kumar <[email protected]> wrote:
> I tried to parse the Http url and parse the json response in my web > application using GAE. The same piece of code in normal web application > working perfect. > But in case of GAE the output is comming in the below error in console. > > You don't have permission to access "" on this server.Reference > #18.1fde387d.1414600288.10500f60 > It's likely not an error with your code. There are some web APIs that block or heavily rate limit incoming traffic from hosting services such as Google Cloud, AWS, Heroku, etc. When you tested your code locally, it worked fine since your IP is probably low-traffic to the API. As for solutions: If this API is using IP-based blocking, they might be blocking all of App Engine, Compute Engine, etc from accessing them - you'll have to use an external web proxy to route requests through and make it seem like the requests are coming from a different IP. Or this API could be watching the User-Agent header and kicking back any request that includes the text "App Engine." In that case, you can rent a Compute Engine VM and route requests through that machine's IP. Probably the easiest solution would be to check if the API offers some kind of registration or API token. Most APIs will avoid IP-based or header-based testing if they can uniquely identify requests in another manner. ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
