Hi @yaustar @Leonidas @Albertos @mvaligursky
I’m fetching image url from firebase and it is giving error on both launch and deployed link. Sometimes it works fine and sometimes it throws error for few images randomly
Actually it changes the link of the image and redirects it, Is there any way to stop the redirection
@yak32 might know, but can you please provide more info here? What redirection do you see? From what you say, the texture is not an asset in PlayCanvas, but an image from your url … so where does the redirection take place?
The image url is in firebase. The above code is used to fetch that url and load the image to the image entity. Sometimes, it redirects the original link fetched from the firebase to storage google api
Original Link: https://firebasestorage.googleapis.com/v0/b/progress-staging.appspot.com/o/Mini4%2Fcake.png?alt=media&token=efd47b38-2506-47f6-85fd-d317826f0353
Redirected Link: https://storage.googleapis.com/progress-staging.appspot.com/Mini4/cake.png?GoogleAccessId=service-991147661809@gcp-sa-firebasestorage.iam.gserviceaccount.com&Expires=1689151985&Signature=Re9qnYP0j%2Bwdfc6xFYRKztvOWzcNLs6/8KIDtvp4nvWV8V7fEE4Us/VR%2BpAMrmSB8VpaaYo5bDRVqKj9o3K7daCLj5Mjr293qkWV1fnHMI/esbhGz4OCMm5jQ4ZDtfyFl1y5bWHYwO%2B6ikIGuTNJKmtYoFuIKmSVmplEzPGBQtWeHDIPunkDRJD0/uzQ/JDtcGRxtA29rHC8ia/J2YaOJGgzoqHU4iD8j3Rob2H3d0FYVnNkf%2BwI27r/3%2BMXflcrNdCBBJlWY5n6AOzbK/EJPmftQ5UTwpfzRcL7rj16WvodwEzalWwR4lotgSlln31N5tiF/sn%2BHAtR4JlhvEOXEQ%3D%3D
@Ayesha_Irfan just to rule this out as a test: have you tried hosting the image on an outside server, not on Firebase Storage?