[Tilesathome] 404 From DownloadFile()
Henrik Niehaus
henrik.niehaus at gmx.de
Fri Aug 29 18:16:32 BST 2008
Got a hint from Christian Ehrlicher:
I'm not subscribed to t at h mailing list but I've the same error like you.
After some investigating I found the solution:
When I comment out "$ua->agent("tilesAtHome");" in tahlib.pm line 266,
all works fine again :)
Henrik Niehaus schrieb:
> Jochen Pawletta schrieb:
>> Am Friday, 2008-08-29 um 10:19:16 -0500 schrieb Ian Dees:
>>
>> Hi
>>
>>> I'm getting a bunch of 404's when trying to download OSM data from the API.
>>> I'm printing out the response and headers along with the URL in
>>> DownloadFile() in libtah.pm below. When I use wget to fetch the data, it
>>> downloads the file just fine.
>> Same here:
>>
>> $ perl tilesGen.pl
>> - Using working directory /home/tathome/tilesAtHome/tmp
>> - Using process log file tah-process.log
>> - Pngcrush version 1.6.4
>> - pngnq version 0.5
>> * Please upgrade to inkscape 0.45.1 due to security problems with your inkscape version:
>> - Inkscape version 0.45
>> - rendering using or/p
>> - Using http://tah.openstreetmap.org/Request/take/ for Requests
>> downloaded 10 bytes
>> This is version 10303 (Saurimo) of tilesgen running on linux, ID: 47574
>> [#0 0% ] Retrieving next job...
>> Request string from server: OK|5|2094|1598|12|tile,maplint,captionless|1219988325|751967
>> [#0 0% ] Got work from the server: tile,maplint,captionless (12,2094,1598)...
>> [#1 0% Download] Tileset (12,2094,1598) around 36.70,4.09
>> [#1 0% Download] Downloading: Map data for tile,maplint,captionless...
>> Download
>> http://www.openstreetmap.org/api/0.5/map?bbox=3.999023,36.656440,4.174805,36.750863
>> failed with: 404 Not Found
>> [#1 0% Download] Trying smaller slices
>> [#1 0% Download] Downloading: Map data (slice 1 of 10)...
>> Download
>> http://www.openstreetmap.org/api/0.5/map?bbox=3.999023,36.656440,4.016602,36.750863
>> failed with: 404 Not Found
>> [#1 0% Download] No data here (sliced)
>> [#1 0% Download] Putting job (12,2094,1598) back due to 'No data here (sliced)'
>> Waiting before new tile is requested: sleeping 15 seconds
>>
>>
>> Jochen
>>
>
> dito
>
> perl tilesGen.pl loop
> - Using working directory /tmp
> - Pngcrush version 1.6.6
> - pngnq version 0.5
> - Inkscape version 0.46
> - rendering using or/p
> - Using http://tah.openstreetmap.org/Request/take/ for Requests
> downloaded 10 bytes
> This is version 10303 (Saurimo) of tilesgen running on linux, ID: 7396
> [#0 0% ] Retrieving next job...
> [#0 0% ] Got work from the server: tile,maplint,captionless
> (12,2216,1264)...
> [#1 0% Download] Tileset (12,2216,1264) around 56.54,14.81
> [#1 0% Download] Downloading: Map data for tile,maplint,captionless...
> failed with: 404 Not Found
> [#1 0% Download] Trying smaller slices
> [#1 0% Download] Downloading: Map data (slice 1 of 10)...
> failed with: 404 Not Found
> [#1 0% Download] No data here (sliced)
> [#1 0% Download] Putting job (12,2216,1264) back due to 'No data here
> (sliced)'
> Waiting before new tile is requested: sleeping 15 seconds
>
>
More information about the Tilesathome
mailing list