Chore: "We can't find the internet ... Attempting to reconnect"
nelsonic opened this issue ยท 1 comments
Pretty much every time I attempt to view the app on Fly: https://imgai.fly.dev I get the LiveView
connection Flash:
Todo
- Can we track how many people are seeing this error? ๐ญ (i.e. keep a log of connections and disconnections ...)
- Please time-box
T25m
of Googling and comment with your findings ... ๐
- Please time-box
- Figure out if we can
pause
the instance after a specific amount of time e.g.T10m
If people
are seeing this error we need to revisit what we used to do on Heroku to wake-up a dormant app. ๐ด
See: https://github.com/dwyl/ping
Basically we would trigger the app waking up when someone was viewing the README.md
by including a GIF
in it ...
Related to: #6 increasing the machine size will incur more cost. ๐ธ
if we run the app for a minimum of T10m
each time it will only cost us $0.01
(one cent) per run with a cap at $41/month
.
Note
The reason we are investigating this for this stand-alone app is that our mvp
uses LiveView
๐ฑ
and we need know when people
are seeing the "We can't find the internet" Error ... ๐
We could shift our findings/write-up elsewhere in terms of documentation e.g:
https://github.com/dwyl/phoenix-liveview-counter-tutorial
But for now we just need to capture what we learn as comments in this thread.
So if you inspect, you have 2 phx-disconnected and render twice. If you remove the 1st line <.flash_group flash={@flash} />
from "page_live.html.heex", it should be ok.