-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
bug example:
//when some user is trying to get a specific worker, for example, worker with id 1
import myria
import requests
session = requests.Session()
conn = myria.MyriaConnection(None, 'rest.myria.cs.washington.edu', 1776, None)
worker = conn.worker(1)
theres will be a JSON
ValueError("No JSON object could be decoded")
//the selector(url) created by the wrap_get is
// http://rest.myria.cs.washington.edu:1776/workers/worker-1
(line 146 in connection.py)
(same as r = session.get("http://rest.myria.cs.washington.edu:1776/workers/worker-1"))
146 r = self._session.get(selector)
147 if r.status_code in status:
--> 148 return r.json()
the bug pops out in r.json()
Henry
@dhalperi
Metadata
Metadata
Assignees
Labels
No labels