Unknown host Unknown host for cdn.everytrail.com

Discuss any problems and questions you may have about using EveryTrail

Moderator: chris

Unknown host Unknown host for cdn.everytrail.com

Postby markpaxton3 on Tue Sep 13, 2011 5:02 am

Hello,

I'm working on a app that uses the GPX data from EveryTrail trips, so I am downloading the GPX files from each trip a user has via the API. Every so often I am getting an Unknown host exception in my app when trying to access the GPX url, such as:
http://cdn.everytrail.com/gpx/1271611.gpx

I retry 3 times, but it still doesn't work, so I'm a bit confused as to why. Please could anyone advise?

Thanks,
Mark
http://graph.facebook.com/584017197/picture?type=largeUser avatar
markpaxton3
 
Posts: 8
Joined: Thu Mar 24, 2011 1:05 am

Re: Unknown host Unknown host for cdn.everytrail.com

Postby chris on Tue Sep 13, 2011 2:49 pm

That works fine for me. How many files are you downloading? the unknown host issues seems to be an internet problem.
See all of my travels and fun experiences on my travel blog: http://www.gone-wandering.com
http://images.everytrail.com/userpics/33-chris.jpgUser avatar
chris
 
Posts: 2352
Joined: Sun Jan 13, 2008 6:58 pm
Location: San Francisco, CA

Re: Unknown host Unknown host for cdn.everytrail.com

Postby markpaxton3 on Wed Sep 14, 2011 5:59 am

Hi Chris, thanks for checking it out... it seems to work intermittently, as in sometimes when I pull out the data it works fine, then sometimes it fails. I was wondering if it's some kind of firewall type issue that's stopping multiple requests in quick succession?
http://graph.facebook.com/584017197/picture?type=largeUser avatar
markpaxton3
 
Posts: 8
Joined: Thu Mar 24, 2011 1:05 am

Re: Unknown host Unknown host for cdn.everytrail.com

Postby chris on Wed Sep 14, 2011 9:32 am

How many files are you trying to download? We do not provide the API as a way to scrape all of the data, the files should only be downloaded to show immediately, not to recreate the database.
See all of my travels and fun experiences on my travel blog: http://www.gone-wandering.com
http://images.everytrail.com/userpics/33-chris.jpgUser avatar
chris
 
Posts: 2352
Joined: Sun Jan 13, 2008 6:58 pm
Location: San Francisco, CA

Re: Unknown host Unknown host for cdn.everytrail.com

Postby markpaxton3 on Mon Sep 19, 2011 2:53 am

Hi Chris,

Thanks for the help again; the app I'm working on takes the information from a user's trips to populate a menu, so they can select what data they want to use, so it is using the data immediately as you say. The GPX data for each trip is downloaded so that it can be shown on a map as part of the same UI.

I think I've ironed a few bugs out, as I was downloading the GPX a couple of times in a row sometimes by accident, but I'm not sure why that would cause the problem I have, and it still appears every so often.
http://graph.facebook.com/584017197/picture?type=largeUser avatar
markpaxton3
 
Posts: 8
Joined: Thu Mar 24, 2011 1:05 am

Re: Unknown host Unknown host for cdn.everytrail.com

Postby jasonchiu on Tue Apr 24, 2012 5:36 pm

Hi,

From the xml file returned by the EveryTrail web service API, I have the link "cdn.everytrail.com/gpx/23497.gpx" for the interested trip. How can I download the file? When I sent http request for the url (in iOS code), I received the "no such key" error. Do I need some kind of authentication to download the file? Please help!

Thanks!

Jason
http://images.everytrail.com/userpics/22061-P1010869.JPGUser avatar
jasonchiu
 
Posts: 79
Joined: Sat Nov 29, 2008 10:15 pm

Re: Unknown host Unknown host for cdn.everytrail.com

Postby chris on Wed Apr 25, 2012 5:33 pm

You should be able to get it using HTTP. If you go to that in a web browser can you see it?
See all of my travels and fun experiences on my travel blog: http://www.gone-wandering.com
http://images.everytrail.com/userpics/33-chris.jpgUser avatar
chris
 
Posts: 2352
Joined: Sun Jan 13, 2008 6:58 pm
Location: San Francisco, CA

Re: Unknown host Unknown host for cdn.everytrail.com

Postby jasonchiu on Thu Apr 26, 2012 7:11 am

Chris,

It works now. However, for the trip 1525311, it is ok to download directly from the everytrail web site but got the "no such key" error from cdn. Not sure how this happens.

Thanks for the help.

Jason
http://images.everytrail.com/userpics/22061-P1010869.JPGUser avatar
jasonchiu
 
Posts: 79
Joined: Sat Nov 29, 2008 10:15 pm

Re: Unknown host Unknown host for cdn.everytrail.com

Postby chris on Fri May 18, 2012 4:37 pm

Very strange, please let me know if you keep seeing this (maybe a cached issue?)
See all of my travels and fun experiences on my travel blog: http://www.gone-wandering.com
http://images.everytrail.com/userpics/33-chris.jpgUser avatar
chris
 
Posts: 2352
Joined: Sun Jan 13, 2008 6:58 pm
Location: San Francisco, CA

Re: Unknown host Unknown host for cdn.everytrail.com

Postby jasonchiu on Thu May 24, 2012 9:49 pm

Chris,

I think it might be caching issue. I've seen the gpx file for some new trip was not available for the first few days but became available later. One more question. I have seen duplications for the trip's thumbnail photos return by the trip search APi. For example, the first 4 thumbnails are exactly the same as the last 4 if 8 photos are returned. I wonder if this is on purpose.

Jason
http://images.everytrail.com/userpics/22061-P1010869.JPGUser avatar
jasonchiu
 
Posts: 79
Joined: Sat Nov 29, 2008 10:15 pm

Next

Return to Problems