Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#247 closed defect (fixed)

msHTTPExecuteRequests() error in 3.7 when requesting terraservice WMS layer

Reported by: keon@… Owned by: dmorissette
Priority: high Milestone:
Component: WMS Client Version: 4.0
Severity: normal Keywords: VERIFIED
Cc:

Description

I am unable to display a WMS layer (DOQ) retrieved from terraservice.  The URL 
is good...I can plug it in a browser and it works.  When I try to display the 
layer in 3.6.3 I just get a blank image (as reported in bug 223), but no 
errors.  A few weeks ago when I tried to do this with 3.7 cvs, it worked.  Now 
when I try to do this with a current 3.7 cvs version (as of 12-09-02), it gives 
the following error:

   Warning: MapServer Error in msHTTPExecuteRequests(): HTTP GET request
   failed with status -1 for http://terraservice.net/ogcmap.ashx?
   VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=png&styles=&REQUEST=GetMap
   &WIDTH=480&HEIGHT=320&SRS=EPSG:26910&BBOX=414885.891927,
   5290918.359375,424540.579427,5297355.859375&EXCEPTIONS=
   application/vnd.ogc.se_inimage
   in /opt/httpd/htdocs/gis/crypto/crypto.php on line 341

   Fatal error: Object expected as argument.
   in /opt/httpd/htdocs/gis/crypto/crypto.php on line 377

line 341: $image = $map->draw(); //for drawing main map image
line 377: $layer->draw($image); //for drawing dynamic layer

I have not tried an earlier cvs version.  Thanks.

Change History (9)

comment:1 by dmorissette, 22 years ago

Status: newassigned
Hmmm... I tried the mapfile from bug 223 on my system, using the same extents as 
yours (414885.891927,5290918.359375,424540.579427,5297355.859375) and I do get a 
map.  The colors are not very nice, but that's normal since my mapserv is 
compiled for 8 bits output.  Note that I'm using the MapServer CVS version from 
30 minutes ago in which I committed some changes to WFS and WMS, so there are 
small chances that I fixed the bug that you ran into without knowing it, but I 
wouldn't think so.

If your mapserver is compiled with --enable-debug, then can please you look at 
the Apache error_log and report any error you get there?  In my case I get the 
following output in the error_log for this request:

[Thu Dec 12 20:22:14 2002].62404 WMS GET 
http://terraservice.net/ogcmap.ashx?
VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=png&styles=&REQUEST=GetMap&WIDTH=480
&HEIGHT=320&SRS=EPSG:26910&BBOX=414895.948893,5290928.417969,424530.522461,52973
45.800781&EXCEPTIONS=application/vnd.ogc.se_inimage
Looking up terraservice.net
Looking up terraservice.net
Contacting terraservice.net
[Thu Dec 12 20:22:14 2002].334691 WMS: Before eventloop
Reading...
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Read 1Kbytes
Done!
[Thu Dec 12 20:22:15 2002].722757 terminate_handler()
[Thu Dec 12 20:22:15 2002].722841 terminate_handler stopping event loop
[Thu Dec 12 20:22:15 2002].722903 WMS: After eventloop


comment:2 by keon@…, 22 years ago

Sorry, I should have included the error_log output in the original message.  
Here it is, after zooming to a random point using the mapfile from bug 223.

[Thu Dec 12 21:44:48 2002].208048 WMS GET http://terraservice.net/ogcmap.ashx?
VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=png&styles=&REQUEST=GetMap&WIDTH=600
&HEIGHT=400&SRS=EPSG:26910&BBOX=405110.520833,5276393.750000,443729.270833,53021
43.750000&EXCEPTIONS=application/vnd.ogc.se_inimage
Looking up terraservice.net
Looking up terraservice.net
Contacting terraservice.net
Fatal Error: connect operation failed (Success)
[Thu Dec 12 21:44:48 2002].216886 terminate_handler()
[Thu Dec 12 21:44:48 2002].216966 terminate_handler stopping event loop
[Thu Dec 12 21:44:48 2002].217026 WMS: Before eventloop
[Thu Dec 12 21:44:48 2002].217104 WMS: After eventloop
[Thu Dec 12 21:44:48 2002].217156 WMS: HTTP GET request failed with status -1 
for http://terraservice.net/ogcmap.ashx?
VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=png&styles=&REQUEST=GetMap&WIDTH=600
&HEIGHT=400&SRS=EPSG:26910&BBOX=405110.520833,5276393.750000,443729.270833,53021
43.750000&EXCEPTIONS=application/vnd.ogc.se_inimage

comment:3 by keon@…, 22 years ago

I tried this with today's CVS version, and still had the same error.  I also
tried an older build (cvs from 11-28), and had the same error.  Not sure what's
going on.

comment:4 by dmorissette, 22 years ago

Could it be that you were using the release version of libwww 5.3.2?  I think 
there was a bug in it that was fixed in a later version, and I had to use this 
later verison that I got from CVS directly (libwww 5.4.0 works well too)... I 
also made a copy available for download at 
http://www2.dmsolutions.ca/mapserver/dl/misc/libwww-5.3.2-20011211.tar.gz

But anyway, I'll be replacing libwww with libcurl in the next day or two, so all 
these libwww issues will only be a bad souvenir soon.  I suggest that you wait 
for this new version.

comment:5 by dmorissette, 22 years ago

dependson: 237

comment:6 by keon@…, 22 years ago

Ahhhh, very good.  I will wait for libcurl.  Thanks.  BTW, I am using libwww-5.4.0.

comment:7 by dmorissette, 22 years ago

Resolution: fixed
Status: assignedclosed
Libcurl changes done in bug 237.  I'll mark this as fixed (even if I don't like 
marking a bug fixed without having figured the roots of the problem).  Hopefully 
things will work better for you now.

comment:8 by keon@…, 22 years ago

Just to follow up...yes, this has fixed the problem.  I'm using libcurl-7.10.2
and it's working great.  Thanks. :-)

comment:9 by dmorissette, 22 years ago

Keywords: VERIFIED added
Note: See TracTickets for help on using tickets.