keijack / python-eureka-client

A eureka client written in python. Support registering your python component to Eureka Server, as well as calling remote services by pulling the the Eureka registry.
MIT License
184 stars 43 forks source link

TypeError: init_registry_client() got an unexpected keyword argument 'registry_server' #1

Closed simoneobo closed 5 years ago

simoneobo commented 5 years ago

Hi, i'm trying to use this module in a simple example, but everytime a run the script i obtain this error: TypeError: init_registry_client() got an unexpected keyword argument 'registry_server'

Can you help me? Thank you

The code is:

import py_eureka_client.eureka_client as eureka_client

your_rest_server_port = 9090
eureka_client.init_registry_client(registry_server="http://localhost:8761/eureka",
app_name="your_app_name",
instance_port=your_rest_server_port)
keijack commented 5 years ago

Hi, i'm trying to use this module in a simple example, but everytime a run the script i obtain this error: TypeError: init_registry_client() got an unexpected keyword argument 'registry_server'

Can you help me? Thank you

The code is:

import py_eureka_client.eureka_client as eureka_client

your_rest_server_port = 9090
eureka_client.init_registry_client(registry_server="http://localhost:8761/eureka",
app_name="your_app_name",
instance_port=your_rest_server_port)

I'm sorry, that I change the keyword argument name from registry_server to eureka_server, I have update the README file