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

    kian

    03/06/2023, 1:31 AM
    maybe
  • d

    dave

    03/06/2023, 1:32 AM
    That would be annoying. Time to check…
  • k

    kian

    03/06/2023, 1:34 AM
    As soon as we’re outside of workerd all I can do is guess haha
  • k

    kian

    03/06/2023, 1:35 AM
    I suspect it will be since scrubbing is done for Trace Events (like tail) and I’d assume Logpush uses those
  • d

    dave

    03/06/2023, 1:37 AM
    oh so just adding a single non-hex char should do it?
  • d

    dave

    03/06/2023, 1:38 AM
    ah yep
  • k

    kian

    03/06/2023, 1:38 AM
  • k

    kian

    03/06/2023, 1:38 AM
  • d

    dave

    03/06/2023, 1:39 AM
    now, which letter do I add, and prefix or append it..
  • d

    dave

    03/06/2023, 1:39 AM
    I'm leaning towards
    -x
    at the end, seems the easiest to splice off when grepping
  • e

    Erisa | Support Engineer

    03/06/2023, 1:43 AM
    myreallycooltokenpleasedontcensor-
  • d

    djt

    03/06/2023, 2:20 AM
    hey guys, i'm having a bit of trouble, i have a ReadableStream with no length given in the header and I want to save it to R2 - how can I do that?
  • k

    kian

    03/06/2023, 2:22 AM
    It would need buffering so you can get the size upfront
  • k

    kian

    03/06/2023, 2:22 AM
    or using multipart uploads where each part is the same size except the last
  • d

    djt

    03/06/2023, 2:23 AM
    i have tried a few methods to get it completely buffered before making the put call to R2, but haven't been able to make it work
  • d

    djt

    03/06/2023, 2:23 AM
    would appreciate any direction on this that could be given
  • d

    djt

    03/06/2023, 4:31 AM
    Ok, so further to the above, I can push it our to an arrayBuffer, but it seems to never download the whole file (filesize is different with each request)
  • d

    djt

    03/06/2023, 4:34 AM
    What would cause the fetch call to truncate a streaming request and return?
  • a

    Advany

    03/06/2023, 12:37 PM
    So I have a worker, that does a fetch and returns the response... When I run it as a worker (so npx wrangler dev) it works fine. When I run it as a pages project it gives me [pages:err] POST /user/hi: TypeError: Invalid state: ReadableStream is locked when I return the response...
  • a

    Advany

    03/06/2023, 12:49 PM
    works fine when published... only cli is not working?
  • r

    Rph

    03/06/2023, 1:24 PM
    If I had a worker that - set a header - did something cpu intensive or slept for 10 ms - set another header Would there be 2 separate TCP packets for the 2 separate headers, or would the response begin being sent after all headers have been set and body begins?
  • x

    xetic

    03/06/2023, 1:36 PM
    Nothing would be returned until you returned your response with headers and body
  • r

    Rph

    03/06/2023, 1:37 PM
    I see, thanks
  • e

    Erisa | Support Engineer

    03/06/2023, 1:43 PM
    Yeah workers return a response in one go, you can stream the incoming request body (or one of an outgoing fetch) but not aware of a way to stream the response like that
  • a

    Alisson Acioli

    03/06/2023, 1:52 PM
    Good morning guys. I had a problem a while ago where I had a worker that made a call to a second worker through the custom link I created for that second worker and it seems that cloudflare did not allow it. When I put the .dev link it allows. Does anyone know if it really has a lock or was it a code error?
  • k

    kian

    03/06/2023, 2:00 PM
    Workers can't make same-zone requests to other Workers
  • k

    kian

    03/06/2023, 2:00 PM
    You'll want to use custom domains instead of routes if you want that to work
  • k

    kian

    03/06/2023, 2:01 PM
  • e

    Erisa | Support Engineer

    03/06/2023, 2:04 PM
    (Though note that doesn't work either unless you have a compatibility date of before 2022-04-05 due to a current known issue )
  • w

    Walshy | Pages

    03/06/2023, 2:05 PM
    service bindings!
1...232223232324...2509Latest