Closed alexander-lipnitskiy closed 6 days ago
This looks to be a misconfiguration as the PATCH
request has an extra /
. What is the public URL set to?
Yes, it's help me. Solution: replace PUBLIC_URL="http://localhost:8055/" to PUBLIC_URL="http://localhost:8055"
Describe the Bug
When TUS_ENABLED=true, it's break upload media file in Admin Dashboard { "stack": "Error: tus: unexpected response while uploading chunk\n at e.value (http://localhost:8055/admin/assets/index.D4bhBgpc.entry.js:65:8383)\n at http://localhost:8055/admin/assets/index.D4bhBgpc.entry.js:65:12103", "message": "tus: unexpected response while uploading chunk, originated from request (method: PATCH, url: http://localhost:8055//files/tus/cdc1d63609ced1c798ff06b9baf31c56, response code: 404, response text: {\"errors\":[{\"message\":\"Route //files/tus/cdc1d63609ced1c798ff06b9baf31c56 doesn't exist.\",\"extensions\":{\"path\":\"//files/tus/cdc1d63609ced1c798ff06b9baf31c56\",\"stack\":\"DirectusError: Route //files/tus/cdc1d63609ced1c798ff06b9baf31c56 doesn't exist.\n at notFound (d:\\Electron\\directus\\api\\src\\controllers\\not-found.ts:34:8)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\",\"code\":\"ROUTE_NOT_FOUND\"}}]}, request id: n/a)", "originalRequest": {}, "originalResponse": {}, "causingError": null }
To Reproduce
Directus Version
v11.2.1
Hosting Strategy
Self-Hosted (pnpm localhost)
Database
PostgreSQL16