<div dir="ltr">Hello,<div><br></div><div>Thank you.</div><div>I tested to add <span style="font-size:12.8px">MSG_LAF_VERBOSE=</span> <span style="font-size:12.8px">-DMSG_LAF_VERBOSE</span><span style="font-size:12.8px"> in the zoo-kernel Makefile but it's not working.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In the main.cfg I put this in the main section:</span></div><div><span style="font-size:12.8px">logPath = /var/log/zoo/out.log</span></div><div><span style="font-size:12.8px">But nothing is log when I use the ZOO.Request.Get in the script hello.js :</span></div><div><p class="MsoNormal"><span lang="EN-US">./zoo_loader.cgi
"Request=Execute&service=WPS&Identifier=hellojs&version=1.0.0&DataInputs=S=test"<span></span></span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal"><span lang="EN-US">Best regards</span></p></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-22 10:21 GMT+02:00 Fenoy Gerald <span dir="ltr"><<a href="mailto:gerald.fenoy@geolabs.fr" target="_blank">gerald.fenoy@geolabs.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello François,<br>
sorry for late reply.<br>
<br>
In case you want to debug the CURL call used for every internal HTTP request and the one coming from the JS ZOO-API call, then you can define the MSG_LAF_VERBOSE variable at compilation time to produce a debug version. Once you have added the -DMSG_LAF_VERBOSE in your Makefile, simply remove the ulinet.o and run the make command again.<br>
<br>
In case you need only to debug the result returned by the ZOO-API call, then you can simply use the alert function from the ZOO-API to display debug messages in your web server error log file. In case you want to handle exception you can then use basic try / catch blocks.<br>
<br>
I hope it helps.<br>
<br>
ps: I have noticed that the discussion is not available to the public, you may think of answering this email using the ZOO-Discuss mailing list. What you are asking may be of interest to other also.<br>
<span class="im HOEnZb"><br>
Gérald Fenoy<br>
<a href="http://wiki.osgeo.org/wiki/User:Djay" rel="noreferrer" target="_blank">http://wiki.osgeo.org/wiki/<wbr>User:Djay</a><br>
<br>
</span><div class="HOEnZb"><div class="h5">> Le 20 mai 2017 à 19:26, François Dodé <<a href="mailto:dode.francois@gmail.com">dode.francois@gmail.com</a>> a écrit :<br>
><br>
> Hello Gerald,<br>
><br>
> Thanks a lot for your help. Now it's work perfectly with the new revision.<br>
> I think I had an old revision.<br>
><br>
> Another question, how can I get log from the ZOORequest and handle exceptions ?<br>
><br>
> Best regards,<br>
><br>
> Dodé François<br>
><br>
> 2017-05-17 14:55 GMT+02:00 Fenoy Gerald <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>>:<br>
> Hello François,<br>
> thanks for the feedbacks about this issue.<br>
><br>
> May I ask you to build a new ZOO-Kernel using the revision 825 [1] ? This version should solve this issue.<br>
><br>
> I hope to hear back from you.<br>
><br>
> Best regards,<br>
><br>
> [1] <a href="http://www.zoo-project.org/trac/changeset/825" rel="noreferrer" target="_blank">http://www.zoo-project.org/<wbr>trac/changeset/825</a><br>
><br>
> > Le 17 mai 2017 à 10:25, François Dodé <<a href="mailto:dode.francois@gmail.com">dode.francois@gmail.com</a>> a écrit :<br>
> ><br>
> > Hello Gerald,<br>
> ><br>
> > Thank you for your quick response.<br>
> > Maybe it's my install of mozjs. I run the ZOO on CentOs 6 and I had to build this library.<br>
> > Here is the library :<br>
> > <a href="http://ftp.mozilla.org/pub/js/js185-1.0.0.tar.gz" rel="noreferrer" target="_blank">http://ftp.mozilla.org/pub/js/<wbr>js185-1.0.0.tar.gz</a><br>
> ><br>
> > I add the request GET in the script hello.js.<br>
> > My Javascript process call the ZOO.Request.Get like this :<br>
> > ZOO.Request.Get("<a href="http://www.google.fr/" rel="noreferrer" target="_blank">http://www.<wbr>google.fr/</a>")<br>
> > I put the result in the alert() function.<br>
> ><br>
> > Best regards,<br>
> ><br>
> > Dodé François<br>
> ><br>
> ><br>
> > 2017-05-12 19:42 GMT+02:00 Fenoy Gerald <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>>:<br>
> > Hello François,<br>
> > ZOORequest shall be defined at runtime by the ZOO-Kernel [1].<br>
> ><br>
> > Are you sure the issue comes from call to ZOO.Request.Get ?<br>
> ><br>
> > Can you please provide more details about your JavScript service ?<br>
> ><br>
> > Best regards,<br>
> ><br>
> > [1] <a href="http://www.zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/service_internal_js.c#L152" rel="noreferrer" target="_blank">http://www.zoo-project.org/<wbr>trac/browser/trunk/zoo-<wbr>project/zoo-kernel/service_<wbr>internal_js.c#L152</a><br>
> ><br>
> > > Le 12 mai 2017 à 16:06, François Dodé <<a href="mailto:dode.francois@gmail.com">dode.francois@gmail.com</a>> a écrit :<br>
> > ><br>
> > > Hello,<br>
> > ><br>
> > > I want to make a GET request with the ZOO-api but I have the following error :<br>
> > > <ows:Exception exceptionCode="InternalError"><br>
> > >     <ows:ExceptionText>ZOO Kernel failed to process your request, receiving signal 11 = SIGSEGV</ows:ExceptionText><br>
> > >  </ows:Exception><br>
> > ><br>
> > > In the ZOO-api.js in the function ZOO.Request.Get(url, params) it returns a class named ZOORequest but this class doesn't exist.<br>
> > ><br>
> > > Have you a solution ?<br>
> > ><br>
> > > Best regards<br>
> > > ______________________________<wbr>_________________<br>
> > > Zoo-discuss mailing list<br>
> > > <a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
> > > <a href="https://lists.osgeo.org/mailman/listinfo/zoo-discuss" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/zoo-discuss</a><br>
> ><br>
> ><br>
> ><br>
> > Gérald Fenoy<br>
> > <a href="http://wiki.osgeo.org/wiki/User:Djay" rel="noreferrer" target="_blank">http://wiki.osgeo.org/wiki/<wbr>User:Djay</a><br>
> ><br>
> ><br>
><br>
><br>
><br>
> Gérald Fenoy<br>
> <a href="http://wiki.osgeo.org/wiki/User:Djay" rel="noreferrer" target="_blank">http://wiki.osgeo.org/wiki/<wbr>User:Djay</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>