1
votes

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
Standard Environment
h2 DB
Spring boot

The stack trace from Google Cloud:

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)

I've got new data using Stackdriver debug.

"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.",

2
Concerning the 2nd Error message you provided, have you already enabled the Stackdriver Debugging API? If not, then by following these steps you can enable it. - dhauptman
Yes, it's enabled. I've tried disabling, enabling and waiting too. - emer

2 Answers

1
votes

The log wasn't very informative. I change the application port from 8000 to 8080.

application.properties: server.port=${PORT:8080}

Now the app is running fine.

1
votes

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.

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.