Next.js Discord

Discord Forum

EDGE_FUNCTION_INVOCATION_FAILED - Medusa

Unanswered
Tiphiid wasp posted this in #help-forum
Open in Discord
Tiphiid waspOP
Hello, I get EDGE_FUNCTION_INVOCATION_FAILED when trying to deploy Medusa.

I also get
SyntaxError: Unexpected token 'e', "error code: 523" is not valid JSON
at (src/middleware.ts:21:24)
at (src/middleware.ts:94:20)
at (node_modules/next/dist/esm/server/web/adapter.js:157:15)
in the logs.

5 Replies

Asiatic Lion
it's an typeScript error. you can fix it by doing e:any in most cases
e:any
@Asiatic Lion it's an typeScript error. you can fix it by doing e:any in most cases
Tiphiid waspOP
where do i put it? can't find "e" in any of the lines referenced in the error
Asiatic Lion
it should be in file src/middleware.ts
@Asiatic Lion it should be in file src/middleware.ts
Tiphiid waspOP
yeah, there is no "e" in that file