Skip to content

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

@fshhr46

Description

@fshhr46

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions