carter
Liveview upload failure of a hundred 2KB files
I am learning elixir/phoenix/liveview so please bear with me.
I tried uploading one hundred 2KB files to stress test the LiveView upload module and it failed. By fail I mean the @uploads socket is populated, tokens are generated for each file, long pause and then the page just reloads,
How do I find out what actually caused the failure? I know the failure happened before submit but there are no indication as to what actually crashed(?) the app. Is there a log I can enable or something I can do to learn more about situation?
Many thanks in advance.
Most Liked
carter
It seems to be similar (at least to me) to the issue below.
My sequence of events is like:-
- I press Submit to upload one hundred tiny files.
- phx-submit event is triggered
- Liveview upload starts working on preparing all the files for submission
- handle_event() that is suppose to handle the submit event timed-out since Liveview upload is taking longer than usual to prepare the 100 tiny files I selected
- Page refreshes since the event timed out
plausible?
carter
It seems this issue happened to other users as well. It wasn’t resolved in Liveview, user resorted to a workaround by using an external uploader… ![]()
https://github.com/phoenixframework/phoenix_live_view/issues/1464
https://github.com/phoenixframework/phoenix_live_view/pull/1471
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










