-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eureka docker 1.3.1 instance registrations failing #46
Comments
Can you upgrade to the latest Eureka release, and confirm that the error is still there? |
@tbak still seeing the issue on 1.4.3 so I turned on DEBUG and found out where it's failing:
Looked into it some more and found that it looks like After I added those properties, I ran into another issue were I had to add a {
"instance": {
"app": "jqservice",
"hostName": "localhost",
"ipAddr": "127.0.0.1",
"port": {
"$":8080,
"@enabled": true
},
"vipAddress": "jq.test.something.com",
"dataCenterInfo": {
"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo",
"name": "MyOwn"
},
"status": "UP"
}
} Anyway I guess I want to make sure that there WAS a schema change in newer Eureka versions that would make the old JSON incompatible. Or, perhaps theres some transform happening that I don't know about. Thanks for the reply! |
The port format is as in the last snippet. This comes from legacy XML On Wed, Mar 9, 2016 at 11:41 AM, Jacob Quatier [email protected]
|
@tbak thanks! It looks like the format would have changed in version The main reason I ask is because I have a JS Eureka client module on NPM and I might need to make it support both the old and the new formats. No one has run into this issue yet that I know of, which must mean they are on an older Eureka version. Since |
Eh, scratch that, it might be version |
It was never in { port: 8080 } format. We have running different versions On Wed, Mar 9, 2016 at 1:01 PM, Jacob Quatier [email protected]
|
Ok, I must be missing something. I was looking at this diff: That's where the datatype of that field changed from an In any case, |
This type was introduced to explicitly model transport layer view, which On Wed, Mar 9, 2016 at 1:13 PM, Jacob Quatier [email protected]
|
Yeah, I'm not 100% sure where the change was. It could be the other PR I found, since that also introduced the Theres a clear difference between pre |
I'm trying to update my copy of the necessary registration Schema (found here: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations) but I don't know how to get those @ signs to work in the schema file, has anyone else got the schema updated that I can see? |
I have successfully connected my NodeJs App to Spring Cloud Registry with 'eureka-js-client' npm module with following configurations: const Eureka = require('eureka-js-client').Eureka; const eureka = new Eureka({ Now, I'm trying to connect to JHipster Registry which is protected by username and password. If I configure Eureka for JHipster Registry as following, it rejects the connection from JHipster Registry as it would be an anauthorized request:
I am unable to find how to configure authentication parameters in Eureka configuration in NodeJs. Kindly share some pointers. Thanks. |
@hushensavani You should be able to utilize the requestMiddleware functionality here. You can use it to set any custom auth headers or just basic auth since you get passed the request options if you provide that callback. |
I recently started using the
netflixoss/eureka:1.3.1
docker image but I'm getting a400 Bad Request
error on all registrations. This issue doesn't seem to exist on1.1.147
, which is very odd.The error in the response is:
{error:'cannot parse request body'}
Here's my POST body:
URL:
http://192.168.99.100:8080/eureka/v2/apps/jqservice
Headers:
Content-Type: application/json
Accept: application/json
If I switch back to
netflixoss/eureka:1.1.147
the request succeeds with no other changes. Was there any major changes to the request body that I'm missing? I don't see anything in the server log around the bad request when this happens. If there's anything else I should try, let me know. Thanks!The text was updated successfully, but these errors were encountered: