Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploader stops working after triggering autoreload by making changes to code #125

Open
PGimenez opened this issue Jan 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@PGimenez
Copy link
Member

It seems that the channel stops working after making changes to the code. That is, if I

  • Upload files, reload the page, and upload more files => everything works
  • Upload files, make some changes to the code, upload more files => I get a warning and files don't upload

The events are still triggered, but no files are uploaded. Here's a trace:

julia> using GenieFramework;Genie.loadapp();up(8004)┌ Info: 2024-01-11 15:00:13 File was uploaded:
│   fileuploads =
│    Dict{AbstractString, AbstractString} with 3 entries:"name"    => "Screenshot 2024-01-05 at 16.28.53.png""channel" => "XCIGZVBZSNCREKBQWIALWOLYVLCOZIRT""path"    => "/var/folders/h_/l8hxc31x73s97400gprpwnr80000gn/T/jl_8paBqBk3qP"
__model__.imgsrc[] = "/uploads/uNa2dTPyd8_U2NyZWVuc2hvdCAyMDI0LTAxLTA1IGF0IDE2LjI4LjUzLnBuZw=="
[ Info: 2024-01-11 15:00:13 uploaded
[ Info: 2024-01-11 15:00:13 finished
[ Info: 2024-01-11 15:00:18 Autoreloading
┌ Warning: 2024-01-11 15:00:24 Genie.WebChannels.ChannelNotFoundException("DGTLANQRJKSGROTTQTOIQGXTQUNRWRWT")
└ @ Genie.WebChannels ~/.julia/packages/Genie/DS14R/src/WebChannels.jl:251
┌ Warning: 2024-01-11 15:00:24 Genie.WebChannels.ChannelNotFoundException("DGTLANQRJKSGROTTQTOIQGXTQUNRWRWT")
└ @ Genie.WebChannels ~/.julia/packages/Genie/DS14R/src/WebChannels.jl:251
[ Info: 2024-01-11 15:00:24 uploaded
[ Info: 2024-01-11 15:00:24 finished
@PGimenez PGimenez added the bug Something isn't working label Jan 11, 2024
@hhaensel
Copy link
Member

Not sure why this happens. What kind of code changes were involved? Changes in the @app definition?
For some reason the channel is deleted, which could come from Revise itself or from some cache cleaning.

@essenciary
Copy link
Member

@hhaensel this is a 1y old issue - we should first confirm that it can be reproduced on latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants