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

Not able to list project, Project repo's and admins #144

Open
yashwanthupsc opened this issue Sep 23, 2019 · 0 comments
Open

Not able to list project, Project repo's and admins #144

yashwanthupsc opened this issue Sep 23, 2019 · 0 comments

Comments

@yashwanthupsc
Copy link

I am trying to list my project repo's but i am getting an NotFoundException
I am new to python and messing around with bitbucket to get repository/projects names and their owner details.

I am using python virtualenv to run stashy and code below to test utility

import stashy
import getpass

pswd = getpass.getpass('Password:')
stash = stashy.connect("https://bitbucket.companyname.com/stash", "username", pswd)

PROJECT=input("Enter Project Name:")
stash.projects.list()
#stash.projects[PROJECT].repos.list()
#stash.admin.users.list(filter="admin")

Exception

  File "teststashy.py", line 11, in <module>
    stash.projects.list()
  File "/home/yashwanth/.venv/BBAutomation/lib/python3.7/site-packages/stashy/helpers.py", line 107, in list
    return list(self.all())
  File "/home/yashwanth/.venv/BBAutomation/lib/python3.7/site-packages/stashy/helpers.py", line 74, in paginate
    maybe_throw(response)
  File "/home/yashwanth/.venv/BBAutomation/lib/python3.7/site-packages/stashy/errors.py", line 41, in maybe_throw
    raise NotFoundException(response)
stashy.errors.NotFoundException: Not found: https://bitbucket.companyname.com/stash/rest/api/1.0/projects

What and where am I missing?

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