yeehow
yeehow
Explore posts from servers
CDCloudflare Developers
Created by yeehow on 5/6/2024 in #pages-help
Build Node/PNPM version errors
Worked when I put those in my wrangler file
[vars]
NODE_VERSION = "20.12.2"
PNPM_VERSION = "9.0.6"
[vars]
NODE_VERSION = "20.12.2"
PNPM_VERSION = "9.0.6"
Do variables set in the dash (outside of wrangler) get ignored during build?
5 replies
CDCloudflare Developers
Created by yeehow on 2/9/2024 in #d1-database
Is there an outage with the D1 API right
Wrangler migration errror:
$ pnpm wrangler d1 migrations apply DB
Migrations to be applied:
┌──────────────────────────┐
│ name │
├──────────────────────────┤
│ 0001_smart_slapstick.sql │
└──────────────────────────┘
✔ About to apply 1 migration(s)
Your database may not be available to serve requests during the migration, continue? … yes

✘ [ERROR] A request to the Cloudflare API (/accounts/53b0f0b6a2f098df4d15b72741f23ba1/d1/database/ee931da7-89af-4c66-9b49-c53c6012a501) failed.

Internal error: D1 API returned: (400 Bad Request) {"success":false,"errors":["Code:
invalid_enum_value ~ Path: action ~ Message: Invalid enum value. Expected 'query' | 'execute' |
'_tracing', received 'metadata'"]} [code: 7501]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
$ pnpm wrangler d1 migrations apply DB
Migrations to be applied:
┌──────────────────────────┐
│ name │
├──────────────────────────┤
│ 0001_smart_slapstick.sql │
└──────────────────────────┘
✔ About to apply 1 migration(s)
Your database may not be available to serve requests during the migration, continue? … yes

✘ [ERROR] A request to the Cloudflare API (/accounts/53b0f0b6a2f098df4d15b72741f23ba1/d1/database/ee931da7-89af-4c66-9b49-c53c6012a501) failed.

Internal error: D1 API returned: (400 Bad Request) {"success":false,"errors":["Code:
invalid_enum_value ~ Path: action ~ Message: Invalid enum value. Expected 'query' | 'execute' |
'_tracing', received 'metadata'"]} [code: 7501]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
3 replies
CDCloudflare Developers
Created by Amr Yasser on 1/31/2024 in #d1-database
Hello I need help with next-on-pages, I
Oh cool! That is much easier
7 replies
CDCloudflare Developers
Created by Amr Yasser on 1/31/2024 in #d1-database
Hello I need help with next-on-pages, I
So you did databaseName: "DB" ?
7 replies
CDCloudflare Developers
Created by Amr Yasser on 1/31/2024 in #d1-database
Hello I need help with next-on-pages, I
Yeah, whatever you have for database_id in your wrangler.toml
7 replies
CDCloudflare Developers
Created by Amr Yasser on 1/31/2024 in #d1-database
Hello I need help with next-on-pages, I
Was happening to me. I set databaseName in the binding to be the database ID instead of the name and it worked
7 replies