Skip to content

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

@PGimenez

Description

@PGimenez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions