The discussion revolves around an issue with letter avatar images appearing blank behind a proxy server. rbos initially shares a similar issue from a previous thread and explains that the images are generating a 500 error when loaded directly. Despite being able to access the images through a proxy server within the Docker container, the issue persists.
rbos digs deeper into the code and discovers that the request for the image is correct, but the image is still not loading. They find a relevant error message in the production log, which suggests that the image is being successfully downloaded, but not displayed.
After further investigation, rbos finds a log section in the web user interface that mentions a show_proxy_letter error and an EOFError. They suspect that this might be related to the issue.
rbos eventually resolves the issue by turning off external system avatars entirely.
In production.log, it shows the image being successfully downloaded, allegedly:
Started GET "/presence/get?channels%5B%5D=%2Fdiscourse-presence%2Freply%2F88689&channels%5B%5D=%2Fdiscourse-presence%2Fwhisper%2F88689" for 172.17.1.79 at 2024-07-09 19:59:01 +0000
Processing by PresenceController#get as JSON
Parameters: {"channels"=>["/discourse-presence/reply/88689", "/discourse-presence/whisper/88689"]}
Processing by UserAvatarsController#show_proxy_letter as PNG
Parameters: {"version"=>"v4", "letter"=>"b", "color"=>"bcef8e", "size"=>"48"}
Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.0ms | Allocations: 3095)
Completed 418 in 9ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 1680)
So for whatever reason, I’m still getting a blank image. Maybe it’s not using HTTP_PROXY or HTTPS_PROXY or something.
In site_settings.yml, it says that the default letter_avatar_proxy url is: "/letter_avatar_proxy/v4/letter/{first_letter}/{color}/{size}.png" and when I rightclick on one of the images to get the URL, it is (correctly?) https://forum.pkp.sfu.ca/letter_avatar_proxy/v4/letter/b/bcef8e/48.png