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

    sathoro

    02/18/2023, 3:52 PM
    or I mean the storage gets reset
  • h

    HardAtWork

    02/18/2023, 3:53 PM
    Depending on how long you wait
  • h

    HardAtWork

    02/18/2023, 3:53 PM
    Yes
  • s

    sathoro

    02/18/2023, 3:53 PM
    okay this doesn't work I can't run wrangler twice apparently
  • s

    sathoro

    02/18/2023, 3:53 PM
    Error: connect ECONNREFUSED 127.0.0.1:61914
  • h

    HardAtWork

    02/18/2023, 3:53 PM
    Not on the same code
  • s

    sathoro

    02/18/2023, 3:53 PM
    no not same code
  • s

    sathoro

    02/18/2023, 3:54 PM
    two terminals in two directories
  • s

    sathoro

    02/18/2023, 3:54 PM
    tried doing
    npx wrangler dev --local
  • s

    sathoro

    02/18/2023, 3:54 PM
    worked on first one but got the error above on the second one
  • s

    sathoro

    02/18/2023, 3:54 PM
  • s

    sathoro

    02/18/2023, 3:54 PM
    maybe I can use
    SCRIPT
    instead? but I am not sure where to even specify that
  • s

    sathoro

    02/18/2023, 3:57 PM
    okay got it working with
    npx wrangler dev --local --inspector-port 61915
  • s

    sathoro

    02/18/2023, 3:58 PM
    I feel like I run into areas where the docs need updating on a daily basis. I should probably be hired to update them at this point 😛
  • s

    sathoro

    02/18/2023, 3:58 PM
    if you run locally more than once it tries binding to the same debug ports and fails
  • s

    sathoro

    02/18/2023, 3:58 PM
    on Windows at least
  • s

    Skye

    02/18/2023, 4:00 PM
    It should realise it's taken and pick another one 🤔
  • s

    sathoro

    02/18/2023, 4:06 PM
    yeah that did happen for the port it bound the worker too but not the debugger
  • s

    sathoro

    02/18/2023, 4:07 PM
    hmm now when I fetch from the bound worker I get a 500
  • s

    sathoro

    02/18/2023, 4:07 PM
    it doesn't seem to connect to the worker itself
  • s

    sathoro

    02/18/2023, 4:07 PM
    oh wait one sec
  • s

    sathoro

    02/18/2023, 4:09 PM
    nvm that part was my fault. but the port issue is real 😛
  • s

    Skye

    02/18/2023, 4:27 PM
    Interesting, probably a good idea to make an issue for that if there's not one already
  • s

    sathoro

    02/18/2023, 4:29 PM
    > "services" fields are experimental and may change or break at any time.
  • s

    sathoro

    02/18/2023, 4:30 PM
    oh this is also not mentioned in the docs (at least on this page https://developers.cloudflare.com/workers/platform/bindings/about-service-bindings/)
  • k

    kian

    02/18/2023, 4:36 PM
    I have no idea why that warning is there
  • k

    kian

    02/18/2023, 4:36 PM
    Service Bindings have been GA for awhile now iirc
  • u

    Unsmart | Tech debt

    02/18/2023, 4:38 PM
    Where do you even see that text?
  • s

    sathoro

    02/18/2023, 4:38 PM
    wrangler
  • s

    sathoro

    02/18/2023, 4:57 PM
    and I think I just found another bug
1...228122822283...2509Latest