dtrenz
dtrenz

Reputation: 599

Google Cloud Storage bucket not readable. (CloudStorageStreamWrapper::stream_open call failed)

I'm trying to read/write Laravel blade templates to a Google Cloud Storage bucket.

The compiled templates are correctly writing to the bucket, but when the view attempts to read the compiled template back out of the bucket I get the following error:

include(gs://my-site.appspot.com/views/c08e5794b1fc664fce0cd30fc8e7898e): failed to open stream: "\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open" call failed

Why would the app be able to write to the bucket successfully but then fail to read back out?

Upvotes: 1

Views: 1055

Answers (1)

Luis Monge
Luis Monge

Reputation: 9

If you need to include files from the bucket, add to your php.ini:

google_app_engine.allow_include_gs_buckets = "views"

Upvotes: 1

Related Questions