Accidentally receiving a cloud storage error: UNAUTHORIZED

Today I started getting this error, which I can say for no reason. This is a consistent error. It started randomly today. It worked perfectly yesterday, and for weeks without errors.

All that I have is in the file file_get_contents().

I have been using the same code for get_image.phpsome time, and I still have not received this error.

Does anyone know why this happens by chance and not sequentially?

[20/Feb/2015:10:53:53 -0800] "POST /get_image HTTP/1.1" 200 149 - - "website.com" ms=296 cpu_ms=86 cpm_usd=0.000017 pending_ms=160 instance=<string> app_engine_release=1.9.18

W 13:53:53.815 PHP Warning:  Cloud Storage Error: UNAUTHORIZED in /base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageReadClient.php on line 310
W 13:53:53.815 PHP Warning:  file_get_contents(gs://bucket/image/page_1.png): failed to open stream: "\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open" call failed in /base/data/home/apps/..../get_image.php on line 10

EDIT: For anyone looking for updates on this issue, go to this bug report .

Add this to your code as a temporary fix for the time being under Stuart Langley's article.

apc_delete('_ah_app_identity_:https://www.googleapis.com/auth/devstorage.read_only');
apc_delete('_ah_app_identity_:https://www.googleapis.com/auth/devstorage.read_write');
+4
1

, . .

0

All Articles