java.io.IOException: Too many redirects at URL when calling specific URL

624 views
Skip to first unread message

Hélios GILLES

unread,
Sep 17, 2014, 4:11:34 PM9/17/14
to google-a...@googlegroups.com
Hello everybody,

I'm kind of new in GAE things and for my first project i'm trying to fetch an RSS feed and add it some more information coming from the same site. But when i'm trying to fetch the RSS URL, i get an java.io.IOException: Too many redirects at URL on GAE servers while on debug on my computer everything is OK.

Could you tell if it's possible to increase the number of maximum redirect allowed by GAE and if it's possible to activate on the administrator console of GAE a debug property to see the different redirect requests send back by the URL server ?

Thx in advance.

Vinny P

unread,
Sep 19, 2014, 12:30:06 AM9/19/14
to google-a...@googlegroups.com
On Wed, Sep 17, 2014 at 3:11 PM, Hélios GILLES <helios...@gmail.com> wrote:
I'm kind of new in GAE things and for my first project i'm trying to fetch an RSS feed and add it some more information coming from the same site. But when i'm trying to fetch the RSS URL, i get an java.io.IOException: Too many redirects at URL

Could you tell if it's possible to increase the number of maximum redirect allowed by GAE and if it's possible to activate a debug property to see the different redirect requests



The maximum amount of redirects is 5: https://developers.google.com/appengine/docs/java/urlfetch/#Java_Responses . You can't increase it.

If you need to inspect each redirect, what you can do is configure URLFetch not to follow redirects, then continually inspect each response and fetch the next redirect URL. Or you could (and this is a much easier option) inspect the redirects locally by using Google Chrome's developer tools (or another browser addon) to watch the redirect flow. If you use Chrome's dev tools, the redirects can be seen in the Network tab.

 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Hélios GILLES

unread,
Sep 19, 2014, 5:14:25 PM9/19/14
to google-a...@googlegroups.com
Thx for your answer but i already tried to debug in local with chrome but i only see 1 redirection. I"ll try the other way to see if the server i not redirecting only google request ...

Thx.

Hélios GILLES

unread,
Sep 20, 2014, 5:30:12 PM9/20/14
to google-a...@googlegroups.com
Thx for your help. I did solve my problem with the second way ;) Solution is here !!!
Reply all
Reply to author
Forward
0 new messages