Maybe I should add: I'm doing this from my machine, using my personal 
credentials, and not an instance service account. I'm not sure if that 
might make a difference or not.


On Wednesday, November 9, 2016 at 4:42:30 PM UTC-5, Evan Jones wrote:
>
> Yes, you need to follow the directions to connect to an App Engine 
> application via the remote shell:
>
> 1. Run `gcloud auth application-default login`
> 2. Follow the directions here:
>
> https://cloud.google.com/appengine/docs/python/tools/remoteapi
>
>
> Result: HTTP 401 Unauthorized errors
>
>
> I'm guessing the App Engine remote shell needs to get the user's email 
> address to be able to authenticate against the Users API (I think?). The 
> OAuth2 token without that additional scope does not work.
>
> Thanks,
>
> Evan
>
>
>
> On Wednesday, November 9, 2016 at 12:58:46 PM UTC-5, George (Cloud 
> Platform Support) wrote:
>>
>> Hello Evan,
>> Running your gcloud command without the --sources part results in 
>> successfully getting the application default credentials on 2 different 
>> freshly-created instances. Does the error manifest itself in special 
>> circumstances? Are there any other details needed to correctly reproduce 
>> the error? 
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/567ae70b-2f12-4232-a865-47f9db108c32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to