rahulrav
03/12/2020, 3:44 PMEvan R.
03/12/2020, 3:49 PMEvan R.
03/12/2020, 3:49 PMwithContext() { }
Evan R.
03/12/2020, 3:50 PMwithContext(<http://Dispatchers.IO|Dispatchers.IO>) { }
rahulrav
03/12/2020, 3:51 PMval oauthScope = "<scope>"
val accessToken = AppIdentityServiceFactory.getAppIdentityService().getAccessToken(listOf(oauthScope))
call.respondText {
accessToken.accessToken
}
I get this:
SEVERE: Something bad happened
com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call memcache.Get in a thread that is neither the original request thread nor a thread created by ThreadManager
at com.google.apphosting.api.ApiProxy$CallNotFoundException.foreignThread(ApiProxy.java:800)
at com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:179)
at com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:176)
at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:89)
at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26)
at com.google.appengine.api.memcache.MemcacheServiceImpl.get(MemcacheServiceImpl.java:49)
at com.google.appengine.api.appidentity.AppIdentityServiceImpl.getAccessToken(AppIdentityServiceImpl.java:288)
at androidx.snapshots.RequestHandlersKt$main$3.invokeSuspend(RequestHandlers.kt:30)
rahulrav
03/12/2020, 3:52 PMThread
which was not created by ThreadManager
at allEvan R.
03/12/2020, 3:53 PMrahulrav
03/12/2020, 3:54 PMEvan R.
03/12/2020, 4:02 PMwithContext() { }
to that dispatcherrahulrav
03/12/2020, 4:46 PM