[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-14 Thread Thomas Valadez
Cool. Thanks that helps a ton.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ae0cb758-5289-4028-869d-f4ce877c1a72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-14 Thread 'Yannick (Cloud Platform Support)' via Google App Engine
The files are actually stored in the datastore emulator as blobs and are in 
your system's temp folder. You can specify which folder should be used 
using the --storage_path 

 option 
when launching the dev server.

On Monday, August 14, 2017 at 4:02:30 PM UTC-4, Thomas Valadez wrote:
>
> I see... So how do I know where the `("gs://test-a
> ppdocs-sendgrid-inbound/envelope.json");` is looking on my local system. 
>
> On Monday, August 14, 2017 at 1:59:14 PM UTC-6, Yannick (Cloud Platform 
> Support) wrote:
>>
>> Hello Thomas,
>>
>> At this time, this behavior is working as intended. The error message you 
>> are getting means in this situation that no file by that name could be 
>> found. That is because the PHP local development server emulates Cloud 
>> Storage streams 
>> 
>>  by 
>> reading and writing to local storage on your machine and doesn't touch the 
>> production Cloud Storage.
>>
>> On Thursday, August 10, 2017 at 3:36:55 PM UTC-4, Thomas Valadez wrote:
>>>
>>> Yeah I am getting the same error. I moved the target json file to the 
>>> root directory of the bucket, and used `echo 
>>> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` as 
>>> suggested. However I get the same error: 
>>> `Warning: 
>>> file_get_contents(gs://test-appdocs-sendgrid-inbound/envelope.json): failed 
>>> to open stream: 
>>> "\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open"
>>>  
>>> call failed in /Users/thom/Engine/appdocs-com/main.php on line 18`
>>>
>>> On Thursday, August 10, 2017 at 1:05:05 PM UTC-6, George (Cloud Platform 
>>> Support) wrote:

 Hi Thomas, 

 Is the same error triggered if you run the `echo 
 file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` 
 command, which assumes you had copied the envelope.json file in the root 
 directory of the bucket, i.e. under 
 gs://test-appdocs-sendgrid-inbound/envelope.json? 

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/128f416c-2778-4f25-913e-b42ec7a6d117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-14 Thread Thomas Valadez
I see... So how do I know where the `("gs://test-a
ppdocs-sendgrid-inbound/envelope.json");` is looking on my local system. 

On Monday, August 14, 2017 at 1:59:14 PM UTC-6, Yannick (Cloud Platform 
Support) wrote:
>
> Hello Thomas,
>
> At this time, this behavior is working as intended. The error message you 
> are getting means in this situation that no file by that name could be 
> found. That is because the PHP local development server emulates Cloud 
> Storage streams 
> 
>  by 
> reading and writing to local storage on your machine and doesn't touch the 
> production Cloud Storage.
>
> On Thursday, August 10, 2017 at 3:36:55 PM UTC-4, Thomas Valadez wrote:
>>
>> Yeah I am getting the same error. I moved the target json file to the 
>> root directory of the bucket, and used `echo 
>> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` as 
>> suggested. However I get the same error: 
>> `Warning: 
>> file_get_contents(gs://test-appdocs-sendgrid-inbound/envelope.json): failed 
>> to open stream: 
>> "\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open"
>>  
>> call failed in /Users/thom/Engine/appdocs-com/main.php on line 18`
>>
>> On Thursday, August 10, 2017 at 1:05:05 PM UTC-6, George (Cloud Platform 
>> Support) wrote:
>>>
>>> Hi Thomas, 
>>>
>>> Is the same error triggered if you run the `echo 
>>> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` 
>>> command, which assumes you had copied the envelope.json file in the root 
>>> directory of the bucket, i.e. under 
>>> gs://test-appdocs-sendgrid-inbound/envelope.json? 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e59e0bb6-bcea-43f2-ab5b-d81939ad0b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-14 Thread Thomas Valadez
I see... So how do I know where the `("gs://test-a
ppdocs-sendgrid-inbound/envelope.json");` is looking on my local system.

On Mon, Aug 14, 2017 at 1:59 PM, 'Yannick (Cloud Platform Support)' via
Google App Engine  wrote:

> Hello Thomas,
>
> At this time, this behavior is working as intended. The error message you
> are getting means in this situation that no file by that name could be
> found. That is because the PHP local development server emulates Cloud
> Storage streams
> 
>  by
> reading and writing to local storage on your machine and doesn't touch the
> production Cloud Storage.
>
> On Thursday, August 10, 2017 at 3:36:55 PM UTC-4, Thomas Valadez wrote:
>>
>> Yeah I am getting the same error. I moved the target json file to the
>> root directory of the bucket, and used `echo file_get_contents("gs://test-a
>> ppdocs-sendgrid-inbound/envelope.json");` as suggested. However I get
>> the same error:
>> `Warning: 
>> file_get_contents(gs://test-appdocs-sendgrid-inbound/envelope.json):
>> failed to open stream: "\google\appengine\ext\cloud_s
>> torage_streams\CloudStorageStreamWrapper::stream_open" call failed in
>> /Users/thom/Engine/appdocs-com/main.php on line 18`
>>
>> On Thursday, August 10, 2017 at 1:05:05 PM UTC-6, George (Cloud Platform
>> Support) wrote:
>>>
>>> Hi Thomas,
>>>
>>> Is the same error triggered if you run the `echo
>>> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");`
>>> command, which assumes you had copied the envelope.json file in the root
>>> directory of the bucket, i.e. under gs://test-appdocs-sendgrid-inb
>>> ound/envelope.json?
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/WMA1F5wEK8I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/f3b77eb9-2d6f-4feb-b094-
> 431643023314%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CACcW7jJC9HqV8YpayGHOuz1u8wPLvhsNGQop5N7%2BxeR-HAbZnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-14 Thread 'Yannick (Cloud Platform Support)' via Google App Engine
Hello Thomas,

At this time, this behavior is working as intended. The error message you 
are getting means in this situation that no file by that name could be 
found. That is because the PHP local development server emulates Cloud 
Storage streams 

 by 
reading and writing to local storage on your machine and doesn't touch the 
production Cloud Storage.

On Thursday, August 10, 2017 at 3:36:55 PM UTC-4, Thomas Valadez wrote:
>
> Yeah I am getting the same error. I moved the target json file to the root 
> directory of the bucket, and used `echo 
> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` as 
> suggested. However I get the same error: 
> `Warning: 
> file_get_contents(gs://test-appdocs-sendgrid-inbound/envelope.json): failed 
> to open stream: 
> "\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open"
>  
> call failed in /Users/thom/Engine/appdocs-com/main.php on line 18`
>
> On Thursday, August 10, 2017 at 1:05:05 PM UTC-6, George (Cloud Platform 
> Support) wrote:
>>
>> Hi Thomas, 
>>
>> Is the same error triggered if you run the `echo 
>> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` 
>> command, which assumes you had copied the envelope.json file in the root 
>> directory of the bucket, i.e. under 
>> gs://test-appdocs-sendgrid-inbound/envelope.json? 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f3b77eb9-2d6f-4feb-b094-431643023314%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-10 Thread Thomas Valadez
Yeah I am getting the same error. I moved the target json file to the root 
directory of the bucket, and used `echo 
file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` as 
suggested. However I get the same error: 
`Warning: 
file_get_contents(gs://test-appdocs-sendgrid-inbound/envelope.json): failed 
to open stream: 
"\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open"
 
call failed in /Users/thom/Engine/appdocs-com/main.php on line 18`

On Thursday, August 10, 2017 at 1:05:05 PM UTC-6, George (Cloud Platform 
Support) wrote:
>
> Hi Thomas, 
>
> Is the same error triggered if you run the `echo 
> file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` 
> command, which assumes you had copied the envelope.json file in the root 
> directory of the bucket, i.e. under 
> gs://test-appdocs-sendgrid-inbound/envelope.json? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/497cdcb3-8d32-4ec8-bff8-47a9e7663005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-10 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi Thomas, 

Is the same error triggered if you run the `echo 
file_get_contents("gs://test-appdocs-sendgrid-inbound/envelope.json");` 
command, which assumes you had copied the envelope.json file in the root 
directory of the bucket, i.e. under 
gs://test-appdocs-sendgrid-inbound/envelope.json? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/71378e2b-0cf1-4169-b458-311931365c99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-09 Thread Thomas Valadez
The exact command I am writing is `echo 
file_get_contents("gs://test-appdocs-sendgrid-inbound/12/envelope.json");` 
where the bucket title is "test-appdocs-sendgrid-inbound" where "12" is a 
folder in the bucket and "envelope.json" is the actual file. File options 
are type is set to "application/json" and "Share Publicly" is set to 
"Public Link".

On Wednesday, August 9, 2017 at 2:50:30 PM UTC-6, George (Cloud Platform 
Support) wrote:
>
> Hi Thomas, 
>
> What is the exact command you run? The wrapper requires a certain format 
> for the name of the bucket or file object.
>
> The standard environments offers other running conditions for apps, by 
> reference to flex, there is no expectation to get similar results always. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/16a43ff8-c821-412e-9ce4-73efb6e1582f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-09 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi Thomas, 

What is the exact command you run? The wrapper requires a certain format 
for the name of the bucket or file object.

The standard environments offers other running conditions for apps, by 
reference to flex, there is no expectation to get similar results always. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7c7ce0b2-b410-4353-88b8-95b7fb1a6cad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-08 Thread Thomas Valadez
Thanks for the reply. But it certainly isn't working the way you described. 
I recently changed to a flex environment to test GCS with the API tools, 
and file paths worked fine. However, in the standard environment it doesn't 
work. As stated I get this error:

Warning: file_get_contents(gs://sendgrid-inbound/12/envelope.json): failed 
to open stream: "\google\appengine\ext\cloud_storage_streams\
CloudStorageStreamWrapper::stream_open" call failed in 
/Users/thom/Engine/site-com/main.php on line 10

I think you may have a bug with the Google Cloud Storage stream wrapper. It 
works in production just fine, but like I said, no luck on local machine. 


On Tuesday, August 8, 2017 at 9:35:11 AM UTC-6, George (Cloud Platform 
Support) wrote:
>
> Hello Thomas, 
>
> In case of the local development server, the Google Cloud Storage stream 
> wrapper is built in to the run time, and is used when you supply a file 
> name starting with gs://. The wrapper requires the name of the bucket or 
> file object to be in the form:
>
> gs://bucket_name/desired_object_name 
>
> You can gather more detail from the "Reading and Writing Files" 
> documentation file 
> . 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/89806985-0791-4eb3-bba9-90c51aa514a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot Use Google Cloud Storage on Local Environment with PHP Standard Env

2017-08-08 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Thomas, 

In case of the local development server, the Google Cloud Storage stream 
wrapper is built in to the run time, and is used when you supply a file 
name starting with gs://. The wrapper requires the name of the bucket or 
file object to be in the form:

gs://bucket_name/desired_object_name 

You can gather more detail from the "Reading and Writing Files" 
documentation file 
. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/72e07ca2-9c3f-4630-8b02-9e00aea70a72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.