# \#edge\_functions

**URL:** https://answers.netlify.com/tag/edge-functions/196.md

[Latest](https://answers.netlify.com/latest.md) · [Categories](https://answers.netlify.com/categories.md) · [Tags](https://answers.netlify.com/tags.md)

---

## [Support { fetch } for Netlify Edge Functions](https://answers.netlify.com/t/support-fetch-for-netlify-edge-functions/170521)

<div class="topic-metadata">

**Author:** [@franciscop](https://answers.netlify.com/u/franciscop)\
**Replies:** 0\
**Last updated:** [September 23, 2026, 9:14am UTC](https://answers.netlify.com/t/support-fetch-for-netlify-edge-functions/170521 "2026-09-23T09:14:40Z")

</div>

Edge Functions only accept a function as the default export. Please also accept a Fetchable one, an object or class instance with a fetch(request, ...extra) method: // works today export default async (request, context)…

---

## [All edge function invocations crash on eu-central - Next.js 16 site fully down](https://answers.netlify.com/t/all-edge-function-invocations-crash-on-eu-central-next-js-16-site-fully-down/166832)

<div class="topic-metadata">

**Author:** [@alext162](https://answers.netlify.com/u/alext162)\
**Replies:** 0\
**Last updated:** [August 13, 2026, 7:57am UTC](https://answers.netlify.com/t/all-edge-function-invocations-crash-on-eu-central-next-js-16-site-fully-down/166832 "2026-08-13T07:57:33Z")

</div>

Site: finbound.org (site ID b8c7a11e-5b16-425c-93ef-0ea9ecbe6498), also finbound.netlify.app. Next.js 16 via @netlify/plugin-nextjs@5.14.5. Functions region lhr. Since ~06:00 UTC today, every request routed through the …

---

## [Proxy fetch requests from the edge](https://answers.netlify.com/t/proxy-fetch-requests-from-the-edge/107043)

<div class="topic-metadata">

**Author:** [@ffaubert](https://answers.netlify.com/u/ffaubert)\
**Replies:** 11\
**Last updated:** [August 7, 2026, 1:34am UTC](https://answers.netlify.com/t/proxy-fetch-requests-from-the-edge/107043 "2026-08-07T01:34:30Z")

</div>

I need to make fetch requests from an edge function, but i need programatic control at run time over using an http proxy. This works fine in the serverless functions where i can use node-fetch and https-proxy-agent, but …

---

## [Transient 501 "internal error" on Netlify Blobs writes from Edge Functions - size-independent, ~5% of attempts](https://answers.netlify.com/t/transient-501-internal-error-on-netlify-blobs-writes-from-edge-functions-size-independent-5-of-attempts/165573)

<div class="topic-metadata">

**Author:** [@Ron\_Clukey](https://answers.netlify.com/u/Ron_Clukey)\
**Replies:** 2\
**Last updated:** [July 22, 2026, 4:41pm UTC](https://answers.netlify.com/t/transient-501-internal-error-on-netlify-blobs-writes-from-edge-functions-size-independent-5-of-attempts/165573 "2026-07-22T16:41:27Z")

</div>

Site: tripdippity-app.netlify.app Where: Edge Function (supply-enumerate) writing JSON to a site-wide Blobs store via @netlify/blobs v10.x (getStore + setJSON) What happens: A percentage of Blobs writes from our edge f…

---

## [Slow setJSON latency under concurrent load 1-2s PUTs to Netlify Blobs](https://answers.netlify.com/t/slow-setjson-latency-under-concurrent-load-1-2s-puts-to-netlify-blobs/165592)

<div class="topic-metadata">

**Author:** [@manishrawat4u](https://answers.netlify.com/u/manishrawat4u)\
**Replies:** 0\
**Last updated:** [July 22, 2026, 3:49am UTC](https://answers.netlify.com/t/slow-setjson-latency-under-concurrent-load-1-2s-puts-to-netlify-blobs/165592 "2026-07-22T03:49:56Z")

</div>

We use Netlify Blobs (@netlify/blobs via Edge Functions) to persist JSON results in a request/response pattern. A background worker calls PUT /api/requests/{id}/result on our Edge Function, which stores the payload via b…

---

## [What is the gateway/edge request timeout that returns the 504 to the client](https://answers.netlify.com/t/what-is-the-gateway-edge-request-timeout-that-returns-the-504-to-the-client/163935)

<div class="topic-metadata">

**Author:** [@Steve\_Holmes](https://answers.netlify.com/u/Steve_Holmes)\
**Replies:** 0\
**Last updated:** [June 17, 2026, 5:44pm UTC](https://answers.netlify.com/t/what-is-the-gateway-edge-request-timeout-that-returns-the-504-to-the-client/163935 "2026-06-17T17:44:10Z")

</div>

Site: simplifiedpersonnel-hub (Pro). My analyze function completes successfully at ~45s (visible in function logs, not terminated), but the client receives a 504 well before the function returns. What is the gateway/edge…

---

## [Edge function deployed but never executes at runtime (stuck after credit overage + Pro upgrade)](https://answers.netlify.com/t/edge-function-deployed-but-never-executes-at-runtime-stuck-after-credit-overage-pro-upgrade/163259)

<div class="topic-metadata">

**Author:** [@Jonathan\_Fauc](https://answers.netlify.com/u/Jonathan_Fauc)\
**Replies:** 0\
**Last updated:** [June 4, 2026, 7:49am UTC](https://answers.netlify.com/t/edge-function-deployed-but-never-executes-at-runtime-stuck-after-credit-overage-pro-upgrade/163259 "2026-06-04T07:49:33Z")

</div>

Hi all, Looking for any insight on a frustrating edge function issue on Pro plan. \*\*Project:\*\* cozy-melomakarona-eaed6e (www.one-online.fr) \*\*Plan:\*\* Pro (5,985 credits available) \*\*Support ticket:\*\* #1045691 (opened…

---

## ["This Edge Function has Crashed" - intermittent errors](https://answers.netlify.com/t/this-edge-function-has-crashed-intermittent-errors/128018)

<div class="topic-metadata">

**Author:** [@indie](https://answers.netlify.com/u/indie)\
**Replies:** 8\
**Last updated:** [January 29, 2026, 7:27pm UTC](https://answers.netlify.com/t/this-edge-function-has-crashed-intermittent-errors/128018 "2026-01-29T19:27:57Z")

</div>

We’ve been getting this intermittent error shown to users (ecommerce website) for a year now - it doesn’t happen often which is why we haven’t looked into it. We’re also not sure why it’s caused. The edge function logs s…

---

## [Purpose of deno.lock generated file](https://answers.netlify.com/t/purpose-of-deno-lock-generated-file/141715)

<div class="topic-metadata">

**Author:** [@matus](https://answers.netlify.com/u/matus)\
**Replies:** 3\
**Last updated:** [December 11, 2025, 1:26pm UTC](https://answers.netlify.com/t/purpose-of-deno-lock-generated-file/141715 "2025-12-11T13:26:58Z")

</div>

What is the purpose of deno.lock file, which gets generated locally? Should I push it to github repo or should it be ignored?

---

## [excludePath not matching in netlify.toml for edge function](https://answers.netlify.com/t/excludepath-not-matching-in-netlify-toml-for-edge-function/157983)

<div class="topic-metadata">

**Author:** [@ryantownsend](https://answers.netlify.com/u/ryantownsend)\
**Replies:** 4\
**Last updated:** [December 9, 2025, 7:38pm UTC](https://answers.netlify.com/t/excludepath-not-matching-in-netlify-toml-for-edge-function/157983 "2025-12-09T19:38:34Z")

</div>

I’m using an edge function to rewrite HTML responses to pre-built DCZ-compressed versions (ZSTD compression dictionaries), it’s all working except I can’t seem to negate functions using excludePath in the netlify.toml fi…

---

## [Cannot (re)deploy my site today. build failed could not copy file](https://answers.netlify.com/t/cannot-re-deploy-my-site-today-build-failed-could-not-copy-file/158383)

<div class="topic-metadata">

**Author:** [@pketh](https://answers.netlify.com/u/pketh)\
**Replies:** 6\
**Last updated:** [December 8, 2025, 10:09pm UTC](https://answers.netlify.com/t/cannot-re-deploy-my-site-today-build-failed-could-not-copy-file/158383 "2025-12-08T22:09:35Z")

</div>

Project name: kinopio-client build log/screenshot included below I can’t build my project today, the same project was building without issue. Even when I try and redeploy the currently running deployment (with and with…

---

## [Authenticated Middleware on Netlify: Missing Piece?](https://answers.netlify.com/t/authenticated-middleware-on-netlify-missing-piece/157811)

<div class="topic-metadata">

**Author:** [@sidati](https://answers.netlify.com/u/sidati)\
**Replies:** 1\
**Last updated:** [November 18, 2025, 6:36am UTC](https://answers.netlify.com/t/authenticated-middleware-on-netlify-missing-piece/157811 "2025-11-18T06:36:13Z")

</div>

Hey there, I’m trying to use an Edge Function as middleware for a specific path. Let’s say I have: Function A: /api/create-post.ts Function B: /api/delete-post.ts Both of these need an authentication layer. I’m usin…

---

## [How to connect mongodb in edge-functions(deno runtime environment)?](https://answers.netlify.com/t/how-to-connect-mongodb-in-edge-functions-deno-runtime-environment/105622)

<div class="topic-metadata">

**Author:** [@Zevin](https://answers.netlify.com/u/Zevin)\
**Replies:** 18\
**Last updated:** [November 2, 2025, 9:23am UTC](https://answers.netlify.com/t/how-to-connect-mongodb-in-edge-functions-deno-runtime-environment/105622 "2025-11-02T09:23:28Z")

</div>

INFO downloading deno plugin “deno\_mongo” from “https://github.com/manyuanrong/deno\_mongo/releases/download/v0.6.0/deno\_mongo.dll” PermissionDenied: Requires write access to “.deno\_plugins”, run again with the --allow-w…

---

## [Removing support for import assertions in Edge Functions](https://answers.netlify.com/t/removing-support-for-import-assertions-in-edge-functions/157295)

<div class="topic-metadata">

**Author:** [@eduardoboucas](https://answers.netlify.com/u/eduardoboucas)\
**Replies:** 0\
**Last updated:** [October 22, 2025, 9:00am UTC](https://answers.netlify.com/t/removing-support-for-import-assertions-in-edge-functions/157295 "2025-10-22T09:00:37Z")

</div>

Support for import assertions in Edge Functions is being deprecated. This syntax originated from an early standards proposal that had only been implemented in Chrome, Node.js and Deno. Because it was available on Deno, i…

---

## [Any updates on Deno 2 or alternative runtimes for Edge Functions?](https://answers.netlify.com/t/any-updates-on-deno-2-or-alternative-runtimes-for-edge-functions/156630)

<div class="topic-metadata">

**Author:** [@sidati](https://answers.netlify.com/u/sidati)\
**Replies:** 0\
**Last updated:** [October 4, 2025, 8:17am UTC](https://answers.netlify.com/t/any-updates-on-deno-2-or-alternative-runtimes-for-edge-functions/156630 "2025-10-04T08:17:21Z")

</div>

Hi Netlify team, I’m trying to get some functionalities working on Edge Functions, but the current Deno 1 runtime feels quite limited and outdated. It lacks filesystem access, MongoDB client support, and Prisma compatib…

---

## [Edge Function using Anthropic / Claude API returning 401 status code](https://answers.netlify.com/t/edge-function-using-anthropic-claude-api-returning-401-status-code/156287)

<div class="topic-metadata">

**Author:** [@mrn](https://answers.netlify.com/u/mrn)\
**Replies:** 1\
**Last updated:** [September 18, 2025, 3:59am UTC](https://answers.netlify.com/t/edge-function-using-anthropic-claude-api-returning-401-status-code/156287 "2025-09-18T03:59:29Z")

</div>

I’m encountering an error with my edge function that I’m struggling to fix. I am using the @anthropic-ai\*\*/sdk\*\* / Claude API and it works successfully on my localhost with a “netlify dev” run. However, once I deploy t…

---

## [MiddlewareRequest is not working](https://answers.netlify.com/t/middlewarerequest-is-not-working/155955)

<div class="topic-metadata">

**Author:** [@Vincent\_Li](https://answers.netlify.com/u/Vincent_Li)\
**Replies:** 1\
**Last updated:** [September 2, 2025, 1:25pm UTC](https://answers.netlify.com/t/middlewarerequest-is-not-working/155955 "2025-09-02T13:25:46Z")

</div>

Site: https://my-app-latest-middleware.netlify.app/ Repo: https://github.com/vincentism/my-app-latest-middleware Error description: When using MiddlewareRequest, got this error, while the NextRequest works fine Error…

---

## [New error while "Setting up the Edge Functions environment"](https://answers.netlify.com/t/new-error-while-setting-up-the-edge-functions-environment/155899)

<div class="topic-metadata">

**Author:** [@bigbear9538](https://answers.netlify.com/u/bigbear9538)\
**Replies:** 1\
**Last updated:** [August 30, 2025, 11:35pm UTC](https://answers.netlify.com/t/new-error-while-setting-up-the-edge-functions-environment/155899 "2025-08-30T23:35:40Z")

</div>

New problem with Netlify Edge Functions netlify site name bbt-portal.netlify.app Full build log (netlify build and netlify dev): Mint-Aspire-TC-895:~/Documents/code/bbt-portal$ netlify --version netlify-cli/23.4.2 li…

---

## [MCP server example for edge functions?](https://answers.netlify.com/t/mcp-server-example-for-edge-functions/151492)

<div class="topic-metadata">

**Author:** [@ffaubert](https://answers.netlify.com/u/ffaubert)\
**Replies:** 4\
**Last updated:** [August 26, 2025, 8:01pm UTC](https://answers.netlify.com/t/mcp-server-example-for-edge-functions/151492 "2025-08-26T20:01:28Z")

</div>

Hello! I saw this great article you published for deploying MCP servers on Netlify: Building MCPs with Netlify | Netlify Developers. This article covers serverless functions, but I was wondering if it is possible to bui…

---

## [Deploy stage gets caught when uploading](https://answers.netlify.com/t/deploy-stage-gets-caught-when-uploading/155522)

<div class="topic-metadata">

**Author:** [@ethantoews](https://answers.netlify.com/u/ethantoews)\
**Replies:** 1\
**Last updated:** [August 12, 2025, 7:16pm UTC](https://answers.netlify.com/t/deploy-stage-gets-caught-when-uploading/155522 "2025-08-12T19:16:33Z")

</div>

I’m having an issue with our build, everything seems to build fine and get to the deploy stage normally, but recently I’m getting a “Failed to create function: Insufficient storage” error within the deploy stage of my bu…

---

## [Python Functions Not Found Despite Correct Configuration (Build Fails Silently)](https://answers.netlify.com/t/python-functions-not-found-despite-correct-configuration-build-fails-silently/155508)

<div class="topic-metadata">

**Author:** [@Rohan1](https://answers.netlify.com/u/Rohan1)\
**Replies:** 1\
**Last updated:** [August 12, 2025, 6:11pm UTC](https://answers.netlify.com/t/python-functions-not-found-despite-correct-configuration-build-fails-silently/155508 "2025-08-12T18:11:43Z")

</div>

Hello Netlify Team, I am experiencing a persistent issue where my Python functions are not being found during the build process. The build log consistently says “No Functions were found,” even though my configuration ap…

---

## [Edge Runtime Function Error](https://answers.netlify.com/t/edge-runtime-function-error/155501)

<div class="topic-metadata">

**Author:** [@Governor](https://answers.netlify.com/u/Governor)\
**Replies:** 7\
**Last updated:** [August 11, 2025, 6:51pm UTC](https://answers.netlify.com/t/edge-runtime-function-error/155501 "2025-08-11T18:51:36Z")

</div>

My code was working fine for weeks, up until hours ago. I’ve made no new updates. Randomly the site displays in black “Internal Server Error”, there’s no browser logs or function logs (blank), our debug logs are gone as …

---

## [Error - Request ID: 01K156RPX9FSEEVAQZP59B709S](https://answers.netlify.com/t/error-request-id-01k156rpx9fseevaqzp59b709s/155069)

<div class="topic-metadata">

**Author:** [@AswinAsok](https://answers.netlify.com/u/AswinAsok)\
**Replies:** 0\
**Last updated:** [July 27, 2025, 7:10am UTC](https://answers.netlify.com/t/error-request-id-01k156rpx9fseevaqzp59b709s/155069 "2025-07-27T07:10:47Z")

</div>

Site Name: Development: devmakemypass.netlify.app Hey Netlify Team, Today I ran into a strange issue where both my sites suddenly started showing just a black screen with this message: Error - Request ID: 01K15B2821…

---

## [TypeError - Class extends value #\<Object\> is not a constructor or null](https://answers.netlify.com/t/typeerror-class-extends-value-object-is-not-a-constructor-or-null/79762)

<div class="topic-metadata">

**Author:** [@Chun-gu](https://answers.netlify.com/u/Chun-gu)\
**Replies:** 6\
**Last updated:** [July 23, 2025, 10:25pm UTC](https://answers.netlify.com/t/typeerror-class-extends-value-object-is-not-a-constructor-or-null/79762 "2025-07-23T22:25:42Z")

</div>

netlify site name: https://liontime-api-redirect.netlify.app/ repository: GitHub - Chun-gu/liontime-api-redirect: liontime API의 프록시 서버 I built a proxy server with netlify function. It worked well at local developmen…

---

## [Unable to disable edge function](https://answers.netlify.com/t/unable-to-disable-edge-function/154064)

<div class="topic-metadata">

**Author:** [@swrobel](https://answers.netlify.com/u/swrobel)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 7:38pm UTC](https://answers.netlify.com/t/unable-to-disable-edge-function/154064 "2025-07-10T19:38:50Z")

</div>

I’m unable to disable an edge function that I had running on my site. I commented it out in my netlify.toml, but it still seems to run - it’s the only edge function we have configured in our app, and it’s still showing i…

---

## [Unavailable Netlify variable in edge-functions during build](https://answers.netlify.com/t/unavailable-netlify-variable-in-edge-functions-during-build/150408)

<div class="topic-metadata">

**Author:** [@n-ce](https://answers.netlify.com/u/n-ce)\
**Replies:** 2\
**Last updated:** [July 7, 2025, 11:02am UTC](https://answers.netlify.com/t/unavailable-netlify-variable-in-edge-functions-during-build/150408 "2025-07-07T11:02:09Z")

</div>

main error: error TS2304: Cannot find name ‘Netlify’ Edge functions for reference: ytify/netlify/edge-functions at main · n-ce/ytify · GitHub Build was fine on June 2. New builds from yesterday are failing with this l…

---

## [Edge Functions with Blazor WASM](https://answers.netlify.com/t/edge-functions-with-blazor-wasm/153488)

<div class="topic-metadata">

**Author:** [@Xorcist](https://answers.netlify.com/u/Xorcist)\
**Replies:** 3\
**Last updated:** [July 5, 2025, 7:32pm UTC](https://answers.netlify.com/t/edge-functions-with-blazor-wasm/153488 "2025-07-05T19:32:27Z")

</div>

So I’m attempting to implement a very simple edge function for my Blazor WASM site. However the edge function does not seem to be working under my deployment preview at: https://app.netlify.com/projects/system-crash/dep…

---

## [Netlify CLI cannot run Deno in VSCode Container](https://answers.netlify.com/t/netlify-cli-cannot-run-deno-in-vscode-container/151580)

<div class="topic-metadata">

**Author:** [@stephendbuchanan](https://answers.netlify.com/u/stephendbuchanan)\
**Replies:** 1\
**Last updated:** [June 18, 2025, 2:25pm UTC](https://answers.netlify.com/t/netlify-cli-cannot-run-deno-in-vscode-container/151580 "2025-06-18T14:25:11Z")

</div>

I am trying to use an existing project (which works perfectly) using Netlify CLI (with Vite + SvelteKit) in a VSCode Development Container. This all works quite well, up till the point where my Edge Functions need to be …

---

## [Netlify edge-bundler broke over the weekend](https://answers.netlify.com/t/netlify-edge-bundler-broke-over-the-weekend/149307)

<div class="topic-metadata">

**Author:** [@ffaubert](https://answers.netlify.com/u/ffaubert)\
**Replies:** 2\
**Last updated:** [May 28, 2025, 4:31pm UTC](https://answers.netlify.com/t/netlify-edge-bundler-broke-over-the-weekend/149307 "2025-05-28T16:31:09Z")

</div>

There was a change to the edge bundler over the weekend which has broken my ability to deploy my sites. This is quickly escalating into a very serious business issue for us, as we need to deploy. I have been emailing wit…

---

## [502 Error After Deploying Edge Functions to Block Bots in Next.js on Netlify](https://answers.netlify.com/t/502-error-after-deploying-edge-functions-to-block-bots-in-next-js-on-netlify/147637)

<div class="topic-metadata">

**Author:** [@dpdeployapp](https://answers.netlify.com/u/dpdeployapp)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 1:08pm UTC](https://answers.netlify.com/t/502-error-after-deploying-edge-functions-to-block-bots-in-next-js-on-netlify/147637 "2025-05-12T13:08:41Z")

</div>

We are having an issue configuring edge functions in our Next.js project to block bots that are consuming many of our functions. This is our netlify.toml file — the build completes successfully, but we get a 502 error. I…

[Next page](https://answers.netlify.com/tag/edge-functions/196.md?match_all_tags=true&page=1&tags%5B%5D=edge_functions)
