Skip to content

Not working on latest Metabase v0.35.4 #1

Description

@fanis

It mentions a self-signed certificate error (the target is non-TLS), http://10.11.12.13:3000/ so I'm unsure if this has any effect. Also tried passing ignoreHTTPSErrors: true in puppeteer.launch().

After peppering some console.log()s I believe it gets stuck waiting for "OUR DATA" in questionService.js:

await page.waitForFunction( () => document.querySelector("body").innerText.includes('OUR DATA'));

I do see the string in the HTTP response after login so I'm not sure what's happening there.

Output:

TimeoutError: waiting for function failed: timeout 30000ms exceeded
    at new WaitTask (c:\work\root\metabase-pulses\node_modules\puppeteer\lib\DOMWorld.js:549:28)
    at DOMWorld.waitForFunction (c:\work\root\metabase-pulses\node_modules\puppeteer\lib\DOMWorld.js:454:12)
    at Frame.waitForFunction (c:\work\root\metabase-pulses\node_modules\puppeteer\lib\FrameManager.js:657:28)
    at Page.waitForFunction (c:\work\root\metabase-pulses\node_modules\puppeteer\lib\Page.js:1141:29)
    at saveQuestion (c:\work\root\metabase-pulses\questionService.js:43:16)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async processPulse (c:\work\root\metabase-pulses\index.js:10:30)
    at async Promise.all (index 0)
    at async main (c:\work\root\metabase-pulses\index.js:31:5)
Error: self signed certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1492:34)
    at TLSSocket.emit (events.js:315:20)
    at TLSSocket._finishInit (_tls_wrap.js:935:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:693:12) {
  code: 'ESOCKET',
  command: 'CONN'
}

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