ppetrov

ppetrov OP

Hey guys,

I have just started to learn how to build my first live app and noticed something. I am on a Mac OSX 13 and all works great on Safari (Version 11.0.1 ), Chrome (84.0.4147) and Opera (69.0.3686) but on Firefox (79.0) for some reason the socket connection either drops or something happens. I was doing the Counter tutorial and played with it to just try doing it differently. However i go the same result. After some more clicks on the buttons Firefox just stops updating the values. Just so you know i have not done the GenServer implementation on that tutorial - just simple @topic updates over the wire.

First 9 of 9 Posts Switch mode

bartblast

bartblast

Creator of Hologram

Same problem here…

Exadra37

Exadra37

Does your console tab shows something similar to this?

My app works fine, except for the fact that shows that failures to connect to the socket:

Firefox can't establish a connection to the server at ws://localhost:2000

But like you in other browsers it works without any issue, like in Chrome:

Maybe someone else with more knowledge of Live View can shed some pointers?

bartblast

bartblast

Creator of Hologram

Yeah, it looks the same on desktop Firefox (Mac). But on iOS it is completely broken and LiveView can’t connect at all. I have no idea how to debug Firefox on iOS, though.

tcoopman

tcoopman

This seems like a bug? Maybe create a bug on github?

emoragaf

emoragaf

It would also be interesting to see if this only happens with liveview, or if phx channels also have issues

axelson

axelson

Scenic Core Team

I think I’ve seen this behavior too. But it seems to happen mostly on Dev. Don’t think I’ve seen it on prod.

Kabie

Kabie

What’s your LiveView’s version? I think phx.new use LiveView 0.12.x, try update to 0.14.x.

addstar

addstar

I just noticed I got this same issue with firefox but not on chrome. I’m on latest version of phoenix 1.7 and latest live view 0.18.16.

One thing I did notice though was that on firefox I get these 2 messages in devtools which don’t appear in chrome. There are no other warnings or errors in devtools or any in the elixir console.

phx-F0cLkPGu7S9EO0VE destroyed: the child has been removed from the parent -  undefined app.js:1397:15
 destroyed: the child has been removed from the parent -  undefined
cmo

cmo

Yes, it has started being weird on Firefox lately. Seems to happen when the code reloader triggers a reload. Gets itself in and endless loop.

— All posts loaded —

Where Next? Top

Trending in Chat/Questions Top

krisleech
Hey folks, I’ve been using Elixir for over a couple of years (phx, ecto, broadway, oban). For this kind of work you do not tend, in my e...
New
mhindujadheerajsudan
Hi, I’m Dheeraj Sudan from the UK. I’m a software developer and also run a business with my wife Meenu Hinduja. I’m interested in getting...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement