Skip to content

Question: Facing issue connecting to event bus INVALID_STATE_ERR #13

Description

@Lakshmihm

Hi,

Nice example explaining vertx-eventbus-client

I am trying to replace a REST call with vertx-eventbus-client. It works well locally, but when I deploy the code to use dns name for the event bus http://dnsName:80/eventbus. it fails with this error
INVALID_STATE_ERR
at EventBus.send (/home/app/node_modules/vertx3-eventbus-client/vertx-eventbus.js:202:13)
at tryCatcher (/home/app/node_modules/bluebird/js/release/util.js:16:23)
at ret [as sendAsync] (eval at (/home/app/node_modules/bluebird/js/release/promisify.js:1:0), :14:23)
the onOpen function is fine and is called on server start up. Can see xhr_streaming calls being made to the vertx backend

I added some debug logs, onopen is called and the state is set to OPEN, immeditately onClose is called and state is set to CLOSED.
Any help on this is appreciated. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions