Comments (11)
Here is an example how to work with multiple servers:
client1 = Gitlab.client(endpoint: 'https://api1.example.com', private_token: '001')
client2 = Gitlab.client(endpoint: 'https://api2.example.com', private_token: '002')
from gitlab.
Nope. I tried that. It fails. client1
will try getting paths using client2
's host. It's because the code uses httparty in an un-thread-safe way.
An obvious example is setting the base_uri
on the Gitlab::Client
class instead of an instance in users.rb:13 but I'm sure there are other problems.
from gitlab.
Is it also affects private_token
? Does it also stored in class variable?
from gitlab.
No class variables were used.
from gitlab.
@NARKOZ thanks. So its only base_uri
is global now right?
from gitlab.
@randx commit bf4512f was reverted, so currently it isn't.
from gitlab.
@NARKOZ thank you
from gitlab.
@NARKOZ any chance you will release new version of gem with fixes soon?
from gitlab.
New version will be released in a couple of days.
from gitlab.
@NARKOZ thanks! ❤️
from gitlab.
Can we close this issue now?
from gitlab.
Related Issues (20)
- Loading / importing / require 'gitlab' very slow HOT 5
- Config location HOT 1
- Raise error for all 4xx and 5xx response status codes
- Commits on branch with used ref - not worked HOT 1
- Automate gem releases HOT 2
- tracking group and project iterations HOT 1
- Add support for user status HOT 1
- Ban User Wrapper HOT 1
- Allow methods in resource_label_events to accept request params
- container expiration policy does not work HOT 1
- Latest pipeline API method
- New GitLab personal and project tokens are not working. HOT 1
- Would we like to include GraphQL API capabilities? HOT 6
- Feature Request: gitlab CI lint is being deprecated and new APIs are replacing them HOT 1
- Create a link to share a group with another group HOT 1
- Gitlab 16 deprecating changing MR Approvals using the `/approvals` endpoint HOT 2
- Support using CI_JOB_TOKEN for authentication HOT 7
- Thanks HOT 1
- share/unshare group with group HOT 1
- New release? HOT 1
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 gitlab.