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

    dave

    02/23/2023, 6:40 PM
    Is there a workaround I can do as an end user, or na?
  • s

    Skye

    02/23/2023, 6:40 PM
    nothing nice beyond deploying, then using quick edit to add an email handler in the same format at the end like the others
  • d

    dave

    02/23/2023, 6:47 PM
    kk ty, I think I'll just make a HTTP request to a route handler in the same worker code 😛
  • r

    rozenmd

    02/23/2023, 6:49 PM
    if someone makes a PR, I'd approve
  • s

    Skye

    02/23/2023, 6:50 PM
    I thought it came from generated code?
  • r

    rozenmd

    02/23/2023, 6:51 PM
    eh it does but I can fix that tomorrow
  • r

    rozenmd

    02/23/2023, 6:51 PM
    just if someone needs a fix before then, open a PR and we can get it into wrangler@beta
  • d

    dave

    02/23/2023, 7:36 PM
    all good, I can continue with my workaround until tomorrow 🙂
  • d

    dave

    02/23/2023, 8:31 PM
    Hang on, does fetch work?
  • d

    dave

    02/23/2023, 8:36 PM
    wat, I'm getting a 523 error code on my fetch
  • k

    kian

    02/23/2023, 8:37 PM
    what are you fetching
  • d

    dave

    02/23/2023, 8:37 PM
    crap I know why
  • k

    kian

    02/23/2023, 8:37 PM
    same-zone reqs on routes = dead
  • d

    dave

    02/23/2023, 8:37 PM
    yep
  • d

    dave

    02/23/2023, 8:37 PM
    you guessed it
  • k

    kian

    02/23/2023, 8:38 PM
    bind the worker to itself w/ a service binding
  • k

    kian

    02/23/2023, 8:38 PM
    (probably works)
  • k

    kian

    02/23/2023, 8:38 PM
    i wonder if you can call
    this.fetch
    lol
  • k

    kian

    02/23/2023, 8:38 PM
    probably not
  • d

    dave

    02/23/2023, 8:38 PM
    without a service binding?
  • k

    kian

    02/23/2023, 8:41 PM
    Copy code
    js
    export default {
      fetch() {
        return new Response('Hi!')
      },
      async scheduled(evt, env, ctx) {
        ctx.waitUntil(
          console.log(await (this.fetch()).text())
        )
      }
    }
  • k

    kian

    02/23/2023, 8:42 PM
  • k

    kian

    02/23/2023, 8:42 PM
    message has been deleted
  • d

    dave

    02/23/2023, 8:43 PM
    Copy code
    (error) Error: No separator character for anything
    I like how I have no idea where I'm even creating this log lol.
  • d

    dave

    02/23/2023, 8:44 PM
    this is from an EmailEvent though
  • d

    dave

    02/23/2023, 8:45 PM
    trying the recursive self binding thing first
  • k

    kian

    02/23/2023, 8:45 PM
    should work the same imho
  • d

    dave

    02/23/2023, 8:46 PM
    Copy code
    (debug) TypeError: Cannot read properties of undefined (reading 'fetch')
    ^ this was for the self bindingt hing
  • d

    dave

    02/23/2023, 8:46 PM
    it looks like it's filtered out of my config
  • d

    dave

    02/23/2023, 8:46 PM
    trying your other trick now 🙂
1...230123022303...2509Latest