Ungraded lab Not able to access gs://flowers-public/tfrecords-jpeg-224x224

Getting below error while

filenames = tf.io.gfile.glob(r"gs://flowers-public/tfrecords-jpeg-224x224/*.tfrec")

Error:
Error executing an HTTP request: HTTP response code 401 with body '{
“error”: {
“code”: 401,
“message”: “Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket. Permission ‘storage.objects.list’ denied on resource (or it may not exist).”,
“errors”: [
{
“message”: “Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket. Permission ‘storage.objects.list’ denied on resource (or it may not exist).”,
“domain”: “global”,
“reason”: “required”,

when reading gs://flowers-public/tfrecords-jpeg-224x224

please make sure colab is linked with your Google drive.

Its connected, confirmed again

same error

can you check the tf and keras version notebook is running on?

Also it will be more helpful if you can take a screenshot of the complete error rather than copy and paste.

also please dm screenshot of the code in question here by personal DM. Please make sure not to post any codes here.

Regards
DP

can you confirm first if you are working in course provided environment or your local colab environment?

Tried both, same error. I had to use personal colab because its not connecting to tpu cluster.

please check your DM

okay @dhavalr dhaval as per the discussion it seems you are working on an ungraded lab and one of cell run downs with 401 error.

So I request you to clear cache and browsing history first. then log out of Coursera id, then re login again. open the assignment again and run the codes.

Let me know if the same error is being shown.

Also always mention from next time either the assignment name or upgraded lab to avoid confusion.

using a print statment by recalling to filename will always throw error as some website links requires authorisation. Also it seems your issue was more related to the tpu addr run down cell which was the main concern. Let me know if clearing the cache and browsing history, logging out and relogin Coursera I’d still threw same error, then we will have to look into this as this could be related tf version issue too.

Regards
DP