You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/08/30 06:19:19 UTC
[GitHub] [apisix] mangoGoForward commented on issue #4904: Integration of eureka as discovery registry fail
mangoGoForward commented on issue #4904:
URL: https://github.com/apache/apisix/issues/4904#issuecomment-908063613
> can you see what character encoding your Eureka is using?
Eureka start on tomcat, and I set tomcat conf.server.xml character encoding to "UTF-8"
`<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8" />
`
And I got correct response via curl or use chrome to visit "http://localhost:8080/eureka/v2/apps"
```
$ curl --compressed -i -X GET "http://localhost:8080/eureka/v2/apps" -H "Accept: application/json"
HTTP/1.1 200
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Type: application/json
Content-Length: 554
Date: Mon, 30 Aug 2021 06:15:18 GMT
{"applications":{"versions__delta":"1","apps__hashcode":"UP_1_","application":[{"name":"EUREKA","instance":[{"instanceId":"niyaoaidaodeMacBook-Pro.local","hostName":"niyaoaidaodeMacBook-Pro.local","app":"EUREKA","ipAddr":"127.0.0.1","status":"UP","overriddenStatus":"UNKNOWN","port":{"$":8080,"@enabled":"true"},"securePort":{"$":443,"@enabled":"false"},"countryId":1,"dataCenterInfo":{"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo","name":"MyOwn"},"leaseInfo":{"renewalIntervalInSecs":30,"durationInSecs":90,"registrationTimestamp":1630303157467,"lastRenewalTimestamp":1630304120244,"evictionTimestamp":0,"serviceUpTimestamp":1630303156998},"metadata":{"@class":"java.util.Collections$EmptyMap"},"appGroupName":"UNKNOWN","homePageUrl":"http://niyaoaidaodeMacBook-Pro.local:8080/","statusPageUrl":"http://niyaoaidaodeMacBook-Pro.local:8080/Status","healthCheckUrl":"http://niyaoaidaodeMacBook-Pro.local:8080/healthcheck","vipAddress":"eureka.mydomain.net","isCoordinatingDisco
veryServer":"true","lastUpdatedTimestamp":"1630303157467","lastDirtyTimestamp":"1630303156955","actionType":"ADDED"}]}]}}
```

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org