Re: [google-appengine] Re: NodeJS AppEngine App error connecting to Google Cloud SQL

2019-04-24 Thread Learn GCP with Mahesh
The connection string cannot have IP address in App Engine Standard. It 
should you Instance Connection Name.
https://www.youtube.com/watch?v=T0P6qsTuh1s will explain basics of App 
Engine Standard. 

If you want to using IP address then Serverless VPC 
https://cloud.google.com/vpc/docs/configure-serverless-vpc-access

Thank
Mahesh

On Wednesday, April 24, 2019 at 3:06:06 AM UTC+5:30, Jason Collins wrote:
>
> The connection technique is different in Standard I believe.
>
> In particular, note the "config.socketPath" in the link I sent.
>
>
>
>>
>>

-- 
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/a664cc63-10e7-47c5-a4f3-641486001c24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: NodeJS AppEngine App error connecting to Google Cloud SQL

2019-04-23 Thread Jason Collins
The connection technique is different in Standard I believe.

In particular, note the "config.socketPath" in the link I sent.



>
>

-- 
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/CAL_dBeZ2DENTq2UG0JhTHSL2G8oRFxeepD1XjzWpEo3cmz2e0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: NodeJS AppEngine App error connecting to Google Cloud SQL

2019-04-23 Thread Cristian Bullokles
What do you mean by doesn't look right to me?

I deploy exactly the same code in Standard and it does not work, but if I
deploy it using Flex, it does work.




On Tue, Apr 23, 2019 at 5:40 PM Jason Collins 
wrote:

> Your connection string doesn't look right to me. Check out this example:
> https://cloud.google.com/appengine/docs/standard/nodejs/using-cloud-sql#setting_connection_strings_and_adding_a_library
>
>
> --
> 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/CAL_dBeaEUBGeUM2KTWC%2BMo3xkiJVD13PFZjE5UVTpfhN304reA%40mail.gmail.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/CAOJhfncmojxAzvW4pHCiGDk4Z5YJ4waH%2BH86OnAVAhfRs%3Di21Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: NodeJS AppEngine App error connecting to Google Cloud SQL

2019-04-23 Thread Jason Collins
Your connection string doesn't look right to me. Check out this example:
https://cloud.google.com/appengine/docs/standard/nodejs/using-cloud-sql#setting_connection_strings_and_adding_a_library

-- 
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/CAL_dBeaEUBGeUM2KTWC%2BMo3xkiJVD13PFZjE5UVTpfhN304reA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: NodeJS AppEngine App error connecting to Google Cloud SQL

2019-04-23 Thread Cristian Bullokles
The repo is: https://github.com/cbullokles/appengine-error


On Tue, Apr 23, 2019 at 5:11 PM Jason Collins 
wrote:

> Can you post your repro?
>
> On Monday, 22 April 2019 19:32:48 UTC-7, cristian...@gmail.com wrote:
>>
>>
>> Hi,
>>  I'm trying to connect a simple NodeJS App (A REST API) deployed into
>> AppEngine to a Google Cloud SQL instance.
>>  Every time I deploy the app using a flex environment, it works
>> perfectly, but when I try to deploy it in a Standard environment it does
>> not work.
>>  To isolate the problem I've created a repo with a simple nodeJS app
>> which proves my scenarios.
>>  Is it by design? I mean, the filter in ports blocking the connection
>> from Standard AppEngine to Google Cloud SQL instances?
>>  I've tried the same code using Cloud Run and it is not working too.
>>
>>
>> Regards
>> Cristian
>>
> --
> 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/54fd5bf0-fef5-416f-bd21-4bcd3a4407b3%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/CAOJhfnfqKejEKP4oo8fSoVcg%3D2eCE%2BnWq5hoi6D_a_ZLAoiffQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.