Skip to content Skip to sidebar Skip to footer

Getting 'refreshing Due To A 401' When Trying To Connect Using Remote_api

I am trying to connect to the production datastore running on Google App Engine based on https://cloud.google.com/appengine/docs/python/tools/remoteapi#enabling_remote_api_access_i

Solution 1:

You have mentioned auth_func2 but have not used it, according to remote_api updates without this information everytime with the oauth request, a connection is not possible.

change your connect2 method and try this -

@staticmethoddefconnect2(project_address):
    remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func2, project_address)

P.S - I am assuming your project_address is right and without 'http://'

Post a Comment for "Getting 'refreshing Due To A 401' When Trying To Connect Using Remote_api"