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

    Freddo

    03/03/2023, 6:56 PM
    Hi - when deploying a worker using a service binding set up in wrangler, I'm getting this warning:
    Copy code
    ▲ [WARNING] Processing wrangler.toml configuration:
    
        - "services" fields are experimental and may change or break at any time.
    I can't see anything in the docs about this being experimental - is this something I should worry about?
  • f

    Freddo

    03/03/2023, 6:57 PM
    maybe a better question for the #799437470004412476 channel 🤔
  • k

    kian

    03/03/2023, 6:57 PM
    I don't really know why that warning is there
  • k

    kian

    03/03/2023, 6:57 PM
    They're GA - https://blog.cloudflare.com/service-bindings-ga/
  • f

    Freddo

    03/03/2023, 7:01 PM
    yeah I guess it's either an old warning that hasnt been removed from wrangler, or the wrangler set up isn't set in stone yet
  • s

    Skye

    03/03/2023, 7:01 PM
    It's specifically because they're not done in wrangler yet
  • s

    Skye

    03/03/2023, 7:01 PM
    they only work in local mode, and it's still a little flaky sometimes
  • f

    Freddo

    03/03/2023, 7:01 PM
    it worked fine in prod for me
  • s

    Skye

    03/03/2023, 7:01 PM
    I'm talking about dev
  • s

    spejik

    03/03/2023, 7:34 PM
    Hey guys, I'm currently getting this error while trying to setup custom scss builds:
    No loader is configured for ".scss" files: src/styles/index.scss
    I have a esbuild config that looks like this. When I run the file with node directly it builds, but when I put that same node call in
    build.command
    I get that error. Is it possible that wrangler is still trying to build it with its own esbuild?
  • s

    Skye

    03/03/2023, 7:36 PM
    What's your
    main
    value in your wrangler.toml?
  • s

    Skye

    03/03/2023, 7:37 PM
    My guess is that it's
    src/index.tsx
    , not
    dist/out.js
  • s

    spejik

    03/03/2023, 7:38 PM
    I just changed it, still the same error :/
  • s

    Skye

    03/03/2023, 7:39 PM
    Can you look at the out.js file and be sure that it's not trying to import an scss file?
  • s

    spejik

    03/03/2023, 7:39 PM
    Nope, its all inlined
  • s

    spejik

    03/03/2023, 7:39 PM
    Is there some way to maybe clear wrangler cache?
  • s

    Skye

    03/03/2023, 7:40 PM
    Theres no cache for this
  • s

    Skye

    03/03/2023, 7:40 PM
    Is there a repo I can look at?
  • s

    spejik

    03/03/2023, 7:41 PM
    Oh, I solved it by removing the index.tsx path in the npm script, forgot about that, sorry
  • s

    spejik

    03/03/2023, 7:41 PM
    Well it works now, thanks!
  • s

    Skye

    03/03/2023, 7:42 PM
    Great 🙂
  • d

    dave

    03/04/2023, 4:57 AM
    Does a Worker connecting to remote Web Socket server ever count as "sleeping" while we wait for data? https://developers.cloudflare.com/workers/learning/using-websockets/#writing-a-websocket-client
  • c

    computeronix

    03/04/2023, 1:10 PM
    I setup cloudflare cache api in my worker code while using R2 storage. In the code I can see the file being cached and retrieved but I noticed there was no report of it in the Cache Dashboard for my domain. In addition there is no header for CF-Cache-Status that says hit for example or any status showing. Is this expected? Update: disregard i got it 😄
  • g

    GuillaumeLakano

    03/04/2023, 4:52 PM
    When we uses Services Bindings, someone answered me here that there is no extra cost ( 1 counted request on the worker X that calling worker Y ). So, what happen if the 1st worker is bundled but call a unbounded worker or a DO ? Is the cost is adjusted to 1 DO / unbound worker rather 1 worker, or is it count like 1 worker + 1 unbound/DO worker ?
  • s

    Skye

    03/04/2023, 4:57 PM
    I would imagine it counts as 1 bundled & 1 unbound
  • g

    GuillaumeLakano

    03/04/2023, 5:06 PM
    If this is the reality, this add complexity for developers and seems useless. Imagine I have a 1st worker bundled (B), that need to call an worker unbundled (U). If the pricing is based on 2 requests rather than one in this scenario because it's not the same kind of worker, this mean many developers will just call a 3rd unbundled (A) worker in front of them like this: (A) => (B) => (U), and this will be cost 1 request of unbound.
  • s

    Skye

    03/04/2023, 5:07 PM
    You'd still have the bundled worker initially? That's going to cost exactly the same
  • g

    GuillaumeLakano

    03/04/2023, 5:07 PM
    For me, CF should still count 1 request (still limited to the 50ms) but if the sub-request call a DO/unboundled worker, that should increase the cost to 1 request of an unbound, rather than 1 request of a bundled
  • s

    Skye

    03/04/2023, 5:07 PM
    One unbound worker calling another will be billed as one joint duration - that's nothing to do with bundled workers
  • g

    GuillaumeLakano

    03/04/2023, 5:08 PM
    are you sure? Because the duration of CPU time doesn't count the fetched subresources in therory
1...231723182319...2509Latest