Skip to content

Commit 715272d

Browse files
committed
Add error details for missing token
1 parent d13ee0f commit 715272d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/kubernetes_agent.md

+10
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,16 @@ AKS users should remember to follow the [AKS-specific instructions](/kubernetes_
198198

199199
## Common Errors
200200

201+
### Failed to Fetch Presigned URL — API Token Error {#presigned-url-api}
202+
203+
The below error occurs when the agent attempts to fetch presigned URLs but fails due to an invalid `Authorization` header field value. The error log typically looks like this:
204+
205+
```bash
206+
{"time":"2023-12-01T00:00:00.000000000Z","level":"ERROR","msg":"failed to fetch presigned urls","err":"Get \"https://api.vantage.sh/internal/integrations/kubernetes_agent/…": net/http: invalid header field value for \"Authorization\""}
207+
```
208+
209+
This issue is typically caused by incorrect or missing API keys. Ensure the value for the `VANTAGE_API_TOKEN` (obtained in the [Prerequisites](/kubernetes_agent#prerequisites) above) is valid and properly formatted. If necessary, generate a new token and update the configuration.
210+
201211
### DNS Lookup Error {#dns-lookup-error}
202212
203213
You may receive a DNS Lookup Error that indicates `"level":"ERROR","msg":"failed to scrape node"` and `no such host`.

0 commit comments

Comments
 (0)