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

Minimal example fails with @astrojs/cloudflare #7775

Closed
1 task
TheOtterlord opened this issue Jul 23, 2023 · 1 comment · Fixed by #7777
Closed
1 task

Minimal example fails with @astrojs/cloudflare #7775

TheOtterlord opened this issue Jul 23, 2023 · 1 comment · Fixed by #7777
Assignees
Labels
- P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) feat: ssr Related to SSR (scope)

Comments

@TheOtterlord
Copy link
Member

TheOtterlord commented Jul 23, 2023

What version of astro are you using?

2.9.1

Are you using an SSR adapter? If so, which one?

Cloudflare

What package manager are you using?

pnpm

What operating system are you using?

Linux

What browser are you using?

Firefox

Describe the Bug

A minimal Astro project with the Cloudflare adapter installed, fails in production with this error:

  "exceptions": [
    {
      "name": "TypeError",
      "message": "Failed to execute 'encode' on 'TextEncoder': parameter 1 is not of type 'String'.",
      "timestamp": 1690145312706
    }
  ],

Steps to reproduce:

  1. Start a new Astro project.
  2. Add the Cloudflare adapter.
  3. Deploy to CF Pages.

What's the expected result?

Renders the minimal template page as expected.

Link to Minimal Reproducible Example

https://github.com/TheOtterlord/astro-cf-repro/tree/9b9f172858f3c967d914a26b42bd8350d4eb947f

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jul 23, 2023
@Princesseuh Princesseuh added - P4: important Violate documented behavior or significantly impacts performance (priority) feat: ssr Related to SSR (scope) pkg: cloudflare - P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) and removed needs triage Issue needs to be triaged - P4: important Violate documented behavior or significantly impacts performance (priority) labels Jul 23, 2023
@wolves
Copy link

wolves commented Jul 23, 2023

I am experiencing this as well and commented on an older related(closed) issue with my details as well.
#6081 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) feat: ssr Related to SSR (scope)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants