Scenario 1: GCP Data retrieval via API failed
There are different reasons for live retrieve failure.
Insufficient authentication scopes
Error Code: API-004-005
Description
NetBrain does require the authentication token for OAuth Client account to be refreshed periodically. If the token has expired, the data retrieval via API server will fail. This can affect GCP discovery, NCT table retrieval and running individual parsers in DVT templates.
Troubleshoot
GCP Parser Failure – The below error can be encountered while running the GCP parsers that access GCP API to fetch the data defined in DVT templates. This is an authentication error due to token expiry when using the OAuth client account and can be encountered during any data retrieval like NCT table, retrieval, discovery, GCP Parser that use GCP API to fetch the data, the corresponding logs can be checked in Worker Server and Front Server logs. Search for "ACCESS_TOKEN_SCOPE_INSUFFICIENT" or "insufficient authentication scopes".

If you are using OAUTH client account to access API server and find an error message containing "ACCESS_TOKEN_SCOPE_INSUFFICIENT", refresh the token. For the detailed procedures to refresh the token, refer to GCP Quick Setup Guide.
If you cannot find the root cause and fix the issue, collect the data and feedback for further troubleshooting.
Collect Data:
- Python Error Logs: Copy the python error logs from the worker server and front server. Make sure the timestamp of the log is within the issue happened. (Enable the python log print first before collecting logs data.)
- Python debug Logs: Copy the python debug logs from the worker server and front server. Make sure the timestamp of the log is within the issue happened. (Enable the python log print first before collecting logs data.)
- API Raw Data: Only collect it upon the Dev Team’s request and the customer’s approval. For more information, contact NetBrain Support.
Sample Case
N/A