Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

401 Unauthorized since last week #22

Open
aserrallerios opened this issue Jul 10, 2019 · 5 comments
Open

401 Unauthorized since last week #22

aserrallerios opened this issue Jul 10, 2019 · 5 comments

Comments

@aserrallerios
Copy link

Hello,

When I run:

docker run -p 8000:8000 giantswarm/prometheus-pingdom-exporter:latest server user pass apikey

I got:

2019/07/10 09:28:06 Listening on port 8000
2019/07/10 09:28:06 Error getting checks 401 Unauthorized: No credentials provided
2019/07/10 09:28:16 Error getting checks 401 Unauthorized: No credentials provided

It was working a week ago. Nothing changed on our side.

The credentials are still valid:

curl -H 'App-Key: {apikey}' -H 'Authorization: Basic {encoded user:pass}' https://api.pingdom.com/api/2.1/probes

Could something have changed recently? Can I get additional debug output somehow?

@jramst
Copy link

jramst commented Jul 11, 2019

We have run into the same issue as well. The exporter started reporting this error in three separate environments on 2019-07-04 around 13:50 CEST.

So far, I've managed to see that the docker image seems to be utilizing an older release of the library go-pingdom (https://github.com/russellcardullo/go-pingdom/) which uses an older version of the Pingdom api (https://api.pingdom.com/api/2.0), but direct calls using Postman, with the same credentials, to the older version of the API still gives valid responses.

@pmauduit
Copy link

pmauduit commented Jul 11, 2019

Same issue as well, taking contact with the pingdom support did not really help

@pmauduit
Copy link

if needed you can use the camptocamp docker image to fix the issue:

camptocamp/prometheus-pingdom-exporter:20190610-1

In fact the codebase already integrates a sufficiently recent version of the pingdom-go module (from my understanding), but the giantswarm image has not been updated for 3 years on docker-hub.

@bohdanlykhitkoexp
Copy link

This issue still exist!
Also, camptocamp/prometheus-pingdom-exporter always returned:
Error getting checks 403 Forbidden: Invalid application key
when API key works good using curl.
Do anyone know any other pingdom exporters for prometheus?

@pmauduit
Copy link

Error getting checks 403 Forbidden: Invalid application key

Since we are still using it in production, you might have an issue with the way you configured it. I just relaunched the container on one of our setups to check if something changed recently, and we don't have any of these 403 you mentioned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants