use postman call eureka REST api register return 400 Bad request -


why receive 400 error bad request ?

  1. eureka server url http://localhost:8761/eureka/apps/service1, have start

  2. use postman send post request register, headers set:

"content-type", "application/json", request body :{     "instance": {        "hostname":"tpdeva13",        "app":"service1",        "ipaddr":"tpdeva13",        "vipaddress":"tpdeva13",        "securevipaddress":"tpdeva13",        "status":"up",        "port":{            "$":8889,            "@enabled":"true"        },        "datacenterinfo":{            "@class":"com.netflix.appinfo.instanceinfo$defaultdatacenterinfo",           "name":"tpdeva13"        }     } } 
  1. after send request, server return 400 bad request, can't find error ?

enter image description here


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -