It used to work fine. It just started today the app couldn’t download content from firestore database, even though the link is fine.
Here is an example link: https://firebasestorage.googleapis.com/v0/b/bookforward.appspot.com/o/product%2Ftemp%2Fattachments%2F720972000?alt=media&token=8d604063-3702-463f-82d6-84a3f749409d
irb(main):003:0> r = Faraday.get("https://firebasestorage.googleapis.com/v0/b/bookforward.appspot
.com/o/product%2Ftemp%2Fattachments%2F720972000?alt=media&token=8d604063-3702-463f-82d6-84a3f7494
09d")
=>
#<Faraday::Response:0x00007fc3e40d6678
...
irb(main):004:0> r
=>
#<Faraday::Response:0x00007fc3e40d6678
@env=
#<struct Faraday::Env
method=:get,
request_body=nil,
url=
#<URI::HTTPS https://firebasestorage.googleapis.com/v0/b/bookforward.appspot.com/o/product%2Ftemp%2Fattachments%2F720972000?alt=media&token=8d604063-3702-463f-82d6-84a3f749409d>,
request=
#<struct Faraday::RequestOptions
params_encoder=nil,
proxy=nil,
bind=nil,
timeout=nil,
open_timeout=nil,
read_timeout=nil,
write_timeout=nil,
boundary=nil,
oauth=nil,
context=nil,
on_data=nil>,
request_headers={"User-Agent"=>"Faraday v1.10.2"},
ssl=
#<struct Faraday::SSLOptions
verify=true,
ca_file=nil,
ca_path=nil,
verify_mode=nil,
cert_store=nil,
client_cert=nil,
client_key=nil,
certificate=nil,
private_key=nil,
verify_depth=nil,
version=nil,
min_version=nil,
max_version=nil>,
parallel_manager=nil,
params=nil,
response=#<Faraday::Response:0x00007fc3e40d6678 ...>,
response_headers=
{"x-guploader-uploadid"=>
"ADPycdvC4IRoBDglfrNwoMAXAR0tt1J7l5cA9eFRTfh_IDGfhh87Z1YsFNq-DDLL5x3P0hbbZvSDxDLSz-kkKyHtUqyGHowWM7vV",
"content-type"=>"application/xml; charset=UTF-8",
"content-length"=>"193",
"date"=>"Fri, 16 Dec 2022 13:03:08 GMT",
"expires"=>"Fri, 16 Dec 2022 13:03:08 GMT",
"cache-control"=>"private, max-age=0",
"server"=>"UploadServer",
"alt-svc"=>
"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""},
status=403,
reason_phrase="Forbidden",
response_body=
"<?xml version='1.0' encoding='UTF-8'?><Error><Code>AccessDenied</Code><Message>Access denied.</Message><Details>We're sorry, but this service is not available in your location</Details></Error>">,
@on_complete_callbacks=[]>
irb(main):005:0>
What could be the issue and how can I fix it?