menu

App Dev: Adding User Authentication to your Application - Python

Go to Lab

1983 Reviews

Lab doesn't work out of the box. When I start the website, before making any changes, I get this error: 400. That’s an error. The requested URL was not found on this server. That’s all we know. Additional details (only visible to internal users!): com.google.apps.framework.request.HttpStatusException: <eye3 title='SshRelayException(DEVSHELL_NO_CURRENTLY_ATTACHED_VM)'/> DEVSHELL_NO_CURRENTLY_ATTACHED_VM (canonical=FAILED_PRECONDITION, message=No currently attached VM for the user) at com.google.cloud.services.sshrelay.common.SshRelayException.toHttpStatusException(SshRelayException.java:62) at com.google.common.util.concurrent.Futures$1.apply(Futures.java:154) at com.google.common.util.concurrent.Futures$1.apply(Futures.java:151) at com.google.common.util.concurrent.AbstractCatchingFuture$AsyncCatchingFuture.doFallback(AbstractCatchingFuture.java:192) at com.google.common.util.concurrent.AbstractCatchingFuture$AsyncCatchingFuture.doFallback(AbstractCatchingFuture.java:179) at com.google.common.util.concurrent.AbstractCatchingFuture.run(AbstractCatchingFuture.java:124) at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1169) at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:963) at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:754) at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:100) at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1169) at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:963) at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:754) at com.google.apps.framework.producers.NodeScheduler$NodeFuture.runNode(NodeScheduler.java:566) at com.google.apps.framework.producers.NodeScheduler$NodeFuture.run(NodeScheduler.java:518) at com.google.common.context.ContextRunnable.runInContext(ContextRunnable.java:89) at com.google.common.context.ContextRunnable$1.run(ContextRunnable.java:78) at io.grpc.Context.run(Context.java:575) at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:185) at com.google.tracing.GenericContextCallback.runInInheritedContextNoUnref(GenericContextCallback.java:67) at com.google.tracing.GenericContextCallback.runInInheritedContext(GenericContextCallback.java:59) at com.google.common.context.ContextRunnable.run(ContextRunnable.java:74) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at com.google.apps.framework.server.AbstractThreadPoolModule$InitializingThreadFactory.lambda$newThread$0(AbstractThreadPoolModule.java:580) at java.lang.Thread.run(Thread.java:748) Suppressed: java.util.concurrent.ExecutionException: Caused by: com.google.cloud.services.sshrelay.common.SshRelayException: <eye3 title='SshRelayException(DEVSHELL_NO_CURRENTLY_ATTACHED_VM)'/> DEVSHELL_NO_CURRENTLY_ATTACHED_VM (canonical=FAILED_PRECONDITION, message=No currently attached VM for the user) at com.google.cloud.services.sshrelay.common.SshRelayException.create(SshRelayException.java:40) at com.google.cloud.services.sshrelay.common.SshRelayException.create(SshRelayException.java:44) at com.google.cloud.services.sshrelay.common.SshRelayException.devshellNoCurrentlyAttachedVm(SshRelayException.java:242) at java.util.Optional.orElseThrow(Optional.java:290) at com.google.cloud.services.sshrelay.apiserver.actions.proxyredirect.DevshellProxyUrlProducerModule.produceMaybeDevshellProxyDatastorePush(DevshellProxyUrlProducerModule.java:231) Suppressed: com.google.common.util.concurrent.UncheckedExecutionException: at com.google.apps.framework.producers.Present.checkSucceeded(Present.java:56) at com.google.cloud.services.sshrelay.apiserver.actions.proxyredirect.DevshellProxyUrlProducerModule.produceDevshellProxyUrl(DevshellProxyUrlProducerModule.java:138) auth.http.creds_encrypted: true auth.http.method: gaia_cookie auth.http.num_sessions: 3 auth.http.session_index: 0 auth.http_scopes.granted: 5204,35600 auth.http_scopes.requested: 5204,35600 auth.security_context.is_anonymous: false auth.security_context.originator: gaiauser/0x4a5eb774af auth.security_context.user: gaiauser/0x4a5eb774af auth.status: OK debug.role: CODE: INTERNAL; EXPERIMENT<enable_code_debug> exp.ChromeExtensionUrl: true exp.ContainerOs: true exp.DevshellUseCanaryAppId: true exp.EnableCloudShellFrontend: true exp.EnableCustomEnvironment: true exp.EnableEmbeddedCloudShellRoute: true exp.EnforceCloudShellD3Policy: true exp.PullCachedCustomImage: true exp.ServeStaticContentFromGateway: true exp.ShowCustomImageDeprecation: true exp.UseApiInWebClient: true exp.UseFirstPartyAuth: true exp.UseWebsocketClient: true expid.18800188: true expid.18800208: true expid.18800266: true expid.18800310: true expid.18800320: true expid.18800326: true expid.18800332: true expid.18800344: true expid.18800350: true expid.18800358: true expid.18800366: true expid.18800368: true expid.18800392: true parameters.environment_id: default parameters.port: 8080 request.action_group: request.host: ssh.cloud.google.com request.language: en request.method: GET request.referer: https://ssh.cloud.google.com/cloudshell/editor?hl=en_US&authuser=2 request.secure: true request.user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36,gzip(gfe),gzip(gfe) response.canonical_code: INVALID_ARGUMENT response.origin: DevshellProxyRedirect response.rounded_status: 400 response.rpc_status: generic::INVALID_ARGUMENT response.status: 400 rpc_client.borg_cell: vl rpc_client.jobname: sshrelay.server rpc_client.primary_role: cloud-sshrelay rpc_client.username: untrusted-http-proxy

Hany M. · Reviewed 3 minutes ago

Juan Manuel R. · Reviewed about 3 hours ago

Francisco M. · Reviewed about 5 hours ago

Jason N. · Reviewed about 9 hours ago

Harish G. · Reviewed about 10 hours ago

Michal J. · Reviewed about 12 hours ago

Kaan K. · Reviewed about 13 hours ago

Nicky L. · Reviewed about 14 hours ago

Gilbert Brian L. · Reviewed about 14 hours ago

Suresh B. · Reviewed about 18 hours ago

Burak Y. · Reviewed 1 day ago

Marcin H. · Reviewed 1 day ago

Followed the instructions closely, found a problem with the last steps with browser errors (JS) for: "InvalidStateError: A mutation operation was attempted on a database that did not allow mutations." and "User is null" when clicking on GCP or Places

John L. · Reviewed 1 day ago

very satisfied

Alexander R. · Reviewed 1 day ago

Sumit S. · Reviewed 1 day ago

Joni L. · Reviewed 1 day ago

Kaan K. · Reviewed 1 day ago

日本語の翻訳がおかしく、間違いだらけでした。英語版でようやくできました。

秦 剛. · Reviewed 1 day ago

日本語がおかしい、よくわかりません。

秦 剛. · Reviewed 1 day ago

Andreas H. · Reviewed 1 day ago

sandheep a. · Reviewed 1 day ago

Mohan Sai T. · Reviewed 1 day ago

Bal Krishna D. · Reviewed 1 day ago

Don't miss, fb 7.5.0 released.

Jared D. · Reviewed 2 days ago

Eduardo C. · Reviewed 2 days ago