Skip to content

webhook-notifier 400 error #150

Closed

Description

@ZebTheWizard

Description

I cannot access the settings page for webhook-notifier. what else do I need to do?

Steps to reproduce

  1. install blog template
  2. run bun run dev

Environment

  • emdash version: 0.1.0
  • webhook-notifier version: 0.1.0
  • node version: 22.13.1
  • runtime: cloudflare workers
  • os: macOS

Logs / error output

This pops up on the settings page:

Plugin responded with 400: {"error":{"code":"ROUTE_ERROR","message":"Failed to start Worker:\nUncaught SyntaxError: Unexpected token '{'\n at sandbox-plugin.js:9:12"}}

This pops up in the terminal even if I'm not visiting the settings page:

 15:25:36 [ERROR] [vite] EmDash: Sandboxed plugin route error: Error: Failed to start Worker:
Uncaught SyntaxError: Unexpected token '{'
  at sandbox-plugin.js:9:12
    at CloudflareSandboxedPlugin.withWallTimeLimit (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/@emdash-cms_cloudflare_sandbox.js?v=48c575ae:839:14)
    at EmDashRuntime2.handleSandboxedRoute (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/emdash_middleware.js?v=48c575ae:1410:15)
    at Module.handleRequest (/Users/finn/code/emdash/hello-theme/node_modules/emdash/src/astro/routes/api/plugins/[pluginId]/[...path].ts?v=48c575ae:68:17)
    at renderEndpoint (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/chunk-BMNZU5YI.js?v=48c575ae:46:18)
    at lastNext (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/chunk-AHTG6H44.js?v=48c575ae:2011:23)
    at /Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/emdash_middleware.js?v=48c575ae:1647:29
    at callMiddleware (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/chunk-AHTG6H44.js?v=48c575ae:1034:10)
    at _RenderContext.render (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/chunk-AHTG6H44.js?v=48c575ae:2058:73)
    at DevApp.render (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/chunk-AHTG6H44.js?v=48c575ae:2968:20)
    at Object.handle [as fetch] (/Users/finn/code/emdash/hello-theme/node_modules/.vite/deps_ssr/@astrojs_cloudflare_entrypoints_server.js?v=48c575ae:208:20)

Activity

  1. added
    bug
    on Apr 3, 2026
  2. luozhouyang commented on Apr 3, 2026

    @luozhouyang

    It seems that webhook-notifier plugin exports *.ts files rather than javascript files.

  3. ZebTheWizard commented on Apr 3, 2026

    @ZebTheWizard
    Author

    It seems that webhook-notifier plugin exports *.ts files rather than javascript files.

    I don't think that matters. The forms plugin also only exports *.ts files and that plugin partially works.

  4. thecodedad commented on Apr 7, 2026

    @thecodedad

    I'm experiencing this as well.

  5. added 2 commits that reference this issue on Apr 7, 2026
    65fa02b
    91706a5
  6. added a commit that references this issue on Apr 7, 2026
    91e31fb
  7. added a commit that references this issue on Apr 13, 2026
    a71eb7e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions