Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

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...

Publishing issues using CI on private gitlab

I have successfully connected my private gitlab to cf pages using CI/CD, When I commit to my repo it pushed the changes to cf pages. But the pages site is showing an empty html page of my gitlab? Not the actual files or site I have made ...

Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values,...

"Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.\n at g.fetch (__next-on-pages-dist__/chunks/411.js:2:4658)\n at k.fetch (__next-on-pages-dist__/chunks/411.js:7:14205)\n at k.fetchJSON (__next-on-pages-dist__/chunks/411.js:7:14647)\n at get locationUrl [as locationUrl] (__next-on-pages-dist__/chunks/411.js:7:17751)\n at get locationUrl [as locationUrl] (__next-on-pages-dist__/chunks/411.js:7:15116)\n at Et.getLogInUrl (__next-on-pages-dist__/chunks/411.js:7:11828)\n at Et.authenticate (__next-on-pages-dist__/chunks/411.js:7:11080)\n at b.logIn (__next-on-pages-dist__/chunks/411.js:7:16697)\n at new Ur (__next-on-pages-dist__/chunks/568.js:348:52621)\n at get instance [as instance] (__next-on-pages-dist__/chunks/568.js:348:52735)"
"Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.\n at g.fetch (__next-on-pages-dist__/chunks/411.js:2:4658)\n at k.fetch (__next-on-pages-dist__/chunks/411.js:7:14205)\n at k.fetchJSON (__next-on-pages-dist__/chunks/411.js:7:14647)\n at get locationUrl [as locationUrl] (__next-on-pages-dist__/chunks/411.js:7:17751)\n at get locationUrl [as locationUrl] (__next-on-pages-dist__/chunks/411.js:7:15116)\n at Et.getLogInUrl (__next-on-pages-dist__/chunks/411.js:7:11828)\n at Et.authenticate (__next-on-pages-dist__/chunks/411.js:7:11080)\n at b.logIn (__next-on-pages-dist__/chunks/411.js:7:16697)\n at new Ur (__next-on-pages-dist__/chunks/568.js:348:52621)\n at get instance [as instance] (__next-on-pages-dist__/chunks/568.js:348:52735)"
Runs fine on local deployment with edge configurations, i'm not quite sure why i'm encountering this error with cloudflare pages....

â–² Module not found: Can't resolve 'antd/es/Input'

This is new error, I don't have this error in both local and old deployment. I tested locally with command
npx @cloudflare/next-on-pages@1
npx @cloudflare/next-on-pages@1
and no error at all. I deployed successfully yesterday without any error. But today this error pop up. To verify this, I create a dummy PR without any change but failed. Deployment id is 1aa06e10-6008-4222-8d1f-b3b924036662. Meanwhile yesterday, Deployment 54272269-fc9d-41c7-9472-a71abca2cf2f succeed....

A lot of errors in cloudflare pages

I have been getting a lot of errors in various places around the cloudflare pages ui. Usually it's around live tail, but just now I had it when trying to delete a project.

Sveltekit deploys /src folder

Super weird issue and not sure what is happening because I did not find any other posts. Basically when deploying my sveltekit app via github to cloudflare pages, the /src folder is apparently also deployed. (screenshot from chrome) How do I stop that from happening?...

`rss.xml` Error 1101

trying to access: https://baae285e.test-ef9.pages.dev/rss.xml But get strange issue, can someone help? ``` {...

Gitlab connection: List of repositories is empty

For some reason, the list of repository from Gitlab is empy, and I cannot proceed. Anyone having the same problem and found a solution? My colleage also had the same exact problem....

A 500 error without exception log stream

Hi, I am facing an exception without explicit error messages in logstream. Do you have any idea to find the culprit? Thanks My code snippet is: ``` import jwt from '@tsndr/cloudflare-worker-jwt'; import { google } from "worker-auth-providers";...

How to use deploy functions with a svelte project using wrangler?

I have a simple Svelte project built and deployed to CF Pages with Wrangler. Since then, I've added a /functions/helloworld.js and after I redeploy the code and try to hit /helloworld I get a 404. When I look in the dashboard I also don't see any mention of helloworld

How to enable logpush for Pages?

Since Cloudflare Pages does not support wrangler.toml config files, how does one enable logpush for Pages? The only documented way of configuring logpush for workers (https://developers.cloudflare.com/workers/platform/logpush/#enable-logging-on-your-worker) is to either configure the wrangler.toml file with logpush = true or to configure it via multipart upload, neither of which are applicable to Cloudflare Pages....

nextjs

Hi, I am deploying a nextjs project with /functions to Pages. You can have a preview here at https://q.li2niu.com . But all the apis under /functions return 404 (e.g. https://q.li2niu.com/api/v1/auth/github/redirect )like this post said https://discord.com/channels/595317990191398933/1116287310179352646 . Sadly, the solution is not useful for me. File arch. ...

Custom Pages Domain stuck on "Inactive (Requires DNS Setup)"

Hi, I've set up a pages site, and have just hit the button on our DNS to CNAME to our pages.dev domain and being the transfer process. I've done this successfully before with our main domain, and am now just replicating what I did before with our sister site. Using nslookup.io or whatsmydns.net to check propagation I am seeing everything updated worldwide - I only ever set TTL at 30 seconds with our DNS providers so problems like this are minimal. This includes when checking against cloudflare's own records on nslookup.io - everything is showing that I have the CNAME set up appropriately, and I click on the link it shows and I get to our pages site....

Deployment to pages fails without error message

Trying to deploy a pages project. If I deploy only 4 functions, the deployment works. If I deploy 5 functions, it fails. I've deployed a few times with different functions, it looks like its not about which functions I deploy, but about how many, it always breaks at 5+. More problematic is the lack of any error. Deployment with wrangler completes without issues. The dashboard just states a failure, but no message is to be found anywhere....

HoneyComb Plugin Configuration

I'm trying to implement the honeycomb plugin, I am following this guide: https://developers.cloudflare.com/pages/platform/functions/plugins/honeycomb/ But, I can't get anything to be reflected in HoneyComb. I´m using the Honeycomb API_KEY directly. ...

Can Pages Function Middleware change incoming request?

Hello team, nice community here! This is my first question in the discord and its very simple: Can you rewrite (not redirect) the destination URL from inside a function middleware in pages? The docs on middleware shows how you can intercept request destination handler and call some other tasks before it, or after it, but I would like to take that incoming request and rewrite it to a [slug] directory similar to the following NestJS middleware setup:...

dns restarting autoamtic

When i add new record dns firewall & record what i remove max 5-24h everthing get back and my new record what i save is gone!

issues in using cloudflare/pages-action. The direct upload is not working and throws some error

The github actions throws some error while direct uploading to the cloudflare pages. An issue has been created in the github, Please take a look into it https://github.com/cloudflare/pages-action/issues/96...

wrangler pages dev --no-bundle causing EPERM: operation not permitted, scandir

Getting EPERM issue on my mac, while running pages dev. Without the no-bundle option things work. ``` $ npx wrangler pages dev --no-bundle --compatibility-date=2023-05-18 -- npm run dev:cmd Running npm run dev:cmd......

wrangler pages dev --no-bundle

Does wrangler page dev support no-bundle option? Doesn't look like it does, just want to make sure. I have some fairly complex workers that I run esbuild on before outputting them into the functions folder. The extra buildstep afterwards seems unecessary. Any suggestions?...