https://discord.cloudflare.com logo
Join Discord
Powered by
# functions
  • w

    Walshy | Pages

    11/22/2021, 4:02 PM
    and she's awesome
  • w

    Walshy | Pages

    11/22/2021, 4:02 PM
    she's the docs guru
  • k

    kavinplays

    11/22/2021, 4:02 PM
    that's nice
  • k

    kavinplays

    11/22/2021, 4:03 PM
    didn't think i would ever hear the phrase docs guru
  • w

    wonkrattle

    11/22/2021, 6:00 PM
    So has the other Walshy been retired long enough that like people don’t make the connection with your user name?
  • w

    wonkrattle

    11/22/2021, 6:01 PM
    Then again maybe only the Americans would know who that is, and everybody in here seems to be European
  • h

    HardAtWork

    11/22/2021, 6:02 PM
    👋 Clueless American here Which Walshy would that be?
  • w

    Walshy | Pages

    11/22/2021, 6:03 PM
    I've never had a single person me with them ¯\_(ツ)_/¯
  • w

    Walshy | Pages

    11/22/2021, 6:04 PM
    Some like pro player
  • w

    wonkrattle

    11/22/2021, 6:21 PM
    https://en.m.wikipedia.org/wiki/Walshy
  • w

    wonkrattle

    11/22/2021, 6:22 PM
    But he retired back in 2012 which was I think before your time
  • w

    Walshy | Pages

    11/22/2021, 6:31 PM
    before your time
  • w

    Walshy | Pages

    11/22/2021, 6:31 PM
    boi
  • w

    Walshy | Pages

    11/22/2021, 6:31 PM
    how young do you think I am
  • g

    Greg Brimble | Cloudflare Pages

    11/22/2021, 9:13 PM
    The latest wrangler alpha has fixes for Windows and for that pesky response null status code body bug. Give it a whirl with
    npm install wrangler@alpha
    🙂
  • j

    James

    11/22/2021, 9:18 PM
    Ooh nice 😄 That bug was definitely giving you some trouble on stream the other day 😅
  • g

    Greg Brimble | Cloudflare Pages

    11/22/2021, 9:18 PM
    Super frustrating, right?!
  • w

    wonkrattle

    11/22/2021, 9:31 PM
    By your memes I’d say university
  • w

    Walshy | Pages

    11/22/2021, 9:47 PM
    what memes?
  • e

    Erwin

    11/22/2021, 9:51 PM
    @User / @User => #812577823599755274
  • d

    dis01

    11/22/2021, 9:55 PM
    Compiles without error now and runs. The following works in Cloudflare Pages, but not locally (/query is ok, /query/a returns a 404): > /functions/query/[[pages]].js > > export async function onRequest(context) { > return new Response("Does not get here"); > } Changing functionsWorker.js routes from: > routePath: "/query:path*", to: > routePath: "/query/:path*", seems to get by the issue. Also the wrangler.toml file, while confirmed as getting parsed, does not seem to populate the context.env. > export async function onRequest(context) { > return new Response("env " + JSON.stringify(context.env) ); > } produces just: > env {"ASSETS":{}}
  • g

    Greg Brimble | Cloudflare Pages

    11/22/2021, 11:24 PM
    If you need more than 100k invocations per day when trying out the functions beta, please submit this Google Form! We'll gladly work with you to try raise it 🙂 https://docs.google.com/forms/d/e/1FAIpQLSe4N0BjIxu9AuissCAtYjXUovViXmdx2zopjzASaJi_SImJsw/viewform?usp=send_form
  • u

    0xDamian

    11/23/2021, 12:28 AM
    When using functions, I need the MongoDB nodejs library to access some data, do I just install it like usually and then use "npm install" in the deployment command? Is the connection persistent then or do I need to close it on each response?
  • w

    William | Chaos Management

    11/23/2021, 12:28 AM
    you cant use the node js mongo library in workers
  • w

    William | Chaos Management

    11/23/2021, 12:29 AM
    however, there is a way to use mongo atlas in workers
  • w

    William | Chaos Management

    11/23/2021, 12:30 AM
    https://www.mongodb.com/developer/how-to/cloudflare-worker-rest-api-realm/?tck=cloudflare should help with this
  • w

    William | Chaos Management

    11/23/2021, 12:34 AM
    if socket workers can be used as pages functions some deno mongo libraries should do the job
  • s

    Shyamin

    11/23/2021, 6:21 AM
    can someone please help me ?
  • s

    Shyamin

    11/23/2021, 6:22 AM
    https://discordapp.com/channels/595317990191398933/910978223968518144/912365340393107527 I'm struggling with this issue 😢
  • e

    Erwin

    11/23/2021, 6:27 AM
    This seems to be pretty weird indeed. The code itself looks just fine at first glance.. Maybe something goes wrong in the build step and the worker isn't executed? I would try to it with a simple Hello World function to see if the worker is executed at all..
1...161718...392Latest