ian-andrich / PythonPengines

A Python interface to the Prolog pengines library. Makes it exceedingly easy to call out to SWI-Prolog within Python!
MIT License
12 stars 9 forks source link

Latest version of pengines breaks #15

Closed cmungall closed 5 years ago

cmungall commented 5 years ago

Complaining about sandbox application

Think it may have been caused by #13

Having travis checks will fix this

cmungall commented 5 years ago

E.g.

EStarting call.
Builder._getActualURL log.
New value is : http://localhost:9083/pengine/create
Starting post request with URL http://localhost:9083/pengine/create, content_type: application/json, and body: {"destroy": false, "chunk": 100, "format": "json", "src_text": "foo(a).\nfoo(b).\nfoo(c).", "ask": "foo(X)", "application": "sandbox"}
Starting Post request.
URL is:  http://localhost:9083/pengine/create
Data (body) :  b'{"destroy": false, "chunk": 100, "format": "json", "src_text": "foo(a).\\nfoo(b).\\nfoo(c).", "ask": "foo(X)", "application": "sandbox"}'
Headers:  {'User-Agent': 'PythonPengine', 'Accept': 'application/json', 'Accept-Language': 'en-us,en;q=0.5', 'Content-type': 'application/json'}
response_string is : {
  "arg1":"pengine_application",
  "arg2":"sandbox",
  "code":"existence_error",
  "data":"pengine_application `sandbox' does not exist",
  "event":"error",
  "id":"8f8cfcea-fcbd-4c00-8df3-cf98d68aa88c"
}