fix: patch node-fetch-native-with-agent to bypass bundled undici on Node 26
node-appwrite 23.1.0 ships a bundled undici Agent via node-fetch-native-with-agent. That bundle uses an older undici dispatcher API that crashes on Node 26 with 'invalid onError method' (UND_ERR_INVALID_ARG), making every Appwrite call fail with 'fetch failed' / our user-facing 'Bağlantı hatası' fallback. The patch replaces createAgent/createFetch with thin pass-throughs to globalThis.fetch — Node native fetch handles HTTPS to db.kovaksoft.com directly, no proxy/agent customization needed. Verified end-to-end via users.listMemberships against the live project. Also added dev-mode error surfacing in appwriteError so future SDK exceptions show the real message instead of 'Bağlantı hatası'.
This commit is contained in:
Generated
+5
-2
@@ -4,6 +4,9 @@ settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
patchedDependencies:
|
||||
node-fetch-native-with-agent@1.7.2: cd358d4fe49343db480f143ab35ddda3c2c50e5009876fca55e5e823ae72ceed
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
@@ -5424,9 +5427,9 @@ snapshots:
|
||||
node-appwrite@23.1.0:
|
||||
dependencies:
|
||||
json-bigint: 1.0.0
|
||||
node-fetch-native-with-agent: 1.7.2
|
||||
node-fetch-native-with-agent: 1.7.2(patch_hash=cd358d4fe49343db480f143ab35ddda3c2c50e5009876fca55e5e823ae72ceed)
|
||||
|
||||
node-fetch-native-with-agent@1.7.2: {}
|
||||
node-fetch-native-with-agent@1.7.2(patch_hash=cd358d4fe49343db480f143ab35ddda3c2c50e5009876fca55e5e823ae72ceed): {}
|
||||
|
||||
node-releases@2.0.27: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user