nathaniel
nathaniel
CDCloudflare Developers
Created by nathaniel on 6/14/2024 in #general-help
Trouble with tunnels
I set up a barebones tunnel based on the "get started" page in the docs (https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/). I routed that through a domain on my account. All steps go fine until cloudflared tunnel run [name], which gives the following error:
2024/06/14 14:58:31 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
2024-06-14T18:58:31Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.227
2024/06/14 14:58:31 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
2024-06-14T18:58:31Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" connIndex=0 event=0 ip=198.41.192.227
This isn't in the troubleshooting section. I tried some different configurations, but I'm specifically interested in making a local webserver accessible via the public hostname. What should I do?
7 replies
CDCloudflare Developers
Created by nathaniel on 5/13/2024 in #pages-help
Tree-shaking for Pages Function
I've got a codebase tested with Vitest, exclusively using in-source testing (https://vitest.dev/guide/in-source.html). When building the front-end application, import.meta.vitest is defined as "undefined" so the tests get eliminated by the bundler. This doesn't seem to work with Pages Functions. When I import modules that have little source code but massive tests, it seems like the content of the tests gets included, cause the build will fail with the message Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large). Is there any way to tree-shake exported handlers? (My current workaround is adding a script to the build step that builds a second time with routes as entrypoints, then moves them to the functions directory. Would really like to avoid this.)
1 replies
CDCloudflare Developers
Created by nathaniel on 2/4/2024 in #workers-help
Error when uploading worker script via API
Hello, been trying to upload a worker module via the Cloudflare API, but I'm running into the following error message:
{
"code": 10021,
"message": "Uncaught TypeError: Main module name is not present in bundle.\n"
}
{
"code": 10021,
"message": "Uncaught TypeError: Main module name is not present in bundle.\n"
}
I've tried testing with the exact code from the API docs (https://developers.cloudflare.com/api/operations/worker-script-put-content) via javascript and curl, but both generate the same issue. I can upload workers in service worker format fine.
2 replies
CDCloudflare Developers
Created by nathaniel on 1/29/2024 in #general-help
Change email address
I created an account with my student email for personal use, but they've recently added some integration that makes me do a SSO-email-code thing every time I want to log in. When I went to change the email, I can no longer do so. Can my email change be grandfathered in, since I created the account before the SSO policy was added?
17 replies
CDCloudflare Developers
Created by nathaniel on 8/3/2023 in #pages-help
Internal error
Deployment ID: 5e1b343f-5a69-4e9a-bc2c-a6bd2bacf406
15:36:51.583 Validating asset output directory
15:36:52.269 Deploying your site to Cloudflare's global network...
15:36:53.614 Failed: an internal error occurred
15:36:53.614 Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 5e1b343f-5a69-4e9a-bc2c-a6bd2bacf406
15:36:51.583 Validating asset output directory
15:36:52.269 Deploying your site to Cloudflare's global network...
15:36:53.614 Failed: an internal error occurred
15:36:53.614 Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 5e1b343f-5a69-4e9a-bc2c-a6bd2bacf406
What happened?
2 replies