Ticket: HTTP 500 Error Serving Files from /uploads

@wolfbyte7 Just created a ticket
Question: HTTP 500 when serving files from /uploads Postiz Logs:
postiz | ⨯ TypeError: fetch failed
postiz | at node:internal/deps/undici/undici:13178:13
postiz | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
postiz | at async fetchExternalImage (/app/node_modules/next/dist/server/image-optimizer.js:589:17)
postiz | at async NextNodeServer.imageOptimizer (/app/node_modules/next/dist/server/next-server.js:654:48)
postiz | at async cacheEntry.imageResponseCache.get.incrementalCache (/app/node_modules/next/dist/server/next-server.js:182:65)
postiz | at async /app/node_modules/next/dist/server/response-cache/index.js:90:36
postiz | at async /app/node_modules/next/dist/lib/batcher.js:45:32 {
postiz | [cause]: Error: connect ECONNREFUSED 127.0.2.1:443
postiz | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)
postiz | at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
postiz | errno: -111,
postiz | code: 'ECONNREFUSED',
postiz | syscall: 'connect',
postiz | address: '127.0.2.1',
postiz | port: 443
postiz | }
postiz | }
postiz | ⨯ TypeError: fetch failed
postiz | at node:internal/deps/undici/undici:13178:13
postiz | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
postiz | at async fetchExternalImage (/app/node_modules/next/dist/server/image-optimizer.js:589:17)
postiz | at async NextNodeServer.imageOptimizer (/app/node_modules/next/dist/server/next-server.js:654:48)
postiz | at async cacheEntry.imageResponseCache.get.incrementalCache (/app/node_modules/next/dist/server/next-server.js:182:65)
postiz | at async /app/node_modules/next/dist/server/response-cache/index.js:90:36
postiz | at async /app/node_modules/next/dist/lib/batcher.js:45:32 {
postiz | [cause]: Error: connect ECONNREFUSED 127.0.2.1:443
postiz | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)
postiz | at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
postiz | errno: -111,
postiz | code: 'ECONNREFUSED',
postiz | syscall: 'connect',
postiz | address: '127.0.2.1',
postiz | port: 443
postiz | }
postiz | }

Attempted: I have attempted changing my Caddyfile for localhost I have restarted docker-compose, I made sure that I have the latest version.
Working On: I am just trying to get the Postiz to serve pictures, icons, the correct way.
Using Postiz On: Docker-Compose
Take it from here @Postiz
5 Replies
wolfbyte7
wolfbyte72w ago
I would like to add that I am using "local" for storage.
Support
SupportOP2w ago
@Postiz please help @wolfbyte7
Brotherperson
Brotherperson2w ago
Hi bro, don't use local, use the cloudflare s2 bucket. Local is not working correctly with all platforms. Some need public acces. There is something about it in #🎤│announcements
wolfbyte7
wolfbyte77d ago
@Brotherperson ended giving up on local I will have to create a bug or issue somewhere if you are fully localhost the local "upload provider of" local does work but when using my reverse proxy with Caddy it does not
Brotherperson
Brotherperson7d ago
Hi bro, do you mean the insert media button ? I would had preferred to the local also, sadly it is not an option when posting on certain media (insta and facebook). So i was forced to go to s2

Did you find this page helpful?