Learn how to resolve some errors raised by Security Command Center. This topic discusses errors whose resolutions require more steps than can be easily described in an error message.
Notifications
You might get the following errors when you use the Security Command Center API notifications feature.
Error reading credential file from environment variable
java.lang.RuntimeException: java.io.IOException: Error reading credential file
from environment variable GOOGLE_APPLICATION_CREDENTIALS
This error occurs when you try to use the Security Command Center notifications API and the service account keys aren't accessible. To resolve this error, do the following:
- Complete the steps to set up a service account and get the service account key.
- If you're using an IDE like Intellij, make sure that your development environment is configured to point to the location where the service account key is stored.
Invalid choice: add-iam-policy-binding
ERROR: (gcloud.pubsub.topics) Invalid choice: 'add-iam-policy-binding'
This error most commonly occurs when you aren't using the most current version of the Google Cloud CLI. To resolve this error, update to the latest gcloud CLI version by running:
gcloud
components
update
Web Security Scanner
To contact us about the error messages below, send feedback about the specific scan.
4xx
or 5xx
HTTP responses. Verify your
scanning credentials and the target URL. If the problem continues to
occur, file a bug
.There is a time limit for each stage of the crawler.
- If you have a large site, then this error may occur. File a feature request , and the team can manually increase your crawl timeout.
- If you have a small site, then something might have gone wrong with the crawler. File a bug with your scan details to request a review.
Fixing issues
If Web Security Scanner reports an issue, you need to disable browser cross-site scripting (XSS) protection and then verify the location. For more information, see Verify the issue .
What's next
Learn about Security Command Center errors .

