Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

TimeoutException in thread main and failure to connect to meta/handshake #99

@vanlanjr

Description

@vanlanjr

I am facing an issue where I am trying to subscribe to custom events using bearer tokens but I am getting a TimeoutException as soon as I run the command given for the BearerTokenExample.

Here is the output:
41 [main] INFO org.eclipse.jetty.util.log - Logging initialized @167ms to org.eclipse.jetty.util.log.Slf4jLog
68 [main] INFO com.salesforce.emp.connector.EmpConnector - EmpConnector connecting
Exception in thread "main" java.util.concurrent.TimeoutException
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1784)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
at com.salesforce.emp.connector.example.BearerTokenExample.main(BearerTokenExample.java:66)

[2022-09-20 11:00:30.048] Failure:[/meta/handshake]
{failure={exception=java.util.concurrent.TimeoutException: Total timeout 15000 ms elapsed, message={ext={replay=true}, supportedConnectionTypes=[long-polling], channel=/meta/handshake, id=1, version=1.0}, connectionType=long-polling}, channel=/meta/handshake, id=1, successful=false}
<<<<

[2022-09-20 11:00:45.066] Failure:[/meta/handshake]
{failure={exception=java.util.concurrent.TimeoutException: Total timeout 15000 ms elapsed, message={ext={replay=true}, supportedConnectionTypes=[long-polling], channel=/meta/handshake, id=2, version=1.0}, connectionType=long-polling}, channel=/meta/handshake, id=2, successful=false}
<<<<

Any idea why this is happening?

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