https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • d

    dkfdkdodkms

    05/15/2023, 2:21 PM
    Copy code
    name = "worker"
    main = "src/index.ts"
    compatibility_date = "2023-05-02"
    
    route = "localhost/api/*"
    
    vars.env = "dev"
  • s

    Skye

    05/15/2023, 3:05 PM
    I've given it a go, can't reproduce at all 🤔
  • d

    dkfdkdodkms

    05/15/2023, 3:05 PM
    and you used the zip?
  • s

    Skye

    05/15/2023, 3:06 PM
    I copied your code, yeah
  • s

    Skye

    05/15/2023, 3:06 PM
    Uploading a 10mb file completely fine
  • d

    dkfdkdodkms

    05/15/2023, 3:06 PM
    windows or mac?
  • s

    Skye

    05/15/2023, 3:06 PM
    Windows
  • d

    dkfdkdodkms

    05/15/2023, 3:06 PM
    i will try windows
  • s

    Skye

    05/15/2023, 3:07 PM
    Oh wait, it's on multiple uploads where you have the issue
  • s

    Skye

    05/15/2023, 3:07 PM
    And I can repro it there..
  • s

    Skye

    05/15/2023, 3:07 PM
    Adding something like
    await request.text()
    to consume the body seems to get it to work fine though
  • s

    Skye

    05/15/2023, 3:07 PM
    You should make a miniflare issue for this
  • d

    dkfdkdodkms

    05/15/2023, 3:09 PM
    thanks. does cloudflare not support miniflare?
  • s

    Skye

    05/15/2023, 3:10 PM
    It does?
  • s

    Skye

    05/15/2023, 3:10 PM
    It's on the cloudflare org and everything haha
  • s

    Skye

    05/15/2023, 3:10 PM
    The main contributor is an employee
  • d

    Dani Foldi

    05/15/2023, 3:11 PM
    Could you try using
    wrangler dev --experimental-local
    to see if v3 also has this issue?
  • d

    dkfdkdodkms

    05/15/2023, 3:12 PM
    sure
  • d

    dkfdkdodkms

    05/15/2023, 3:17 PM
    with --experimental-local it just fails (does not stay in the pending state)
  • d

    dkfdkdodkms

    05/15/2023, 3:18 PM
    btw, with both --local and --experimental-local it fails on the first try with a 5mb file
  • d

    dkfdkdodkms

    05/15/2023, 3:18 PM
    (local shows pending)
  • s

    Skye

    05/15/2023, 3:18 PM
    The first try works fine for me with a 10mb file on local🤔
  • d

    dkfdkdodkms

    05/15/2023, 3:18 PM
    i will try on windows
  • d

    dkfdkdodkms

    05/15/2023, 3:22 PM
    hm, i tried in a windows virtual machine using edge, and i get the same behavior as on the mac using chrome
  • d

    dkfdkdodkms

    05/15/2023, 3:30 PM
    I must admit, I'm a bit surprised and taken aback that we're experiencing issues with such a fundamental functionality as file uploads during local development. We've always found that working offline is most practical for our development process, and this hiccup really puts a halt to our progress. When I initially recommended we incorporate Cloudflare technology into our workflow, I couldn't have foreseen an issue of this nature arising - after all, this isn't exactly an edge case. Now, it seems we're facing the possibility of significant development time being redirected to reworking our systems for a different service, which is quite disappointing.
  • d

    dkfdkdodkms

    05/15/2023, 3:34 PM
    if you're trying with a text file, perhaps try something less compressible such as a video file
  • s

    Skye

    05/15/2023, 3:36 PM
    I was using a pdf
  • s

    Skye

    05/15/2023, 3:37 PM
    Regardless - bugs can happen, and I'd say uploading a file while never reading it's body is an edge case
  • s

    Skye

    05/15/2023, 3:37 PM
    As I noted, if you read the body of the file in the request, it functions perfectly
  • d

    dkfdkdodkms

    05/15/2023, 3:37 PM
    if happens to me even if i read the body. i don't know why you're seeing slightly different behavior
1...246424652466...2509Latest