Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug when calling worker() to get a specific worker #18

Open
fshhr46 opened this issue Jun 3, 2014 · 0 comments
Open

bug when calling worker() to get a specific worker #18

fshhr46 opened this issue Jun 3, 2014 · 0 comments

Comments

@fshhr46
Copy link
Contributor

fshhr46 commented Jun 3, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant