ajgeiss0702
CDCloudflare Developers
•Created by ajgeiss0702 on 4/18/2024 in #workers-help
Exception with no exceptions
1 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 12/13/2023 in #workers-help
Simple image manipulation (darken) that works on workers
Hello,
I need to darken an image before running it through OCR, however I have not found a way to do this on workers. I was messing with it locally using the
sharp
package, however I realized this package is not compatable with workers.
I'm wanting to put it in an existing cron worker that puts the data into KV after. I already have it putting other data related to the image, so it makes sense to do it there too. I'm planning on just using google's OCR api since it seems to be the best.
Is there a similar one that does? The only thing I need to do is to darken the image so that OCR doesnt pick up on random details that I dont need (I just want it to read the big white text in the image)
Thank you in advance5 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 8/24/2023 in #pages-help
Something is caching my Pages site
8 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 7/18/2023 in #workers-help
Unable to create second WAE dataset (Workers Analytics Engine)
7 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 7/5/2023 in #pages-help
Requests suddenly having no headers
Hello,
I'm working on some functions that read a specific header, and I'm suddenly realizing that no headers are getting to my code. This was working fine earlier, and it's just suddenly not and I'm not sure what has changed
I should note I'm using SvelteKit, but afaik SvelteKit doesnt change the actual request object in any way
Here is the code I have in my
hooks.server.ts
that is working fine in dev and was working fine on CF too until about 2 hours ago
Then this appears in the tail:
And, of course, data.ua is null. I find it very odd that this was all working fine, then suddenly it's not.
Any ideas about what might be causing this?8 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 5/20/2023 in #general-help
Transferring domain from one cloudflare account to another
Hello
Someone bought a domain for a project I’m working on, and I would like to transfer it to my account (I’m aware I’ll most likely need to pay for another year)
How can I start that? From what I see, I can only transfer domains that already have nameservers pointing at cloudflare?
4 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 5/9/2023 in #workers-help
Email routing help
Hello,
I'm trying to create a worker that will recieve forwarded emails, extract some info from them, and contact my api using that info. I already have the code written to do that, however I am confused on how to get cloudflare to accept those emails and point them to the worker.
The documentation for email workers seems to be essentially non-existent. If anyone has any link to something I just couldn't find, please send that.
The "Using email triggers" button on the dashboard just goes to a page that talk about normal http routes (https://developers.cloudflare.com/workers/platform/triggers/routes/#matching-behavior). "mail" is not mentioned a single time on that page. How can I configure it? Do I just put an email in?
13 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 3/20/2023 in #pages-help
Cloudflare cache serving outdated page
Hello,
I've been running my site on cloudflare pages for a few months now, and recently I have started noticing an odd issue.
The cloudflare cache appears to sometimes cache the pages HTML file, and does not update when a new deploy happens.
Specifically, it caches the html page. The I deploy a new version of the site and the path to the stylesheet changes. Cloudflare still serves the old html with the link to the old stylesheet, but it does not exist anymore, leading to the page having messed up styles.
For now I've added a cache rule on the site to exclude the apex from caching. Is there a better way to do this?
9 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 3/6/2023 in #pages-help
Last step of deploying occasionally takes 2-3 minutes
Hello,
I've been messing with cloudflare pages for a while, and i've noticed that usually the last step (
Deploying to Cloudflare's global network
) takes ~5 seconds.
Recently with one of my sites, I've been noticing its been taking 2-3 minutes. Looking at the logs, it appears it fails and has to retry multiple times.
Here is the relevant logs:
https://pastebin.com/raw/jPVv14sa (this one took 1m 49s, but ive seen them up to 3 minutes before)
This isnt a massive deal as it does get there in the end, but it is annoying. Any idea what might be wrong?4 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 2/28/2023 in #pages-help
522 on non-custom domain (pages.dev)
2 replies
CDCloudflare Developers
•Created by ajgeiss0702 on 1/27/2023 in #pages-help
_redirect rules are ignored when using sveltekit
Hello,
I've set up the
_redirects
file for my domain to redirect some old URLs to new ones when i moved from php to sveltekit on cf a few months ago.
Initially I deployed it as static assets (using sveltekit's static adapter) however recently I wanted to start using some server-side logic so I changed to use the cloudflare pages adapter, which uses a _worker.js
I've noticed that the _redirect rules do not apply anymore. Is there any way around this (set _redirects to have a higher priority than the worker)5 replies