java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.

GitHub | jsnowacki | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Issues getting JSON credentials to work in JAR file

    GitHub | 4 months ago | jsnowacki
    java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.
  2. 0

    GCS provider ID must be specified even if not using GCS

    GitHub | 8 months ago | tomwhite
    java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder. at shaded.cloud-nio.com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
  3. 0

    GitHub comment 1502#274350354

    GitHub | 3 months ago | val-litvak
    java.lang.NoSuchMethodError: org.json.JSONTokener.<init>(Ljava/io/InputStream;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1731#285819284

    GitHub | 2 months ago | Orbyt
    java.security.AccessControlException: access denied ("java.io.FilePermission" "/Users/example/.config/gcloud/active_config" "read")

  1. arturgajowy 15 times, last 1 week ago
  2. batwalrus76 3 times, last 2 weeks ago
  3. Andreas Häber 2 times, last 4 weeks ago
  4. Handemelindo 1 times, last 5 months ago
  5. tfr 1 times, last 8 months ago
7 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Preconditions.checkArgument
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
    1 frame
  3. com.google.cloud
    StorageOptions$Builder.build
    1. com.google.cloud.ServiceOptions.<init>(ServiceOptions.java:283)
    2. com.google.cloud.HttpServiceOptions.<init>(HttpServiceOptions.java:179)
    3. com.google.cloud.storage.StorageOptions.<init>(StorageOptions.java:69)
    4. com.google.cloud.storage.StorageOptions.<init>(StorageOptions.java:27)
    5. com.google.cloud.storage.StorageOptions$Builder.build(StorageOptions.java:64)
    5 frames