Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: File Upload not working in Safari on Mac #763

Closed
fluxor99232 opened this issue Feb 3, 2025 · 1 comment
Closed

🐛 Bug Report: File Upload not working in Safari on Mac #763

fluxor99232 opened this issue Feb 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@fluxor99232
Copy link

fluxor99232 commented Feb 3, 2025

👟 Reproduction steps

I installed Pingvin Share on my Kuberntes Cluster using a Helm chart. As reverse proxy I use Traefik (v3.3.1). I set TRUST_PROXY to true. Everything looks good, but when accessing in Safari (18.2, Incognito window) on my Mac (Sequoia 15.2) via https://pingvin.mydomain.xyzz the file upload never finishes or shows any progress, seemingly no matter the file type or size. In Firefox I had no issues. Other devices or browsers I haven't tested yet.

👍 Expected behavior

File upload should start, show progress and / or finish and give me the share link.

👎 Actual Behavior

Just a spinning wheel and nothing happening, even with the smallest files.

📜 Logs

Only suspicious thing I see in Pingin logs is this, once I try to navigate away from the upload:

{"level":"error","ts":1738579463.5024614,"logger":"http.log.error","msg":"readfrom tcp [::1]:49910->[::1]:8080: unexpected EOF","request":{"remote_ip":"10.244.4.91","remote_port":"58346","client_ip":"10.244.4.91","proto":"HTTP/1.1","method":"POST","host":"pingvin.mydomain.xyzz","uri":"/api/shares/ETqpxgw8/files?name=Image.png&chunkIndex=0&totalChunks=1","headers":{"Accept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, deflate, br"],"Content-Type":["application/octet-stream"],"Cookie":["REDACTED"],"Referer":["https://pingvin.mydomain.xyzz/upload"],"Sec-Fetch-Mode":["cors"],"X-Real-Ip":["10.244.5.0"],"Content-Length":["205457"],"Accept-Language":["en-US,en;q=0.9"],"X-Forwarded-For":["10.244.5.0"],"X-Forwarded-Server":["traefik-7f5d5995f8-zrfhj"],"Priority":["u=3, i"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15"],"Origin":["https://pingvin.mydomain.xyzz"],"Sec-Fetch-Dest":["empty"],"X-Forwarded-Host":["pingvin.mydomain.xyzz"],"X-Forwarded-Port":["443"]}},"duration":81.214724974,"status":502,"err_id":"e9xxs1p2t","err_trace":"reverseproxy.statusError (reverseproxy.go:1269)"}
[Nest] 47 - 02/03/2025, 11:44:23 AM ERROR [ExceptionsHandler] request aborted
BadRequestError: request aborted
at IncomingMessage.onAborted (/opt/app/backend/node_modules/raw-body/index.js:245:10)
at IncomingMessage.emit (node:events:518:28)
at IncomingMessage._destroy (node:_http_incoming:221:10)
at _destroy (node:internal/streams/destroy:121:10)
at IncomingMessage.destroy (node:internal/streams/destroy:83:5)
at abortIncoming (node:_http_server:796:9)
at socketOnClose (node:_http_server:790:3)
at Socket.emit (node:events:530:35)
at TCP. (node:net:343:12)

Traefik logs show nothing.

Safair console shows:

[Error] FetchEvent.respondWith received an error: no-response: no-response :: [{"url":"https://pingvin.mydomain.xyzz/upload","error":{}}] [Error] Cannot load https://pingvin.mydomain.xyzz/upload. [Error] Failed to load resource: FetchEvent.respondWith received an error: no-response: no-response :: [{"url":"https://pingvin.mydomain.xyzz/upload","error":{}}]

[Error] Failed to load resource: the server responded with a status of 403 () https://pingvin.mydomain.xyzz/api/users/me
[Error] Failed to load resource: the server responded with a status of 500 () https://pingvin.mydomain.xyzz/_next/data/f5EbtkIAwCtvxdHYxrWsw/index.json

@fluxor99232 fluxor99232 added the bug Something isn't working label Feb 3, 2025
@fluxor99232
Copy link
Author

apologies, this seems to somehow have been related to my pi-hole dns forwarding requests straight to traefik and safari somehow not liking that. I only had the issue on my local network (where pi-hole acts as dns). Not sure how I resolved it, but after trying a million different things it some got fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant