google / google/agi

AGI fails to retrieve Angle from URL

Open
#1,438 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

**Environment information:**
- AGI version: 2024 3.3.3
- Host OS: Mac OS Sequoia 15.7.4

**Bug description**
When attempting to capture a frame trace, AGI states taht Angle must be installed on the device first. When clicking the "Install Angle" button, an error popup is shown.
URL returns 403, forbidden.
Copy-pasting the URL directly in a browser returns the following XML

```

AccessDenied
Access denied.
Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).

```

The java stacktrace itself is

```
java.io.IOException: Server returned HTTP response code: 403 for URL: https://agi-angle.storage.googleapis.com/103.0.5024.0/17154_angle-arm_64.apk
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at com.google.gapid.util.URLs.downloadWithProgressUpdates(URLs.java:40)
at com.google.gapid.views.TracerDialog$InstallAngleDialog.downloadAndInstall(TracerDialog.java:1636)
at com.google.gapid.views.TracerDialog$InstallAngleDialog.lambda$showDialogAndInstallApk$0(TracerDialog.java:1554)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://agi-angle.storage.googleapis.com/103.0.5024.0/17154_angle-arm_64.apk
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.base/java.net.URLConnection.getHeaderFieldLong(Unknown Source)
at java.base/java.net.URLConnection.getContentLengthLong(Unknown Source)
at java.base/java.net.URLConnection.getContentLength(Unknown Source)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Unknown Source)
at com.google.gapid.util.URLs.downloadWithProgressUpdates(URLs.java:37)
... 12 more

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.