03juan

03juan

Hi friends,

I’ve set up a docker instance with the latest livebook v0.9.1 image and I’ve run into an error when creating an explorer dataframe.

I expect the smartcell to render below the code, but the console throws this error:

app.js:2 Uncaught (in promise) Error: The loaded iframe content doesn't have the expected checksum

Here is a screen cap of the problem

I also stood up a new livebook instace on fly.io and interestingly that crashes when trying to install explorer. Not sure how related this is.

Any ideas how I can try to debug this before I create an issue?

Showing Posts 1 to 5

03juan

03juan OP

It’s not a problem with the dataset, just generating a simple DF also errors

josevalim

josevalim

Creator of Elixir

There should be an iframe in the page, where the output is expected. Can you find it using the browser inspector and access its src? Where does it point to? I am also wondering if you have an extension that could be modifying the iframe. Can you try in incognito mode?

josevalim

josevalim

Creator of Elixir

You can also use Livebook itself to validate the iframe signature. Add :req as a dependency and then:

resp = Req.get!("https://livebookusercontent.com/iframe/v4.html")
Base.encode64 :crypto.hash :sha256, req.body

Livebook expects it to be: vd7g1B8fLBFZH6C6KNpG4H8B0SQ/oIuqKaTW6jD053A=

But please check you are indeed downloading that iframe. :slight_smile:

03juan

03juan OP

Unfortunately incognito doesn’t make a difference.

It seems there are no iframe elements in the document?

The only reference I find to them in the source is in the cell that raises the error:

<div id="js-output-fkohxozn4bdhb7tonmpvgmtutdsjns3e-fkohxozn4bdhb7tonmpvgmtutdsjns3e" phx-hook="JSView" phx-update="ignore" data-ref="fkohxozn4bdhb7tonmpvgmtutdsjns3e" data-assets-base-path="/public/sessions/qfg6hzynirtsrajrafs5wgabng4uk27tmel54eqf/assets/fqenfgef7b2d3vq54jl42hh4ma/" data-js-path="main.js" data-session-token="SFMyNTY.g2gDdAAAAAJkAAljbGllbnRfaWRtAAAAIDJmZGtsaGg0bTJqbTZneDdpeWNyaGVmNnR2a3F2M3Z6ZAAKc2Vzc2lvbl9pZG0AAAAocWZnNmh6eW5pcnRzcmFqcmFmczV3Z2Fibmc0dWsyN3RtZWw1NGVxZm4GAEkfEnqHAWIAAVGA.jOpp23h5kbVYv1-oLyRsYlKKEMeLY4G5d3LGpHtxnjs" data-connect-token="SFMyNTY.g2gDdAAAAAFkAANwaWRYZAAlZDIydnJ5cmYtbGl2ZWJvb2tfc2VydmVyQHBkcHN0cmFja2luZwAAB8UAAAAAZDfRg24GAEkfEnqHAWIAAVGA.G-aGQIXA87QUfBUfM4PnM0Q2ZhDHVtprhgWwdwTSW28" data-iframe-local-port="8081" data-timeout-message="Not available" data-phx-component="19">
<div></div><input style="display: none;"></div>

03juan

03juan OP

I found the problem, it had to do with my having previously set up a netsh interface portproxy forwarding to 8080 in WSL that I forgot all about.

This was obviously interrupting the iframe creation in the livebook.

Deleting the forwarding solved the issue.

Apologies for the XY problem.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Hellowman
Hello everyone! I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++. Does anyone ...
New
yarrichar
I’m very new to Elixir, so sorry if this is a silly question: I am wondering what happens to the mailbox of a process when the machine i...
New
pragdave
How do I tell Hologram not to escape HTML when substituting into templates? {Textile.render(@product.long_description)} escapes the HTM...
New
Fl4m3Ph03n1x
Background When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error: * assembling mark...
New
mandar1045
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
rlipscombe
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
saleyn
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews