Skip to content

Cannot register my instance - 404 error received #12

Description

@exhesham

When i run the next test:

from eureka_client import EurekaClient
import logging
logging.basicConfig()
ec = EurekaClient("MyApplication",
                  eureka_url="http://localhost:8080/eureka/v2/",
                  region="eu-west-1",
                  use_dns=False,
                  data_center="asdasdasd",
                  vip_address="http://localhost:7001/",
                  health_check_url="http://localhost:7001/app1",
                  host_name="localhost",
                  port=7001,
                  eureka_port=8080)
print ec.register()

I receive the next error:

Traceback (most recent call last):
File "test.py", line 20, in
print ec.register()
File "/usr/lib/python2.7/site-packages/eureka/client.py", line 161, in register
raise EurekaRegistrationFailedException("Did not receive correct reply from any instances")
eureka.client.EurekaRegistrationFailedException: Did not receive correct reply from any instances

When i curl the next url:

http://localhost:8080/eureka/v2/apps/MyApplication
I receive 404 but when i curl the next url:

http://whclsf-teva-dev-cc-bck4:8080/eureka/v2/apps/
I receive response status code 200 which means eureka server is up and running

the issue here is:
I ran the same configuration with Prana and it worked for me. but with your module, it didn't work!
According to the error and the code, you assume that my app was registered before or already registered!
what am i doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions