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

Stuck when trying to get a project object #49

Closed
foxmask opened this issue Nov 20, 2016 · 1 comment
Closed

Stuck when trying to get a project object #49

foxmask opened this issue Nov 20, 2016 · 1 comment

Comments

@foxmask
Copy link

foxmask commented Nov 20, 2016

when I try to do this

new_project = api.projects.get_by_slug(taiga.project_name)

I get

Starting new HTTPS connection (1): api.taiga.io
<taiga.client.TaigaAPI object at 0x7f4b3f9030f0>
SLUG????  Trigger-Happy endpoint  projects
Starting new HTTPS connection (1): api.taiga.io
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.4/multiprocessing/pool.py", line 420, in _handle_results
    task = get()
  File "/usr/lib/python3.4/multiprocessing/connection.py", line 251, in recv
    return ForkingPickler.loads(buf.getbuffer())
TypeError: __init__() missing 1 required positional argument: 'status_code'

I made a print inside of get_by_slug and could print the "slug" like we can see above, but once it tries

        response = self.requester.get(
            '/{endpoint}/by_slug?slug={slug}',
            endpoint=self.instance.endpoint,
            slug=slug
        )

its over, i'm stuck

@yakky
Copy link
Member

yakky commented Dec 30, 2017

@foxmask could you post a complete traceback and the code you are using? I can't reproduce this

@foxmask foxmask closed this as completed Oct 27, 2019
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

2 participants