Timeout on C8Y_BASEURL from microservice / pod

What product/components do you use and which version/fix level are you on?

Cumulocity IoT single node 1013

Is your question related to the free trial, or to a production (customer) instance?

Free trial

What are you trying to achieve? Please describe it in detail.

We are developing a test microservice which should communicate with REST API of cumulocity to save sensor / device measurements

Do you get any error messages? Please provide a full error message screenshot and log file.

Trying to call address System.getenv(“C8Y_BASEURL”) + “/inventory/managedObjects” using RestTemplate causes Timeout exception.
If we connect directly to pod of microservice and use cURL on the same address, effect is the same.
C8Y_BASEURL value is http-cumulocity-8111 (valid address but links are not allowed in posts here)

Kubernetes service “cumulocity” exists and has mapping for this port and is ClusterIP type. It does not have any selectors. Endpoint object with name “cumulocity” also exists with mapping to IP address not used by any pod
Calling cumulocity public endpoint http-domain-name-8111 without any parameters, from node or external computer returns HTTP 403 (instead of timeout)
Calling cumulocity public endpoint from pod redirects to https-domain-name-8111/apps/cockpit

Error from pod:
curl http-cumulocity-8111
curl: (28) Failed to connect to cumulocity port 8111 after 127321 ms: Couldn’t connect to server

Error in microservice log:
MicroserviceSubscriptionScheduler : Error while reacting on microservice subscription
com.cumulocity.sdk.client.SDKException: Error invoking GET http-cumulocity-8111/application/currentApplication

Have you installed all the latest fixes for the products and systems you are using?


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.