gym-http-api
gym-http-api copied to clipboard
errors in the matlab binding
Hello, using ML ver 8.5 (R2015a), the required python packages in requirements.txt (python 2.7), there are errors in few calls: (1) client.env_monitor_start(instance_id, outdir, true); (2) client.env_monitor_close(instance_id); (3) client.upload (see bellow for details). Could you please provide indications or update the code, also to work with the latest python packages.
I think there is some incompatibility with the "webwrite" matlab function; by now I "resolved" this with catching and ignoring the error in the outermost script (example_agent), and it seems to work, but I'm not sure this is a good solution.
Thanks, Ivilin
-- (1) Error using readContentFromWebService (line 37) The server returned the message: "NO CONTENT" for URL, 'http://127.0.0.1:5000/v1/envs/6ecaff44/monitor/start/' (with HTTP response code 204). Error in webwrite (line 126) [varargout{1:nargout}] = readContentFromWebService(connection, options); Error in gym_http_client/post_request (line 25) resp_data = webwrite(url, req_data, obj.webopt); Error in gym_http_client/env_monitor_start (line 115) obj.post_request(route, req_data); Error in example_agent (line 21) client.env_monitor_start(instance_id, outdir, true);
-- (2) Error using readContentFromWebService (line 37) The server returned the message: "NO CONTENT" for URL, 'http://127.0.0.1:5000/v1/envs/d8d7a341/monitor/close/' (with HTTP response code 204). Error in webwrite (line 126) [varargout{1:nargout}] = readContentFromWebService(connection, options); Error in gym_http_client/post_request (line 25) resp_data = webwrite(url, req_data, obj.webopt); Error in gym_http_client/env_monitor_close (line 120) obj.post_request(route, []); Error in example_agent (line 46) client.env_monitor_close(instance_id);
-- (3) Error using readContentFromWebService (line 37) The server returned the message: "BAD REQUEST" for URL, 'http://127.0.0.1:5000/v1/upload/' (with HTTP response code 400). Error in webwrite (line 126) [varargout{1:nargout}] = readContentFromWebService(connection, options); Error in gym_http_client/post_request (line 25) resp_data = webwrite(url, req_data, obj.webopt); Error in gym_http_client/upload (line 141) obj.post_request(route, req_data); Error in example_agent (line 55) client.upload(outdir);