GithubHelp home page GithubHelp logo

Comments (6)

eriklupander avatar eriklupander commented on August 19, 2024 1

Hi, I have not looked at this repo for several years, I kind of suspect that it is terribly out of date.

from go-microservice-eureka.

eriklupander avatar eriklupander commented on August 19, 2024

Hi,

I got the same issue when I tried to get things up and running. I added ;charset=UTF-8 to the Content-Type header, e.g:

Content-Type: application/json;charset=UTF-8

E.g. in the eurekaclient.go file.

I was running against a quite new Spring Clound Eureka instance provided by a Spring Boot application.

Also, I'm having issues with my service disappearing from Eureka with "Registry: lease doesn't exist, registering resource" in the Eureka log. Still troubleshooting that.

Hope this helps.

from go-microservice-eureka.

spectre013 avatar spectre013 commented on August 19, 2024

I was able to get it to register with the following

{ "instance": { "instanceId": "vendor:${instanceId}", "hostName": "${ipAddress}", "app": "vendor", "ipAddr": "${ipAddress}", "vipAddress": "vendor-data-service", "status": "UP", "port": { "$":8080, "@enabled": "true" }, "securePort": { "$": 8443, "@enabled": "false" }, "homePageUrl": "http://${ipAddress}:${port}/", "statusPageUrl": "http://${ipAddress}:${port}/info", "healthCheckUrl": "http://${ipAddress}:${port}/health", "dataCenterInfo": { "@class": "com.netflix.appinfo.MyDataCenterInfo", "name": "MyOwn" } } }

from go-microservice-eureka.

stevebaros avatar stevebaros commented on August 19, 2024

Does this still work ?

from go-microservice-eureka.

stevebaros avatar stevebaros commented on August 19, 2024

Hi, I have not looked at this repo for several years, I kind of suspect that it is terribly out of date.

Thank you .

from go-microservice-eureka.

HamdiMahjoub avatar HamdiMahjoub commented on August 19, 2024

Hi,
I just inject this dependency and it works !

	<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-loadbalancer -->
	<dependency>
		<groupId>org.springframework.cloud</groupId>
		<artifactId>spring-cloud-starter-loadbalancer</artifactId>
		<version>3.1.4</version>
	</dependency>

from go-microservice-eureka.

Related Issues (1)

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.