Skip to content

fix(monthly): la librairie qui supporte les proxy http ne suit pas les redirections

BITARD Michaël requested to merge fix-monthly into master

Corrige

2024-10-24 10:00:05 [error] impossible de mettre à jour les communes TypeError: fetch failed
    at fetch (/project/node_modules/undici/index.js:112:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at communesUpdate (/project/packages/api/src/tools/territoires-update.ts:25:25)
    at updateTerritoires (/project/packages/api/src/tools/territoires-update.ts:246:5)
    at monthly (/project/packages/api/src/business/monthly.ts:13:5)
    at tasks (/project/packages/api/src/scripts/monthly.ts:38:5) {
  [cause]: DOMException [Error]: Request was cancelled.
      at new DOMException (node:internal/per_context/domexception:53:5)
      at makeAppropriateNetworkError (/project/node_modules/undici/lib/web/fetch/response.js:444:38)
      at httpNetworkFetch (/project/node_modules/undici/lib/web/fetch/index.js:1883:14)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async httpNetworkOrCacheFetch (/project/node_modules/undici/lib/web/fetch/index.js:1568:29)
      at async httpFetch (/project/node_modules/undici/lib/web/fetch/index.js:1139:33)
      at async /project/node_modules/undici/lib/web/fetch/index.js:591:16
      at async mainFetch (/project/node_modules/undici/lib/web/fetch/index.js:575:16) {
    cause: RequestAbortedError [AbortError]: Proxy response (403) !== 200 when HTTP Tunneling
        at Client.connect (/project/node_modules/undici/lib/dispatcher/proxy-agent.js:87:22)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
      code: 'UND_ERR_ABORTED'
    }
  }
}

Merge request reports

Loading