Comments (6)
Hello @melihovv
i've just tried with ubuntu 16.04 and python 2.7.12, same version and no errors.
Please share your config.yml replacing your credentials with fake data, i need to reproduce to fix.
from dumpmyrepos.
Error is in my bitbucket credentials. Without bitbucket credentials all work.
Initially I used bitbucket client_key and client_secret. OAuth consumer has following permissions: read account, read projects and read repositories. But it throws the errors shown above.
Now I try to use bitbucket username and password. My config:
bitbucket:
type: bitbucket
auth:
#client_key: ***********
#client_secret: ********
username: melihovv
password: *******
client_email: [email protected]
#server_base_uri: https://bitbucket.org
The error is:
Traceback (most recent call last):
File "/home/melihovv/.local/bin/dumpmyrepos", line 11, in <module>
load_entry_point('dumpmyrepos==0.1', 'console_scripts', 'dumpmyrepos')()
File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/cli.py", line 42, in main
conf.dump_all()
File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/config.py", line 39, in dump_all
repositories = self.get_repositories()
File "/home/melihovv/.local/lib/python2.7/site-packages/dumpmyrepos/config.py", line 26, in get_repositories
res = pool.map_async(work, accounts).get(999999)
File "/home/melihovv/.local/lib/python2.7/site-packages/multiprocess/pool.py", line 567, in get
raise self._value
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.bitbucket.org/2.0/repositories/melihovv?role=member
What do I need to specify in server_base_url?
from dumpmyrepos.
There are companies using private instances of bitbucket, for typical usage you can leave it commented/removed or the default https://bitbucket.org
from dumpmyrepos.
Perhaps it is because two-step verification is setup in my bitbucket account. Do you have two-step verification in your account?
from dumpmyrepos.
Indeed on bitbucket I use client_key and client_secret to solve this issue, otherwise you should disabe double step verification or validate the machine.
from bitbucket website:
Some applications that rely on basic authentication may no longer work as expected. While Bitbucket recommends that third-party application developers switch to using OAuth, there are still many applications where https may be the only option. Application-specific passwords allow you to create a password for apps such as SourceTree and Bamboo so that you can use Git, Mercurial, and the API over HTTPS as needed.
First, check that your application is set to use SSH for authentication with Bitbucket. If you need to use the Bitbucket API over HTTPS, use application passwords.
from dumpmyrepos.
Thanks!)
from dumpmyrepos.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dumpmyrepos.