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

    Walshy | Pages

    05/01/2023, 8:05 PM
    but it takes a few months to get processed
  • w

    Walshy | Pages

    05/01/2023, 8:06 PM
    https://i.walshy.dev/1682971560.png#8f2417d5fbe9ff674ada41c1f6a60f31b0d6174805af92a2871b455620e53e23
  • w

    Walshy | Pages

    05/01/2023, 8:06 PM
    oh nevermind
  • u

    Unsmart | Tech debt

    05/01/2023, 8:06 PM
  • w

    Walshy | Pages

    05/01/2023, 8:06 PM
    yes it's expensive and takes time
  • w

    Walshy | Pages

    05/01/2023, 8:07 PM
    feels like we need a china network tag, it has come up quite a bit recently
  • b

    Burrito

    05/01/2023, 8:09 PM
    For a company not sure, but if you are filing for one as individual and especially non profit, ICP is just a two day process from what I've been told.
  • u

    Unsmart | Tech debt

    05/01/2023, 8:09 PM
    It says on that screenshot an individual ICP costs $20,000
  • u

    Unsmart | Tech debt

    05/01/2023, 8:09 PM
    And the business one is $40,000
  • w

    Walshy | Pages

    05/01/2023, 8:10 PM
    two day process? damn, nice. The docs I've seen internally say it'll take 3-4 months generally
  • b

    Burrito

    05/01/2023, 8:10 PM
    I highly doubt it, the person I've talked to is just a poor college student running his own blog.
  • u

    Unsmart | Tech debt

    05/01/2023, 8:10 PM
    Does he live in China? Might be different if you actually live in China
  • b

    Burrito

    05/01/2023, 8:11 PM
    Yeah they do, perhaps that's why.
  • u

    Unsmart | Tech debt

    05/01/2023, 8:11 PM
    Oh you cant even apply for ICP as individual if you dont live in china if this site is right
  • u

    Unsmart | Tech debt

    05/01/2023, 8:12 PM
    Oh wait nvm it says foreign passport holders can
  • u

    Unsmart | Tech debt

    05/01/2023, 8:13 PM
    You do have to learn to speak and read mandarin also
  • b

    Burrito

    05/01/2023, 8:14 PM
    Sounds fun.
  • u

    柴柴

    05/02/2023, 3:49 AM
    I used regular expressions to judge my data before, but I use the same data to test successfully in nodejs, but sometimes it can’t be used in cf worker. I have the same problem in github issuse, but it doesn’t seem to be resolved.
  • u

    柴柴

    05/02/2023, 3:58 AM
    /test-([0-9]{18,19})-([0-9a-z]{32})/g
  • u

    柴柴

    05/02/2023, 3:59 AM
    data :
    test-{discord-user-id}-{user-avatar-hash}
  • u

    柴柴

    05/02/2023, 4:00 AM
    I use this format, but it doesn’t match every time in cf worker
  • u

    柴柴

    05/02/2023, 4:03 AM
    language:js func: RegExp.test
  • i

    intheclouddan

    05/02/2023, 10:54 AM
    this is more of a general question, but once a worker is spun up and serving traffic, does it get destroyed after a certain number of requests or is it just a long lived process until traffic dies down?
  • h

    HardAtWork

    05/02/2023, 10:56 AM
    It is an extremely short-lived process, but there aren't any external guidelines to when the Worker is evicted.
  • i

    intheclouddan

    05/02/2023, 11:15 AM
    interesting, I thought a single worker persisted across multiple requests at least
  • h

    HardAtWork

    05/02/2023, 11:24 AM
    It can, but in many cases, it does not.
  • h

    HardAtWork

    05/02/2023, 11:24 AM
    As in, if you hit a Worker, wait a minute, and hit the same endpoint again, there is a decent chance it is a new Worker.
  • j

    jordan

    05/02/2023, 6:24 PM
    am i doing something wrong...? I can't seem to see the logs for this cloudflare worker through the dashboard:
    Copy code
    js
    async function handleRequest(event) {
      console.log({ test: `Hello world!` });
      return new Response(`Hello world!`);
    };
    
    addEventListener("fetch", event => {
      return event.respondWith(handleRequest(event))
    });
    Going to it responds with
    Hello world!
    as expected, viewing real-time does not.
  • j

    jordan

    05/02/2023, 6:24 PM
    I am able to see the requests via Metrics tab though.
  • j

    jordan

    05/02/2023, 6:29 PM
    Same behavior when using *.workers.dev URL directly, and a custom subdomain route
1...243024312432...2509Latest