Cometd new advice keeps timing out

21 wyświetleń
Przejdź do pierwszej nieodczytanej wiadomości

Abdulrahman Alzahrani

nieprzeczytany,
28 kwi 2021, 15:06:4728.04.2021
do cometd-dev
Hello Everyone, 
I have been stuck in this issue for cometd where its keep timing out after a successful handshake 
here is the info log of whats happening - is it from 
you think its something from the server or client this timeout ? 
----------------------
13:45:07.651 Transport websocket reset initial
cometd.js?a421:1533 13:45:07.651 Transport long-polling reset initial
cometd.js?a421:1533 13:45:07.651 Transport callback-polling reset initial
cometd.js?a421:1533 13:45:07.652 New advice {timeout: 60000, interval: 0, maxInterval: 0}
cometd.js?a421:1533 13:45:07.652 Transport websocket accept, supported: true
cometd.js?a421:1533 13:45:07.652 Initial transport is long-polling
cometd.js?a421:1533 13:45:07.653 Status disconnected -> handshaking
cometd.js?a421:1533 13:45:07.653 Handshake sent {id: "1", version: "1.0", minimumVersion: "1.0", channel: "/meta/handshake", supportedConnectionTypes: Array(2), …}
cometd.js?a421:1533 13:45:07.653 Send {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
cometd.js?a421:1533 13:45:07.654 Transport long-polling sending request 1 envelope {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
cometd.js?a421:1533 13:45:07.655 Transport long-polling started waiting for message replies of request 1 : 10000 ms
13:45:07.713 Configuring cometd object with {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd", logLevel: "debug"}
13:45:07.771 Transport long-polling received error  undefined
cometd.js?a421:1533 13:45:07.772 Transport long-polling cancelled waiting for failed message replies
cometd.js?a421:1533 13:45:07.772 handleFailure XMLHttpRequest {context: undefined, onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, …} [{…}] {reason: "", exception: undefined, httpCode: 0, connectionType: "long-polling"}
cometdClientConnector.js?ef83:32 Failed to connected to CometD.
eval @ cometdClientConnector.js?ef83:32
_notifyCallback @ cometd.js?a421:2143
_handleCallback @ cometd.js?a421:2175
_failHandshake @ cometd.js?a421:2305
_handshakeFailure @ cometd.js?a421:2379
_handleFailure @ cometd.js?a421:2631
onFailure @ cometd.js?a421:1895
RequestTransport._self.transportFailure @ cometd.js?a421:557
onError @ cometd.js?a421:746
xhr.onabort.xhr.onerror @ cometd.js?a421:688
error (async)
LongPollingTransport._self.xhrSend @ cometd.js?a421:687
LongPollingTransport._self.transportSend @ cometd.js?a421:700
_transportSend @ cometd.js?a421:440
_queueSend @ cometd.js?a421:469
RequestTransport._self.send @ cometd.js?a421:581
_send @ cometd.js?a421:1902
_handshake @ cometd.js?a421:2125
CometD.handshake @ cometd.js?a421:2822
configureCometD @ cometdClientConnector.js?ef83:22
mounted @ DashboardHome.vue?fe26:47
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
callHook @ vue.runtime.esm.js?2b0e:4219
insert @ vue.runtime.esm.js?2b0e:3139
invokeInsertHook @ vue.runtime.esm.js?2b0e:6346
patch @ vue.runtime.esm.js?2b0e:6565
Vue._update @ vue.runtime.esm.js?2b0e:3948
updateComponent @ vue.runtime.esm.js?2b0e:4066
get @ vue.runtime.esm.js?2b0e:4479
run @ vue.runtime.esm.js?2b0e:4554
flushSchedulerQueue @ vue.runtime.esm.js?2b0e:4310
eval @ vue.runtime.esm.js?2b0e:1980
flushCallbacks @ vue.runtime.esm.js?2b0e:1906
Promise.then (async)
timerFunc @ vue.runtime.esm.js?2b0e:1933
nextTick @ vue.runtime.esm.js?2b0e:1990
queueWatcher @ vue.runtime.esm.js?2b0e:4402
update @ vue.runtime.esm.js?2b0e:4544
notify @ vue.runtime.esm.js?2b0e:730
reactiveSetter @ vue.runtime.esm.js?2b0e:1055
proxySetter @ vue.runtime.esm.js?2b0e:4631
eval @ LoginPage.vue?c9c6:61
Promise.then (async)
_callee$ @ LoginPage.vue?c9c6:50
tryCatch @ runtime.js?96cf:63
invoke @ runtime.js?96cf:293
eval @ runtime.js?96cf:118
asyncGeneratorStep @ asyncToGenerator.js?3b8d:5
_next @ asyncToGenerator.js?3b8d:27
eval @ asyncToGenerator.js?3b8d:34
F @ _export.js?63b6:36
eval @ asyncToGenerator.js?3b8d:23
signIn @ LoginPage.vue?c9c6:45
handleSignInRequest @ LoginPage.vue?c9c6:82
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
invoker @ vue.runtime.esm.js?2b0e:2179
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
Vue.$emit @ vue.runtime.esm.js?2b0e:3888
eval @ mwcLoginPage.vue?f963:99
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
Vue.$emit @ vue.runtime.esm.js?2b0e:3888
handleLoginRequest @ LoginForm.vue?41c3:150
validateInput @ LoginForm.vue?41c3:147
submit @ LoginForm.vue?5f77:33
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
invoker @ vue.runtime.esm.js?2b0e:2179
original._wrapper @ vue.runtime.esm.js?2b0e:6917
cometd.js?a421:1533 13:45:13.137 Transport failure {cause: "failure", action: "handshake", transport: null} for {id: "1", successful: false, channel: "/meta/handshake", failure: {…}}
cometd.js?a421:1533 13:45:13.138 Transport websocket accept, supported: true
cometd.js?a421:1533 13:45:13.138 Transport long-polling -> callback-polling
cometd.js?a421:1533 13:45:13.138 Transport failure handling {cause: "failure", action: "handshake", transport: F, delay: 0}
cometd.js?a421:1533 13:45:13.138 Function scheduled in 0 ms, interval = 0 backoff = 1000 ƒ () {
                _handshake(_handshakeProps, _handshakeCallback);
            }
cometd.js?a421:1533 13:45:13.147 Invoking timed function ƒ () {
                _handshake(_handshakeProps, _handshakeCallback);
            }
cometd.js?a421:1533 13:45:13.147 New advice {timeout: 60000, interval: 0, maxInterval: 0}
cometd.js?a421:1533 13:45:13.147 Transport websocket accept, supported: true
cometd.js?a421:1533 13:45:13.147 Initial transport is callback-polling
cometd.js?a421:1533 13:45:13.147 Handshake sent {id: "2", version: "1.0", minimumVersion: "1.0", channel: "/meta/handshake", supportedConnectionTypes: Array(1), …}
cometd.js?a421:1533 13:45:13.148 Send {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
cometd.js?a421:1533 13:45:13.148 Transport callback-polling sending request 1 envelope {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
cometd.js?a421:1533 13:45:13.149 Transport callback-polling started waiting for message replies of request 1 : 10000 ms
cometd.js?a421:1533 13:45:13.256 Transport callback-polling cancelled waiting for message replies
cometd.js?a421:1533 13:45:13.256 Received [{…}]
cometdClientConnector.js?ef83:26 Handshake successful.
cometd.js?a421:1533 13:45:17.291 Status handshaking -> connecting
cometd.js?a421:1533 13:45:17.291 Function scheduled in 0 ms, interval = 0 backoff = 0 ƒ () {
                _connect();
            }
cometd.js?a421:1533 13:45:17.293 Invoking timed function ƒ () {
                _connect();
            }

Simone Bordet

nieprzeczytany,
28 kwi 2021, 15:15:0728.04.2021
do cometd-dev
Hi,

On Wed, Apr 28, 2021 at 9:06 PM Abdulrahman Alzahrani
<rahmo.a...@gmail.com> wrote:
>
> Hello Everyone,
> I have been stuck in this issue for cometd where its keep timing out after a successful handshake
> here is the info log of whats happening - is it from
> you think its something from the server or client this timeout ?
> ----------------------
> cometd.js?a421:1533 13:45:07.652 Initial transport is long-polling
> cometd.js?a421:1533 13:45:07.653 Status disconnected -> handshaking
> cometd.js?a421:1533 13:45:07.653 Handshake sent {id: "1", version: "1.0", minimumVersion: "1.0", channel: "/meta/handshake", supportedConnectionTypes: Array(2), …}
> cometd.js?a421:1533 13:45:07.653 Send {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
> cometd.js?a421:1533 13:45:07.654 Transport long-polling sending request 1 envelope {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
> cometd.js?a421:1533 13:45:07.655 Transport long-polling started waiting for message replies of request 1 : 10000 ms
> 13:45:07.713 Configuring cometd object with {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd", logLevel: "debug"}
> 13:45:07.771 Transport long-polling received error undefined
> cometd.js?a421:1533 13:45:07.772 Transport long-polling cancelled waiting for failed message replies
> cometd.js?a421:1533 13:45:07.772 handleFailure XMLHttpRequest {context: undefined, onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, …} [{…}] {reason: "", exception: undefined, httpCode: 0, connectionType: "long-polling"}


> cometd.js?a421:1533 13:45:13.147 Initial transport is callback-polling
> cometd.js?a421:1533 13:45:13.147 Handshake sent {id: "2", version: "1.0", minimumVersion: "1.0", channel: "/meta/handshake", supportedConnectionTypes: Array(1), …}
> cometd.js?a421:1533 13:45:13.148 Send {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
> cometd.js?a421:1533 13:45:13.148 Transport callback-polling sending request 1 envelope {url: "http://stage-ssm-sub-474571079.us-east-1.elb.amazonaws.com/deltasp/cometd/handshake", sync: false, messages: Array(1), onSuccess: ƒ, onFailure: ƒ}
> cometd.js?a421:1533 13:45:13.149 Transport callback-polling started waiting for message replies of request 1 : 10000 ms
> cometd.js?a421:1533 13:45:13.256 Transport callback-polling cancelled waiting for message replies
> cometd.js?a421:1533 13:45:13.256 Received [{…}]
> cometdClientConnector.js?ef83:26 Handshake successful.

You are not able to connect using long-polling, but you can using
callback-polling.

This typically means that you have a cross-origin setup, but you have
not configured the cross-origin filter properly.
See https://docs.cometd.org/current/reference/#_javascript_transports_cross_origin
and https://docs.cometd.org/current/reference/#_java_server_configuration_advanced_cross_origin_filter.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Odpowiedz wszystkim
Odpowiedz autorowi
Przekaż
Nowe wiadomości: 0