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

    Walshy | Pages

    04/10/2023, 4:59 PM
    Yeah best you'll get there is Python to JS or to WASN
  • p

    Ponjimon

    04/10/2023, 9:22 PM
    ever found a solution for this?
  • c

    charl

    04/10/2023, 10:43 PM
    Is the Rendering API still closed beta?
  • c

    charl

    04/10/2023, 10:45 PM
    E.g. pupeteer
  • j

    James

    04/10/2023, 10:55 PM
    Currently yep
  • d

    dangered wolf

    04/11/2023, 2:08 AM
    Does Workers Analytics Engine cost anything additional?
  • u

    Unsmart | Tech debt

    04/11/2023, 2:14 AM
    Its in beta right now and completely free. But it will eventually be a paid addon
  • k

    Klont

    04/11/2023, 9:51 AM
    What IP adress should I use in this place?
  • k

    Klont

    04/11/2023, 9:52 AM
    I asked my IP to my domain provider (Godaddy) and they gave an IP to me but when I try to check it from myself, it shows a different IP adress.
  • k

    Klont

    04/11/2023, 9:53 AM
    If sharing IP is not a problem and safe, I can share.
  • a

    ark

    04/11/2023, 11:30 AM
    Does someone have any experience using Workers with AWS services such as DynamoDB/Kinesis ? A simple use case would be pushing data to a Kinesis stream from a Worker. I'm considering using CW or Lambda for this. I know that data transfer from Internet to AWS does not have any cost, but does this setup make sense (cost wise)?
  • r

    Ryder Cragie

    04/11/2023, 11:35 AM
    Do SSL certificates created by Workers not get removed when deleting the Worker/Custom Domain?
  • g

    Glare

    04/11/2023, 12:53 PM
    Has anyone made a worker before that will pull zone stats for a domain in the last 30 days to get the analytics? Trying to figure out the best way to approach that.
  • h

    HardAtWork

    04/11/2023, 12:53 PM
    Probably the GraphQL API
  • g

    Glare

    04/11/2023, 12:55 PM
    Ty sir/ma'am.
  • g

    Glare

    04/11/2023, 1:00 PM
    As far as GraphQL clients go for working with workers, anyone have a personal preference? I see graphiql is good but a little outdated. Was wondering how Altair vs Insomnia is.
  • h

    HardAtWork

    04/11/2023, 1:00 PM
    What kind of stats are you looking for specifically
  • g

    Glare

    04/11/2023, 1:01 PM
    So I have the pro plan and was thinking of potentially pulling 30 day statistics for specific paths
  • g

    Glare

    04/11/2023, 1:02 PM
    Or if it's easier I could just pull general 30-day request on a domain
  • g

    Glare

    04/11/2023, 1:02 PM
    You know those websites that show like served X amount of requests in the past X amount of time, I basically want to add that in but I want to use a worker to pull that data so I can serve it from the API and not expose anything, since my project is open source I would rather have a back-end worker that pulls the data that I didn't expose if that makes any sense.
  • z

    zarg129

    04/12/2023, 9:41 AM
    Is it any way to send "cf-connecting-ip" to my server from worker? page -> worker(custom-domain) -> server Now I'm getting 2a06:98c0:3600::103
  • k

    kian

    04/12/2023, 9:43 AM
    If your server's URL is a different zone to your Worker then it'll always be overwritten to that IP
  • m

    McAndze

    04/12/2023, 11:05 AM
    I'm getting
    Parser error: The memory limit has been exceeded.
    when using HTMLRewriter on DOM's where an element has a large data-attribute (2.8MB). Is there any way I could make the parser ignore such an element? (e.g. using a selector)
  • k

    kian

    04/12/2023, 11:18 AM
    It’s just CSS selectors at the end of the day so you get a lot of flexibility with which elements HTMLRewriter will run on
  • k

    kian

    04/12/2023, 11:18 AM
    What does the element you want to ignore look like as far as HTML?
  • m

    McAndze

    04/12/2023, 11:21 AM
    Well this particular element is not part of the selectors, but I assume the rewriter will still need to parse everything, and thus the error occurs. So I'm at a bit of a loss on how to fix this issue, since we can't change the HTML on the origin server currently
  • m

    McAndze

    04/12/2023, 11:22 AM
    It's just an empty div, but one of the data attributes contains a large JSON object.
  • k

    kian

    04/12/2023, 11:23 AM
    Yeah, so you can just tell it to not run if it’s a div with an attribute of “data-whatever”
  • m

    McAndze

    04/12/2023, 11:32 AM
    Thanks, but I'm unsure how that would fix it since I'm assuming it will still parse every element on the page. My only selector right now is [data-worker-mode] which is an attribute that is not present on this problematic element, so as said it's already not being targeted by any selectors. The only reason I've been able to pinpoint this exact element being problematic is by forcing the server to not render it while testing which made the issue go away.
  • h

    HardAtWork

    04/12/2023, 11:33 AM
    Maybe an issue with
    HTMLRewriter
    loading the attribute as a chunk into memory?
1...238523862387...2509Latest