[google-appengine] create servcie account using google api

2017-08-03 Thread Diego Molteni
Hi all,
I was truing to create a service account using the google json api 
(https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/create)

when i execute the command:
curl -X POST 
https://iam.googleapis.com/v1/projects//serviceAccounts 
\
  -H 'authorization: Bearer ya29' \
  -H 'content-type: application/json' \
  -d '{
 "accountId": 
"@.iam.gserviceaccount.com"
}


I have this error and I can't really understand what's the problem:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}


anybody can help me? (ps is not an authorization problem)

Diego

-- 
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/469e7b04-699e-4fbb-be04-293d4873fdc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine - Import Error no module named appengine.api

2017-04-07 Thread Diego Molteni
Hi All,

I have this problem and I really don't know how to fix it any help?


from oauth2client.contrib.appengine import AppAssertionCredentials
def generate_jwt():
credentials = AppAssertionCredentials(
'https://www.googleapis.com/auth/iam')

from google.appengine.api import app_identity
ImportError: No module named appengine.api


Thanks :)
Diego

-- 
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/f73c6891-31e0-4e8a-9970-5db592c7cc23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google Appengine Python - ImportError No module named appengine.api

2017-04-07 Thread Diego Molteni
Hi All,

I have this problem and I really don't know how to fix it any help?


from oauth2client.contrib.appengine import AppAssertionCredentials
def generate_jwt():
credentials = AppAssertionCredentials(
'https://www.googleapis.com/auth/iam')

Enter code her
from google.appengine.api import app_identity
ImportError: No module named appengine.api
e...

Thanks :)
Diego

-- 
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/7ead0afe-b0b1-44d4-93b5-81ec4e882223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deploy application :Error Response: [13] Timed out when starting VMs.

2016-10-03 Thread Diego Molteni
 the a2viewer package,
08:56:18.000
npm ERR! Make sure you have the latest version of node.js and npm installed.
08:56:18.000
npm ERR! Failed at the a2viewer@1.0.0 tsc script 'tsc'.
08:56:18.000
npm ERR!
08:56:18.000
npm ERR! spawn ENOENT
08:56:18.000
npm ERR! a2viewer@1.0.0 tsc: `tsc`
08:56:18.000
npm ERR! syscall spawn
08:56:18.000
npm ERR! errno ENOENT
08:56:18.000
npm ERR! code ELIFECYCLE
08:56:18.000
npm ERR! file sh
08:56:18.000
npm ERR! npm v3.10.3
08:56:18.000
npm ERR! node v6.7.0
08:56:18.000
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "run" "tsc"
08:56:18.000
npm ERR! Linux 3.16.0-4-amd64
08:56:18.000
08:56:18.000
sh: 1: tsc: not found





On Thursday, September 29, 2016 at 6:17:40 PM UTC-5, Nick (Cloud Platform 
Support) wrote:
>
> Hey Diego,
>
> The details for why the deploy failed will be located in 'crash.log', 
> 'syslog' or 'stderr' in the Cloud Console Logs Viewer 
> <https://cloud.google.com/logging/docs/view/logs_viewer>. 
>
> You can access these by going to 'Logging' -> 'Logs' -> 'App Engine' -> 
> 'Default service' -> , and then selecting the log type from the 
> dropdown ('Any log level'). 
>
> Locate the error logs for the timestamp matching the most recent deploy 
> attempt. 
>
> If you can't make sense of the logs, feel free to post the error 
> information here and I'll be happy to assist!
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
>
> On Monday, September 26, 2016 at 10:23:52 AM UTC-4, Diego Molteni wrote:
>>
>> Dear Expert,
>> I receive this error if i try to deploy my application on Google App 
>> Engine (gcloud preview app deploy).
>> I never had this problem and i can't find a solution.
>> any Idea on how to fix this problem?
>>
>> Thanks :)
>>
>>
>> --
>> Removing intermediate container 14c27f9e927f
>> Successfully built cd16b300dd47
>> PUSH
>> The push refers to a repository [
>> us.gcr.io/fatty-acid/appengine/a2viewer.20160926t090506] (len: 1)
>> cd16b300dd47: Preparing
>> cd16b300dd47: Pushing
>> cd16b300dd47: Pushed
>> bbcf7801e7ba: Preparing
>> bbcf7801e7ba: Pushing
>> bbcf7801e7ba: Pushed
>> 4284f4572084: Preparing
>> 4284f4572084: Pushing
>> 4284f4572084: Pushed
>> ef62c3a94308: Preparing
>> ef62c3a94308: Pushing
>> ef62c3a94308: Pushed
>> 9ff051f37ab2: Image already exists
>> 363507e00b22: Image already exists
>> 818131a74c7c: Image already exists
>> cc57a274adf5: Image already exists
>> c7c7a273971f: Image already exists
>> b21b3e3bc691: Image already exists
>> latest: digest: 
>> sha256:3a014c49ccd20ca9f4060599bf94f0e36a18232bba8907b4db7f20ecd71af9ec 
>> size: 33268
>> DONE
>>
>> --
>> Updating service [a2viewer]...failed.
>> ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when 
>> starting VMs.  It's possible that the application code is unhealthy.  (0/2 
>> ready, 2 still deploying).
>>
>> --
>>
>

-- 
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/52979371-1b42-4488-8885-ecb323b4a36e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Deploy application :Error Response: [13] Timed out when starting VMs.

2016-09-26 Thread Diego Molteni
Dear Expert,
I receive this error if i try to deploy my application on Google App Engine 
(gcloud preview app deploy).
I never had this problem and i can't find a solution.
any Idea on how to fix this problem?

Thanks :)

--
Removing intermediate container 14c27f9e927f
Successfully built cd16b300dd47
PUSH
The push refers to a repository 
[us.gcr.io/fatty-acid/appengine/a2viewer.20160926t090506] (len: 1)
cd16b300dd47: Preparing
cd16b300dd47: Pushing
cd16b300dd47: Pushed
bbcf7801e7ba: Preparing
bbcf7801e7ba: Pushing
bbcf7801e7ba: Pushed
4284f4572084: Preparing
4284f4572084: Pushing
4284f4572084: Pushed
ef62c3a94308: Preparing
ef62c3a94308: Pushing
ef62c3a94308: Pushed
9ff051f37ab2: Image already exists
363507e00b22: Image already exists
818131a74c7c: Image already exists
cc57a274adf5: Image already exists
c7c7a273971f: Image already exists
b21b3e3bc691: Image already exists
latest: digest: 
sha256:3a014c49ccd20ca9f4060599bf94f0e36a18232bba8907b4db7f20ecd71af9ec 
size: 33268
DONE
--
Updating service [a2viewer]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when 
starting VMs.  It's possible that the application code is unhealthy.  (0/2 
ready, 2 still deploying).
--

-- 
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/4fc1cca1-91d6-4c91-a22b-384b05ef8e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Unable to deply the application.

2016-03-02 Thread Diego Molteni
Hi Expert,

I'm was trying to deploy an application (first time for me) but i had this 
error message:

Copying certificates for secure access. You may be prompted to create an 
SSH keypair.
ERROR: gcloud crashed (DockerException): Error while fetching server API 
version: [Errno 1] _ssl.c:510: error:14090086:SSL 
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I tried to figure out what's going on but I can't find a solution.\

Help please :)
Thanks
Diego


-- 
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/b0a55310-69f9-48aa-8cb3-cf1c5082a2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.