Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KV assets doesn't upload for Workers Sites #344

Closed
fcomrqz opened this issue Jan 30, 2022 · 6 comments
Closed

KV assets doesn't upload for Workers Sites #344

fcomrqz opened this issue Jan 30, 2022 · 6 comments

Comments

@fcomrqz
Copy link

fcomrqz commented Jan 30, 2022

I tried to use Workers Sites with your example on this repo wrangler2/packages/example-sites-app and doesn't works.

It fails to upload assets to KV for dev and publish commands.

Is pending work or you will deprecate Workers Sites in favor of Pages?

@fcomrqz
Copy link
Author

fcomrqz commented Jan 30, 2022

I get this email after trying to publish like ten times. 😳

Hi,

You have exceeded the daily Cloudflare Workers KV free tier limit of 1000 Workers KV list operations.

Requests to list values from the Workers KV API will return 429 errors and list operations within a Worker will fail until the limit resets at 2022-01-31 at 00:00:00 UTC.

You can restore service by upgrading your account (Mondraco) to Workers Bundled on the plans page. It has a minimum monthly billing amount of $5, which includes 10 million read operations and 1 million each of write, delete, and list operations.

Best,
The Cloudflare Workers Team

@threepointone
Copy link
Contributor

Extremely sorry about this. We had a bug with Sites that was fixed in #335, but wasn't released to the beta channel. I just did a beta release right now (0.0.15), so it should be resolved now.

We are going to be supporting Sites for a while longer, until we have a better solution (which will potentially be an ad hoc Pages solution, but we haven't made any plans concrete just yet. We don't expect to ship any new features for Sites. The implementation is close to feature complete (pending landing #338, and anything else we missed).

I'm going to close this issue, but let me know if you face any further problems.

@threepointone
Copy link
Contributor

Starting a discussion re: Sites and other options to serve static assets here - #346

@fcomrqz
Copy link
Author

fcomrqz commented Feb 4, 2022

Thank you for fixing the assets upload!

But I can't use wrangler2 with KV assets with ES Modules worker.

Is it possible?

I understand that should be working because you have the option documented on cloudflare/kv-asset-handler repo. Maybe I didn't understand.

@threepointone
Copy link
Contributor

That's surprising, it should work. I'll reopen this and investigate soon.

@threepointone threepointone reopened this Feb 5, 2022
@fcomrqz
Copy link
Author

fcomrqz commented Mar 10, 2022

With wrangler@0.0.18 it's working properly. 😁

@fcomrqz fcomrqz closed this as completed Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants