SArthur

SArthur

Is it expected behavior for a LV to crash the browser if disconnected from the internet

Hi,
I am doing UAT for slow and broken connections. Using chrome throttling, when I set to disconnected the console starts throwing errors. Eventually the browser flips to black. It would be helpful to know if this is expected behavior for LVs in general, or if it’s something to do with my js.

I am using phx 1.7 and LV 0.20.1 and am ecstatic with the latest on both of these!

The error log looks like this:


phx-F5sUNo-0gXZqAQEE error: view crashed -  undefined
VM20:852 WebSocket connection to 'ws://localhost:4000/live/websocket?_csrf_token=...' failed: 
connect @ VM20:852
(anonymous) @ VM20:806
teardown @ VM20:936
(anonymous) @ VM20:806
(anonymous) @ VM20:236
VM20:852 WebSocket connection to 'ws://localhost:4000/live/websocket?_csrf_token=...' failed: 
connect @ VM20:852
(anonymous) @ VM20:806
(anonymous) @ VM20:958
waitForSocketClosed @ VM20:973
(anonymous) @ VM20:946
waitForBufferDone @ VM20:964
teardown @ VM20:938
(anonymous) @ VM20:806
(anonymous) @ VM20:236
VM20:852 WebSocket connection to 'ws://localhost:4000/live/websocket?_csrf_token=...' failed: 
connect @ VM20:852
(anonymous) @ VM20:806
(anonymous) @ VM20:958
waitForSocketClosed @ VM20:973
(anonymous) @ VM20:946
waitForBufferDone @ VM20:964
teardown @ VM20:938
(anonymous) @ VM20:806
(anonymous) @ VM20:236
VM20:852 WebSocket connection to 'ws://localhost:4000/live/websocket?

and around and around we go until we end with:

VM20:1265 phx-.... destroyed: the child has been removed from the parent -  undefined
VM20:1265 phx-.... timeout: received timeout while communicating with server. Falling back to hard refresh for recovery -  undefined
Navigated to chrome-error://chromewebdata/

Any ideas?
Thank you very much

Where Next?

Popular in Questions Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2, I would like to get: ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
yawaramin
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function: -dialyzer...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement