# Not able to connect with cloud API from cloud Event Broker

**URL:** <https://community.solace.com/t/not-able-to-connect-with-cloud-api-from-cloud-event-broker/867>\
**Category:** General Discussions\
**Created:** [July 29, 2021, 12:15pm UTC](https://community.solace.com/t/not-able-to-connect-with-cloud-api-from-cloud-event-broker/867 "2021-07-29T12:15:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaikrattariyal](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jaikrattariyal](https://community.solace.com/u/jaikrattariyal)\
**Post date:** [July 29, 2021, 12:15pm UTC](https://community.solace.com/t/not-able-to-connect-with-cloud-api-from-cloud-event-broker/867/1 "2021-07-29T12:15:18Z")

</div>

I have one Spring Boot API deployed in Heroku which I am trying to connect from Solace Cloud PubSub Broker… I am trying to create one REST Consumers and putting HOST and PORT of my Heroku Deployed Application. But the Operation State is Down.

But when I run event broker on my local, docker way, its connecting properly.

Not sure, whether can solace cloud pubsub broker can talk to Heroku API or not?

---

<div class="post-metadata">

**Author:** ![arih](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/arih/32/130_2.png) [@arih](https://community.solace.com/u/arih)\
**Post date:** [July 29, 2021, 1:31pm UTC](https://community.solace.com/t/not-able-to-connect-with-cloud-api-from-cloud-event-broker/867/2 "2021-07-29T13:31:18Z")

</div>

I’ve had some issues with security before, check the last failed reason like this to see if it’s related to TLS or other.

 ![image.png](https://canada1.discourse-cdn.com/solace/original/1X/6ddedbe0073361954a89a2bd51b9cf0e9aa0e87f.png)

---

<div class="post-metadata">

**Author:** ![jaikrattariyal](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jaikrattariyal](https://community.solace.com/u/jaikrattariyal)\
**Post date:** [July 30, 2021, 7:16am UTC](https://community.solace.com/t/not-able-to-connect-with-cloud-api-from-cloud-event-broker/867/3 "2021-07-30T07:16:21Z")

</div>

Sorry… The operational state is UP and the \_Last Failure reason \_is “No Consumer Connections Up” and _Last Connection Failure reason_ is “Peer TCP Closed”

---

<div class="post-metadata">

**Author:** ![arih](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/arih/32/130_2.png) [@arih](https://community.solace.com/u/arih)\
**Post date:** [July 30, 2021, 8:31am UTC](https://community.solace.com/t/not-able-to-connect-with-cloud-api-from-cloud-event-broker/867/4 "2021-07-30T08:31:12Z")

</div>

The "Last … " information is only related to the last time it was down. So if the current state is up, then it should be good.

Other thing is the initial state of the REST Consumer is going to be down, until it successfully connect to the endpoint. Could it be that the first one was just because it was just starting up? A couple of refresh of the page might do the trick if that was the case.
