部署后,Google App Engine返回HTTP响应代码403 [英] After deploy Google App Engine returns HTTP response code 403

查看:48
本文介绍了部署后,Google App Engine返回HTTP响应代码403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了另一次部署,一切都很好,但是在完成应用程序后,出现了此错误.页面请求不断加载.
我需要在"IAM"中进行配置吗?

I've done another deploys and all was fine, but after finishing the app, I'm getting this error. And the page request keeps loading.
Do I need to configure something in "IAM"?

Java 11
标准环境
h2 DB
春季靴子

Java 11
Standard Environment
h2 DB
Spring boot

来自Google Cloud的堆栈跟踪:

The stack trace from Google Cloud:

java.io.IOException:服务器返回HTTP响应代码:403,用于URL: httpsjava.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1919)上的://clouddebugger.googleapis.com/v2/controller/debuggees/register java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)上的sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)com.google.devtools.cdbg.debuglets.java.GcpHubClient.registerDebuggee(未知来源)

java.io.IOException: Server returned HTTP response code: 403 for URL: https://clouddebugger.googleapis.com/v2/controller/debuggees/register at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1919) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) at com.google.devtools.cdbg.debuglets.java.GcpHubClient.registerDebuggee (Unknown Source)

我使用Stackdriver调试获得了新数据.

I've got new data using Stackdriver debug.

"message":项目中未使用Stackdriver Debugger API929024293238之前或之前被禁用.通过访问启用它 https://console.developers.google.com/apis/api/clouddebugger.googleapis.com/overview?project = 929024293238 然后重试.如果您最近启用了此API,请等待几分钟传播到我们的系统并重试的操作.",

"message": "Stackdriver Debugger API has not been used in project 929024293238 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/clouddebugger.googleapis.com/overview?project=929024293238 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",

推荐答案

请注意其他人是否偶然发现了此错误:我在Google的App Engine仪表板中看到的同一条消息在几分钟内最多弹出了60次.

Just a note if somebody else stumbles across this error: I had the same message in Google's App Engine dashboard popping up up to 60 times in a couple of minutes.

启用上面链接的Stackdriver Debugging API可以解决该问题.不再产生(这种)错误日志.奇怪的是,对于我的标准环境,应该默认情况下已打开Stackdriver Debugging API.

Enabling the Stackdriver Debugging API, as linked above, solved it. No more error logs (of that kind) were being produced. The weired thing is that the Stackdriver Debugging API should have been turned on by default for my standard environment.

这篇关于部署后,Google App Engine返回HTTP响应代码403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆