Skip to content

Commit

Permalink
Merge pull request #208 from vantage-sh/api-k8s-error
Browse files Browse the repository at this point in the history
Add error details for missing token K8s agent
  • Loading branch information
vansia43 authored Dec 3, 2024
2 parents d13ee0f + 715272d commit 70207a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/kubernetes_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ AKS users should remember to follow the [AKS-specific instructions](/kubernetes_

## Common Errors

### Failed to Fetch Presigned URL — API Token Error {#presigned-url-api}

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:

```bash
{"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\""}
```
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.
### DNS Lookup Error {#dns-lookup-error}
You may receive a DNS Lookup Error that indicates `"level":"ERROR","msg":"failed to scrape node"` and `no such host`.
Expand Down

0 comments on commit 70207a5

Please sign in to comment.