appengine-goshorten icon indicating copy to clipboard operation
appengine-goshorten copied to clipboard

Can't get it to work.

Open ghost opened this issue 11 years ago • 1 comments

Maybe I'm completely missing the point of this example but it doesn't seem to work, at all.

If I run goapp server and go to localhost:8080 it says ERROR: error getting history: googleapi: Error 401: Invalid Credentials, authError

README says it should show how to use the appengine.AccessToken function, but it doesn't use that function as far as I can tell. The demo linked in the README gives an error about the rate limit being exceeded.

Any ideas/suggestions?

ghost avatar Jul 22 '14 19:07 ghost

The appengine.AccessToken is used in the goauth2/appengine/serviceaccount package, see: https://github.com/GoogleCloudPlatform/appengine-goshorten/blob/master/goshorten.go#L31

In order to run it locally you should use the following devappserver flags to point to JWT credentials:

                        [--appidentity_email_address APPIDENTITY_EMAIL_ADDRESS]
                        [--appidentity_private_key_path APPIDENTITY_PRIVATE_KEY_PATH]

proppy avatar Aug 25 '14 17:08 proppy