<div dir="ltr">Hi all,<div><br></div><div>Using the pywps server, i got some problems when calling my processes via AJAX.</div><div>When i call my processes directly no problem.</div><div>Via Ajax (from a web application), i've got random fails. Sometimes it's ok, sometimes not.</div><div>But the error is always the same :</div><div><br></div><div><div>File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0-py2.7.egg/pywps/app/Service.py", line 309, in execute, referer: <a href="https://myurl.net/">https://myurl.net/</a></div><div>os.chdir(olddir), referer: <a href="https://myurl.net/">https://myurl.net/</a></div><div>OSError: [Errno 2] No such file or directory: '/myurl/tmp/pywps_process_HMmYdu', referer: <a href="https://myurl.net/">https://myurl.net/</a></div></div><div><br></div><div>The code below is executed:</div><div><br></div><div><div>        olddir = os.path.abspath(os.curdir)</div><div>        try:</div><div>            os.chdir(process.workdir)</div><div>            response = self._parse_and_execute(process, wps_request, uuid)</div><div>        finally:</div><div>                os.chdir(olddir)<br></div></div><div><br></div><div>Sometimes, olddir is empty. Sometimes it corresponds to a real dir. And sometimes not, in that case it crashes.</div><div><br></div><div>By the way, i've got plenty of undeleted pywps_process_xxx directories in my work dir.</div><div><br></div><div>Any help will be appreciated.</div><div><br></div><div>Thank you.</div><div><br></div><div>Sylvain.</div><div><br></div></div>