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

    Brandon | TSE

    05/17/2023, 11:31 PM
    enjoy your time off 😄
  • w

    Walshy | Pages

    05/17/2023, 11:31 PM
  • w

    Walshy | Pages

    05/17/2023, 11:32 PM
    ty
  • d

    dave

    05/17/2023, 11:55 PM
    it's okay, we won't tell anyone what you say here.
  • b

    Brandon | TSE

    05/18/2023, 12:01 AM
    it's just so hard to admit...
  • a

    advaith

    05/18/2023, 12:19 AM
    looks like the new editor flags global variables (e.g. secrets) as an error
  • a

    advaith

    05/18/2023, 12:20 AM
    also it doesnt seem to be possible to test it

    https://cdn.discordapp.com/attachments/779390076219686943/1108549648114798775/image.pngâ–¾

  • a

    advaith

    05/18/2023, 12:25 AM
    if i type in the url and click send, nothing happens
  • a

    advaith

    05/18/2023, 12:25 AM
    oh if i go to the preview tab it says invalid url
  • a

    advaith

    05/18/2023, 12:27 AM
    hmm... if i go to the triggers tab, it says the cert is "inactive", although it works in prod 🤔
  • a

    advaith

    05/18/2023, 12:28 AM
    ok i turned on the "route" and now the testing works; i only had a custom domain enabled earlier
  • a

    advaith

    05/18/2023, 12:28 AM
    I had to turn off the workers.dev route bc it got ddosed in the past and I was charged for the usage
  • a

    advaith

    05/18/2023, 12:30 AM
    so now, after enabling the workers.dev route in dash: - testing works for the latest version - the workers.dev route itself still doesn't work ("There is nothing here yet") - the worker custom domain is running an older version of the workers ok those last 2 resolved themselves after some time
  • b

    bulk88

    05/18/2023, 5:09 AM
    new editor is really broken, 404 https://quick-edit.devprod.cloudflare.dev/quick-edit-extension/dist/nls.metadata.json https://quick-edit.devprod.cloudflare.dev/solarflare-theme/package.nls.json and maybe 2-3 other 404s on initial page load
  • b

    bulk88

    05/18/2023, 5:09 AM
    right side URL bar has "https://null/" instead of my domain
  • b

    bulk88

    05/18/2023, 5:13 AM
    entering my custom worker domain on right side preview, no visual result, native chrome dev tools shows https://daa52b11-de25-4182-a8e9-15f274daeef1.preview.devprod.cloudflare.dev/login?service=central (munge, dont try it) GET error 500
  • b

    bulk88

    05/18/2023, 5:13 AM
    Native to Chrome resp body {"error":"UnexpectedError","message":"Something went wrong"}
  • b

    bulk88

    05/18/2023, 5:17 AM
    my browser sends "x-cf-remote: https://" to https://GUID.rawhttp.devprod.cloudflare.dev huh
  • b

    bulk88

    05/18/2023, 5:21 AM
    I also turned off workers.dev route because of a DDOS wp/login/admin/*.php/logs*.zip/backup*.zip attack through workers.dev that had no WAF infront of it
  • b

    bulk88

    05/18/2023, 5:23 AM
    with the old editor, I now miss it actually, the domain in the URL of the preview was 100% ignored I think, it always hit the temp worker running on the bespoke Google Cloud faux-workers
  • b

    bulk88

    05/18/2023, 5:45 AM
    const jsonError = async (request, env, _ctx, middlewareCtx) => { try { return await middlewareCtx.next(request, env); } catch (e) { console.error(e); const error = reduceError(e); return fetch('https://format-errors.devprod.cloudflare.dev', { method: 'POST', body: JSON.stringify({ error, url: request.url, method: request.method, headers: Object.fromEntries(request.headers.entries()) }) }); } };
  • b

    bulk88

    05/18/2023, 5:46 AM
    worker.js:233 TypeError: console is not a function at handleRequest (worker.js:278:7) at worker.js:920:25 at __facade_sw_fetch__ (worker.js:171:31) at __facade_invokeChain__ (worker.js:25:12) at Object.next (worker.js:22:16) at jsonError (worker.js:231:34)
  • b

    bulk88

    05/18/2023, 5:46 AM
    CF Chromium Devtools plugin is throwing exceptions from itself...
  • c

    codej

    05/18/2023, 5:51 AM
    Hi,I just created a new worker, and I can't edit the code in the edit window, how can I fix it ?
  • c

    codej

    05/18/2023, 5:51 AM

    https://cdn.discordapp.com/attachments/779390076219686943/1108632878788640819/image.pngâ–¾

  • b

    bulk88

    05/18/2023, 5:52 AM
    the IDE is sentient

    https://cdn.discordapp.com/attachments/779390076219686943/1108633265847406672/cfweditor.pngâ–¾

  • b

    bulk88

    05/18/2023, 6:03 AM
    console is not a function, was my CFW code bug (exception thrown), but user's thrown exception, the IDE's UI, is poor, or surprising, #1 including the IDE's own CF written code in the stack trace, #2 its a nice attempt at a dev friendly, pretty UI but sensitive info, version of "Error 1101 worker threw exception"
  • b

    bulk88

    05/18/2023, 6:23 AM
    BTW, not quite baked CFW Quick Edit 2.0, was probably deployed same time, with that 1-~6?? hour worker deploy global outage yesterday, and the only useful thing we got out of it is, workers now have RAW TCP sockets to origin/any public IP🤪
  • j

    Jadugar_Jaggu

    05/18/2023, 6:28 AM
    The new workers browser editor theme is not working correctly, check here "length" is white which seems like a space, and it creates confusion, kindly fix it soon. However, I like the new interface and features of the browser editor

    https://cdn.discordapp.com/attachments/779390076219686943/1108642241892851722/image.pngâ–¾

  • n

    Neiki

    05/18/2023, 7:00 AM
    why are my cron triggers running always twice, it happend since yesterday afternoon i did nothing change

    https://cdn.discordapp.com/attachments/779390076219686943/1108650363319504926/image.pngâ–¾

    https://cdn.discordapp.com/attachments/779390076219686943/1108650363604701224/image.pngâ–¾

1...247524762477...2509Latest