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

    Greg Brimble | Cloudflare Pages

    02/05/2021, 6:21 PM
    The Cloudflare Workers Discord Bot's
    /docs
    command has been fixed, and I've moved it to newly created (and unofficial) GitHub org: https://github.com/cloudflare-workers-community. If anyone has any Workers projects that they want to work on together, let me know, and I'll get you added to the organization 🙂
  • b

    berkant

    02/05/2021, 8:01 PM
    @User on strict mode and it still connects to a host with a revoked cert
  • b

    berkant

    02/05/2021, 8:01 PM
    ¯\_(ツ)_/¯
  • b

    berkant

    02/05/2021, 8:02 PM
    curious if this is the expected behavior 🤔
  • t

    theGagne

    02/05/2021, 8:05 PM
    Ah revoked, I was thinking like expired/invalid...
  • k

    kristian

    02/05/2021, 8:16 PM
    THIS IS SO AWESOME
  • k

    kristian

    02/05/2021, 8:17 PM
    > If anyone has any Workers projects that they want to work on together, let me know, and I'll get you added to the organization 🙂 take greg up on this offer!!!
  • w

    Walshy | Pages

    02/05/2021, 8:25 PM
    I love this community haha. So many people making great things
  • u

    413x801n

    02/06/2021, 12:20 AM
    Hello, I just noticed that the 'PATCH' method was not available when making a request with
    fetch()
    . Does anyone know if there is a way to use it or if it is not possible ? I get the following error:
    Copy code
    Uncaught (in response)
    TypeError: Invalid HTTP method string: patch
  • w

    Walshy | Pages

    02/06/2021, 12:23 AM
    Make it capitalised
  • w

    Walshy | Pages

    02/06/2021, 12:24 AM
    PATCH
    not
    patch
  • u

    413x801n

    02/06/2021, 12:40 AM
    Thank you, I admit that it seemed so simple to me that I didn't even try... It's weird that all methods work in lowercase except 'PATCH' ...
  • k

    kristian

    02/06/2021, 12:41 AM
    oh, this is g2k, maybe we can do something to make this easier to understand/fix
  • w

    Walshy | Pages

    02/06/2021, 12:43 AM
    Relevant GH issue:
  • d

    dalek_cos

    02/06/2021, 2:35 AM
    I know this might be out of topic (pls don’t ban me) but Is someone up for mock interviews? Pls?
  • s

    sdev

    02/06/2021, 3:01 AM
    https://github.com/cloudflare/kv-asset-handler/pull/133#issue-444552010 Will this PR get fixed and merged soon? The etag issue is a deal-breaker for most people to switch from another platform like Netlify to Cloudflare.
  • k

    kristian

    02/06/2021, 3:33 AM
    i would love to help get that along but i don't have any context, @User would you be interested in helping us get some test cases together or a writeup of some sort?
  • k

    kristian

    02/06/2021, 3:34 AM
    for context on your end, the person tagged in that from the cf team has since left so we're going to need to find some new ppl internally to maintain
  • s

    sdev

    02/06/2021, 3:39 AM
    Thank you for the reply @User I seem that right now when we use Cloudflare Worker as the origin, the response headers of any content except the images (png, jpeg) have no etag. Not sure if the etag gets removed from the Cloudflare itself or it's a bug from the Cloudflare Worker.
  • k

    kotsios

    02/06/2021, 2:22 PM
    umm all of my DNS records just stopped working
  • w

    Walshy | Pages

    02/06/2021, 2:27 PM
    This Discord is for workers. Make a post on https://community.cloudflare.com or make a support ticket from the dashboard
  • d

    davidbarratt

    02/06/2021, 3:57 PM
    Are there any environment variables in workers that are "always" available? (i.e.
    CF_ZONE_ID
    or anything like that?) or would I need to manually create those myself?
  • t

    theGagne

    02/06/2021, 6:16 PM
    There’s the incoming request object -> cf object: https://developers.cloudflare.com/workers/runtime-apis/request#incomingrequestcfproperties
  • t

    theGagne

    02/06/2021, 6:18 PM
    And you can set your own env variables; https://developers.cloudflare.com/workers/platform/environments#environment-variables
  • d

    davidbarratt

    02/06/2021, 6:58 PM
    ah. ok. I was hoping that would tell me the zone, but it doesn't. Thanks!
  • d

    davidbarratt

    02/06/2021, 6:58 PM
    FYI: I noticed that requests with the method
    BAN
    or
    PURGE
    don't make it to a worker. :/ but this isn't documented anywhere.
  • w

    Walshy | Pages

    02/06/2021, 6:59 PM
    Never heard of those methods before
  • w

    Walshy | Pages

    02/06/2021, 6:59 PM
    Where's the RFC for them?
  • t

    theGagne

    02/06/2021, 7:00 PM
    yeah purge hits the custom cf purge api
  • t

    theGagne

    02/06/2021, 7:00 PM
    a long time ago I remember some discussion around allowing workers to handle those
1...858687...2509Latest