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

    Erisa | Support Engineer

    05/06/2023, 12:06 AM
    if you use those you should be fine
  • e

    Erisa | Support Engineer

    05/06/2023, 12:06 AM
    (its the same ASN, but different ranges)
  • e

    Erisa | Support Engineer

    05/06/2023, 12:07 AM
    (also you can get these programmatically at https://api.cloudflare.com/client/v4/ips )
  • d

    dave

    05/06/2023, 12:07 AM
    realllly? Lemme check 😛
  • e

    Erisa | Support Engineer

    05/06/2023, 12:08 AM
    some of the warp IPs are very close neighbouring ranges, but I can tell you for sure it wont be within those
  • d

    dave

    05/06/2023, 12:09 AM
    ahhhhhhh
  • d

    dave

    05/06/2023, 12:09 AM
    yep
  • d

    dave

    05/06/2023, 12:09 AM
    very close
  • e

    Erisa | Support Engineer

    05/06/2023, 12:10 AM
    The IP list is only the list of IPs that will be making requests on behalf of proxied traffic, doesnt count the ones used for other purposes :P
  • j

    jessec

    05/06/2023, 12:32 AM
    Is there a response code that will terminate the response from a worker or give no response at all? I swear I remember doing this a long time ago with a status code, but I can't find anything on it.
  • j

    jessec

    05/06/2023, 12:33 AM
    Actually.. that might have been nginx
  • a

    Alisson Acioli

    05/06/2023, 12:37 AM
    Guys, Is it possible to use MongoDB in Workers? Connect directly to the drive?
  • k

    kian

    05/06/2023, 12:38 AM
    You're thinking of
    499
    but that has no effect on CF
  • j

    jessec

    05/06/2023, 12:39 AM
    Ah, 444 was what I used, but close to the same thing.
  • j

    jessec

    05/06/2023, 12:40 AM
    I don't suppose there's a way to do the same in a worker?
  • k

    kian

    05/06/2023, 12:42 AM
    Nope
  • k

    kian

    05/06/2023, 12:42 AM
    It'll always return a Response. Either you do it or in the event of a Worker exception, Cloudflare shows an error page
  • j

    jessec

    05/06/2023, 12:43 AM
    Yeah the error page is what I'm getting, was trying to not have a default route that just responds to everything possible that I don't handle.
  • j

    jessec

    05/06/2023, 12:43 AM
    suppose I'll do teapot
  • r

    rd

    05/06/2023, 12:50 AM
    Is it possible to use a http proxy for fetch or axios on a worker function?
  • k

    kian

    05/06/2023, 12:56 AM
    Not particularly
  • k

    kian

    05/06/2023, 12:56 AM
    Like you could have a proxy that works with
    https://proxy.example.com?url=google.com
    but not one that you connect to over IP
  • c

    Cyb3r-Jok3

    05/06/2023, 1:07 AM
    https://www.mongodb.com/developer/products/atlas/cloudflare-worker-rest-api/ ?
  • c

    Cyb3r-Jok3

    05/06/2023, 1:07 AM
    You need to use the REST API as workers don't support making socket connections
  • s

    sathoro

    05/06/2023, 8:15 AM
    use something like ScrapingBee
  • r

    rd

    05/06/2023, 7:42 PM
    thanks
  • n

    Neiki

    05/06/2023, 9:11 PM
    Hey so i have an question about worker limits i dont really understood, as to my knowledge i can run an worker as long as the client is connected right? f.ex i want or need to run it for 30s but then i saw the CPU limit of 10ms what does that mean? can somebody tell me that. F.ex use case: i upload an file and that needs to be processed for 20s with cloudflare workers will this work with free plan?
  • k

    kian

    05/06/2023, 9:15 PM
    It means you can use 10ms of CPU - so it depends what your processing time means
  • k

    kian

    05/06/2023, 9:15 PM
    Awaiting a HTTP response for 10 seconds doesn't use CPU, as an example, so that's fine on the free plan.
  • n

    Neiki

    05/06/2023, 9:17 PM
    okay let me know if i got it right my worker would do this: i fetch an api that needs 14 seconds to response = is okay i upload an file to an api that takes 10 seconds = not okay because CPU limit right?
1...244124422443...2509Latest