Closed viktorsmari closed 3 years ago
This is probably a misconfiguration on the backend, where localhost needs to be replaced by the domain in env/config file.
Now after the latest config changes on the staging server, it tries to load this URL after uploading an image: https://95.217.212.123/api/explore/uploads/01EXKGV554X3ZHQ707WQRPT178/prof2.jpg <-- Won't work
When it should be loading: https://api.reflowproject.eu/uploads/01EXKGV554X3ZHQ707WQRPT178/prof2.jpg <-- Works
Fixed by config update!
Users profile images are not loading. They are uploading to the API, but the URL is incorrect.
Browser console error:
GET http://localhost/uploads/01EXKGV554X3ZHQ707WQRPT178/2021-03-03_21-23-30.png net::ERR_CONNECTION_REFUSED
If we query the API, we see it returns the
url
with thehttp://localhost
in front"url": "http://localhost/uploads/01EYJR67EAYVWRW5Z87HNGN16X/IOT.jpg"
If we replace the front of the URL with the correct path, it works. https://api.reflowproject.eu/uploads/01EYJR67EAYVWRW5Z87HNGN16X/IOT.jpg <-- Works
Expected behavior
http://localhost
/uploads/01EYJR67EAYVWRW5Z87HNGN16X/IOT.jpg
?