Git Product home page Git Product logo

Comments (11)

NARKOZ avatar NARKOZ commented on May 27, 2024

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.

docwhat avatar docwhat commented on May 27, 2024

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.

dzaporozhets avatar dzaporozhets commented on May 27, 2024

Is it also affects private_token? Does it also stored in class variable?

from gitlab.

NARKOZ avatar NARKOZ commented on May 27, 2024

No class variables were used.

from gitlab.

dzaporozhets avatar dzaporozhets commented on May 27, 2024

@NARKOZ thanks. So its only base_uri is global now right?

from gitlab.

NARKOZ avatar NARKOZ commented on May 27, 2024

@randx commit bf4512f was reverted, so currently it isn't.

from gitlab.

dzaporozhets avatar dzaporozhets commented on May 27, 2024

@NARKOZ thank you

from gitlab.

dzaporozhets avatar dzaporozhets commented on May 27, 2024

@NARKOZ any chance you will release new version of gem with fixes soon?

from gitlab.

NARKOZ avatar NARKOZ commented on May 27, 2024

New version will be released in a couple of days.

from gitlab.

dzaporozhets avatar dzaporozhets commented on May 27, 2024

@NARKOZ thanks! ❤️

from gitlab.

dzaporozhets avatar dzaporozhets commented on May 27, 2024

Can we close this issue now?

from gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.