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

    sathoro

    05/15/2023, 3:57 PM
    ah ok
  • s

    sathoro

    05/15/2023, 3:57 PM
    well, anyways, I think it is pretty safe to say this is likely due to your code since like you said this is pretty simply functionality so if this was a real problem it would have been discovered before
  • d

    dkfdkdodkms

    05/15/2023, 3:59 PM
    one would hope, let me refer to the code the example is based off. will take a few...
  • d

    dkfdkdodkms

    05/15/2023, 4:02 PM
    nope. i get the same issue when i try to send the body to an R2 bucket using put, which is how i first encountered the issue
  • d

    dkfdkdodkms

    05/15/2023, 4:02 PM
    i will update the test to include this
  • d

    dkfdkdodkms

    05/15/2023, 4:34 PM
    okay! it appears there is an issue with my transform stream. this was causing the body to not be consumed, which in turn caused the error or pending state. it just so happened, that in order to make my test as simple as possible, i left out any code to consume the body, which turns out to be the reason why my code was failing in the first place. it's still a bug, but not a big deal, and i am much relieved. thanks for your help @sathoro, @Skye, and @Chaika
  • s

    Skye

    05/15/2023, 4:36 PM
    Glad to hear
  • s

    Skye

    05/15/2023, 4:36 PM
    I'd still make a miniflare issue if you haven't already!
  • d

    dkfdkdodkms

    05/15/2023, 4:39 PM
    will do
  • d

    dkfdkdodkms

    05/15/2023, 4:46 PM
    https://github.com/cloudflare/miniflare/issues/577
  • k

    krondor

    05/15/2023, 9:07 PM
    So I know that you can pass requests to downstream services using bindings, but I'm wondering if the calling worker can wait on, read, and interpret a downstream response before either - returning something else - keep on doing other tasks For example, I want to be able to split up an auth service that talks to Firebase from my API. Is this supported in the workers framework?
  • z

    zegevlier

    05/15/2023, 9:10 PM
    Yup! That's totally possible with Service Bindings. It's basically the same as doing any other fetch request in workers.
  • n

    Neiki

    05/15/2023, 9:24 PM
    hey got 2 quick questions first i bought today the paid plan of workers and i did not "understand" 2 things first: her it says i have unlimited storage, but on the plan website under the KV section it says "1GB of data" is it now unlimted or 1gb also the same with the read and write operations the developers cloud says unlimited on the paid plan page it says 10 million and 1 million, or is it because "i pay as i need?" 🤔 and thats the "lowest" limites to just pay 5$ a month? 2, question: on the workers overview dashboard it says under "Billable duration = 2GB-sec" but i have monthly 400k gb secs "free" in my paid plan right? so i dont need to pay extra if that goes up because i have 400k as limit in my 5$ plan
  • n

    Neiki

    05/15/2023, 9:25 PM
    thanks for the help! 😊
  • z

    zegevlier

    05/15/2023, 9:32 PM
    1 It's unlimited storage, with 1gb included. More is $0,50/GB-month. For the other included amounts + pricing, see . 2 Yup, as long as you stay under what's included you don't have to pay anything extra
  • n

    Neiki

    05/15/2023, 9:33 PM
    thanks, really appreciate the help! was worth it to buy ❤️
  • d

    dave

    05/15/2023, 9:50 PM
    At what scales does it make sense to use R2 vs. D1? Right now, I'm storing just a unique ID and URL (that points to R2) in a D1 table. The URL contains a JSON object that can be up to ~64KB in size.
  • k

    krondor

    05/15/2023, 10:00 PM
    Awesome, thx !
  • d

    dave

    05/16/2023, 12:44 AM
    oh wait I don't even need D1 for most of this, I can do ListObjects
  • d

    dave

    05/16/2023, 12:47 AM
    Is there something like aws4fetch but for parsing the XML responses of ListObjects? https://developers.cloudflare.com/r2/examples/aws/aws4fetch/
  • d

    dave

    05/16/2023, 12:58 AM
    ahhh I can abuse HTMLRewriter for this!
  • c

    Cryo.

    05/16/2023, 1:28 AM
    does bundled requests reset every day?
  • u

    Unsmart | Tech debt

    05/16/2023, 1:29 AM
    Depends if you mean free plan or paid plan
  • c

    Cryo.

    05/16/2023, 1:29 AM
    free plan
  • u

    Unsmart | Tech debt

    05/16/2023, 1:29 AM
    Either way though details are here: https://developers.cloudflare.com/workers/platform/pricing/#workers
  • u

    Unsmart | Tech debt

    05/16/2023, 1:30 AM
    free is per day
  • c

    Cryo.

    05/16/2023, 1:30 AM
    so if somehow it reached 100 requests will cf just stop it?
  • c

    Cryo.

    05/16/2023, 1:30 AM
    100k*
  • u

    Unsmart | Tech debt

    05/16/2023, 1:31 AM
    Yes
  • u

    Unsmart | Tech debt

    05/16/2023, 1:31 AM
    You can set the fail mode to push through the request to your origin though
1...246624672468...2509Latest