Jovo run connection error (Error: xhr poll error)


#1

I ran into this issue this morning. It looks like there is something wrong with the local prototyping webhook.

I’ve tried updating and re-installing the jovo-cli but that did not help. And it shouldn’t be an issue with my internet connection.

Running jovo run results in the following error:

Sorry, there seems to be an issue with the connection!
{ Error: xhr poll error
    at XHR.Transport.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transport.js:67:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:130:10)
    at Request.Emitter.emit (/usr/local/lib/node_modules/jovo-cli/node_modules/component-emitter/index.js:133:20)
    at Request.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:311:8)
    at Timeout._onTimeout (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:258:18)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5) type: 'TransportError', description: 503 }

I’m not sure what to make of the error, any help would be appreciated!


#2

I’m having the same error with jovo run so I cannot test my skill using the jovo webhook. Yesterday it was working fine. Seems like the SSL certificate for https://webhook.jovo.cloud/ expired a few hours ago. Is there something we can do to get it working again?

For now I’ve switched to bst-proxy to be able to test.


#3

Hi
I’m having the same problem, but i don’t know why. I’ll try work with ngrok or bst-proxy while the problem is solved.


#4

Seeing the same issue here.


#5

Thank you all for reporting the issue. Will work on fixing this!

For now, as mentioned by @Carleslc and @EverAcosta, I recommend using either bst-proxy or ngrok. Let me know if you have any questions setting it up


#6

Hi, I am having the same issue ( on OSX ). Any update since this previous post ?

How to use Ngrok to run the debugger ? I tried several thinks ( from Jovo doc and NgRok doc ) with no success, I don’t get it, I am new to this… For now :slight_smile:

Kind you provide an example ?


#7

I just ran into this problem today, though it was working fine until I rebuilt my development container. This happened on two different machines. I wonder if some now-broken data was cached?


#8

Hey!

Can’t reproduce and there are no errors in the server logs :frowning:

Could you provide logs from your machine?


#9

It happens on first install and the same happens if I reinstall from scratch again.
I am using Node v15.3.0 and Jovo CLI Version: 3.2.1

Here is the log:

    jovo run: Runs a local development server (webhook).
>> Learn more: https://jovo.tech/docs/cli/run

Sorry, there seems to be an issue with the connection!
Error: xhr poll error
    at XHR.Transport.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transport.js:68:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:132:10)
    at Request.Emitter.emit (/usr/local/lib/node_modules/jovo-cli/node_modules/component-emitter/index.js:145:20)
    at Request.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:314:8)
    at Timeout._onTimeout (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:274:12)
    at listOnTimeout (node:internal/timers:556:17)
    at processTimers (node:internal/timers:499:7) {
type: 'TransportError',
description: TypeError [ERR_INVALID_ARG_TYPE]: The "options.ciphers" property must be of type string. Received null
    at new NodeError (node:internal/errors:278:15)
    at validateString (node:internal/validators:123:11)
    at Object.createSecureContext (node:_tls_common:267:5)
    at Object.connect (node:_tls_wrap:1581:48)
    at Agent.createConnection (node:https:129:22)
    at Agent.createSocket (node:_http_agent:323:26)
    at Agent.addRequest (node:_http_agent:274:10)
    at new ClientRequest (node:_http_client:318:16)
    at Object.request (node:https:313:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/agent-base/patch-core.js:25:22) {
    code: 'ERR_INVALID_ARG_TYPE'
}
}
Local server listening on port 3000.
Sorry, there seems to be an issue with the connection!
Sorry, there seems to be an issue with the connection!
Sorry, there seems to be an issue with the connection!
Error: xhr poll error
    at XHR.Transport.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transport.js:68:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:132:10)
    at Request.Emitter.emit (/usr/local/lib/node_modules/jovo-cli/node_modules/component-emitter/index.js:145:20)
    at Request.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:314:8)
    at Timeout._onTimeout (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:274:12)
    at listOnTimeout (node:internal/timers:556:17)
    at processTimers (node:internal/timers:499:7) {
type: 'TransportError',
description: TypeError [ERR_INVALID_ARG_TYPE]: The "options.ciphers" property must be of type string. Received null
    at new NodeError (node:internal/errors:278:15)
    at validateString (node:internal/validators:123:11)
    at Object.createSecureContext (node:_tls_common:267:5)
    at Object.connect (node:_tls_wrap:1581:48)
    at Agent.createConnection (node:https:129:22)
    at Agent.createSocket (node:_http_agent:323:26)
    at Agent.addRequest (node:_http_agent:274:10)
    at new ClientRequest (node:_http_client:318:16)
    at Object.request (node:https:313:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/agent-base/patch-core.js:25:22) {
    code: 'ERR_INVALID_ARG_TYPE'
}
}

To open Jovo Debugger in your browser, enter .

Sorry, there seems to be an issue with the connection!
Error: xhr poll error
    at XHR.Transport.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transport.js:68:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:132:10)
    at Request.Emitter.emit (/usr/local/lib/node_modules/jovo-cli/node_modules/component-emitter/index.js:145:20)
    at Request.onError (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:314:8)
    at Timeout._onTimeout (/usr/local/lib/node_modules/jovo-cli/node_modules/engine.io-client/lib/transports/polling-xhr.js:274:12)
    at listOnTimeout (node:internal/timers:556:17)
    at processTimers (node:internal/timers:499:7) {
type: 'TransportError',
description: TypeError [ERR_INVALID_ARG_TYPE]: The "options.ciphers" property must be of type string. Received null
    at new NodeError (node:internal/errors:278:15)
    at validateString (node:internal/validators:123:11)
    at Object.createSecureContext (node:_tls_common:267:5)
    at Object.connect (node:_tls_wrap:1581:48)
    at Agent.createConnection (node:https:129:22)
    at Agent.createSocket (node:_http_agent:323:26)
    at Agent.addRequest (node:_http_agent:274:10)
    at new ClientRequest (node:_http_client:318:16)
    at Object.request (node:https:313:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/jovo-cli/node_modules/agent-base/patch-core.js:25:22) {
    code: 'ERR_INVALID_ARG_TYPE'
}
}
Sorry, there seems to be an issue with the connection!

#10

Thanks, this was helpful.

Looks like an issue with Node v15.3.0 (https://github.com/nodejs/node/issues/36292). I was able to reproduce it after switching to v15.3.0 and getting another error with v15.5.1

It does work with 14.15.1


#11

Thanks @AlexSwe , I installed a v14.15.4 of nodeJs and it works. :+1: