I have two microservices running in https://ewd-test.cumulocity.com/ (support user enabled). The tenant is subscribed and the microservices start up locally.
Both output on regular intervals:
2019-11-29 06:06:53.771 ERROR 11 --- [subscriptions-0] c.m.s.s.MicroserviceSubscriptionsService : Error while reacting on microservice subscription
com.cumulocity.sdk.client.SDKException: Error invoking GET http://cumulocity:8111/application/currentApplication
at com.cumulocity.microservice.subscription.repository.impl.CurrentMicroserviceRepository.handleException(CurrentMicroserviceRepository.java:100) ~[microservice-subscription-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.repository.impl.CurrentMicroserviceRepository.getApplication(CurrentMicroserviceRepository.java:61) ~[microservice-subscription-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.repository.impl.CurrentMicroserviceRepository.register(CurrentMicroserviceRepository.java:46) ~[microservice-subscription-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.repository.MicroserviceSubscriptionsRepository.register(MicroserviceSubscriptionsRepository.java:98) ~[microservice-subscription-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.service.impl.MicroserviceSubscriptionsServiceImpl.subscribe(MicroserviceSubscriptionsServiceImpl.java:109) ~[microservice-subscription-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.service.impl.MicroserviceSubscriptionScheduler$1.run(MicroserviceSubscriptionScheduler.java:66) [microservice-subscription-9.5.0.jar!/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_212]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_212]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_212]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_212]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_212]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_212]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_212]
Caused by: com.cumulocity.sdk.client.SDKException: Http status code: 502
Something went wrong. Failed to parse error message.
at com.cumulocity.sdk.client.ResponseParser.checkStatus(ResponseParser.java:74) ~[java-client-9.5.0.jar!/:na]
at com.cumulocity.sdk.client.ResponseParser.parse(ResponseParser.java:56) ~[java-client-9.5.0.jar!/:na]
at com.cumulocity.sdk.client.RestConnector.get(RestConnector.java:119) ~[java-client-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.repository.application.CurrentApplicationApi.get(CurrentApplicationApi.java:22) ~[microservice-subscription-9.5.0.jar!/:na]
at com.cumulocity.microservice.subscription.repository.impl.CurrentMicroserviceRepository.getApplication(CurrentMicroserviceRepository.java:59) ~[microservice-subscription-9.5.0.jar!/:na]
... 11 common frames omitted
2019-11-29 06:07:03.791 ERROR 11 --- [subscriptions-0] c.cumulocity.sdk.client.ResponseParser : Failed to parse error message to json. Getting error string...
2019-11-29 06:07:03.791 ERROR 11 --- [subscriptions-0] c.cumulocity.sdk.client.ResponseParser : <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
Any ideas here?
Thanks to the community!