golemfactory / golem-core-python

GNU General Public License v3.0
3 stars 2 forks source link

Cannot provide different yagna api url #152

Closed stan7123 closed 4 months ago

stan7123 commented 4 months ago
from golem.node import GolemNode

GolemNode(base_url='http://example.com')

Traceback (most recent call last):
  File "/opt/.pycharm_helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
           ^^^^^^
  File "<input>", line 1, in <module>
  File "/usr/local/lib/python3.11/site-packages/golem/node/node.py", line 79, in __init__
    self._api_config = ApiConfig(**config_kwargs)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ApiConfig.__init__() got an unexpected keyword argument 'base_url'

Am I doing something wrong here? :)

Looks like ApiConfig is not compatible with base_url parameter but accepts api_url.