Comments (2)
Check the line of code "@repositories.get(current_user, "demo_1")". You are
passing the user object from Active Record directly to bitbucket, instead
of the username. Pass only the username as a string.
Apologies for poor formatting, I am responding from my phone.
Sent from my Google Nexus 5
On Feb 28, 2016 9:32 AM, "Mai Van Hien" [email protected] wrote:
I cant download repos and recieve message " bad URI(is not URI?):
/api/1.0/repositories/#User:0x000000045aff10/demo_1 "
def index
@repositories = set_bitbucket(current_user).repos
@repos = @repositories.get(current_user,"demo_1")
end
def set_bitbucket(user)
bitbucket = BitBucket.new do |config|
config.oauth_token = user.oauth_token
config.oauth_secret = user.oauth_secret
config.client_id = Settings.BITBUCKET_CLIENT_ID
config.client_secret = Settings.BITBUCKET_CLIENT_SECRET
config.adapter = :net_http
end
end—
Reply to this email directly or view it on GitHub
#46.
from bitbucket.
done. 👍
thanks you very much.
from bitbucket.
Related Issues (20)
- Is This Gem Still Supported?
- ひよごん
- Mai Difussion
- Job application
- My technopreneurship prototype
- Question - How I can each all pages of result? HOT 2
- list all repos same name ?
- download repos HOT 2
- Consumer key not working HOT 1
- Webhook creation fails with BitBucket::Error::Unauthorized HOT 3
- https://api.bitbucket.org/1.0/user/repositories endpoint stopped working HOT 4
- each_page does not work due to no PageIterator object
- OAuth token/secret HOT 4
- Warning: You are setting a key that conflicts with a built-in method Hashie::Mash HOT 1
- repos.pull_request.all: Calling links on LinkHashie::Mash Result Causes NameError
- repos.pull_request.all Returns Variable Length Array Depending on if There Are More Pages HOT 2
- New features, no release?
- SSL verification turned off by default
- how to fetch all the branches?
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 bitbucket.