Comments (9)
Hi, is that the full stack trace?
It doesn't have the error which would help a lot to debug the issue.
Thanks
from cachet-monitor.
Hi,
This error keeps repeating over and over so I thought it was the full stack trace.
I will try to go back further and see if there is an error on top of the logs.
from cachet-monitor.
Ah you were right ! There is a top level error:
2015/04/23 08:59:48 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:42: Cannot parse incidents: invalid character '<' looking for beginning of value
2015/04/23 08:59:48 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:42: Cannot parse incidents: invalid character '<' looking for beginning of value
2015/04/23 08:59:48 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:69: 401 <html>
<head><title>401 Authorization Required</title></head>
<body bgcolor="white">
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>
2015/04/23 08:59:48 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:74: Cannot parse incident body.
panic: invalid character '<' looking for beginning of value
goroutine 5872 [running]:
github.com/castawaylabs/cachet-monitor/cachet.(*Incident).Send(0xc2080ee8a0)
/go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:75 +0x767
github.com/castawaylabs/cachet-monitor/cachet.(*Monitor).AnalyseData(0xc2080101c0)
/go/src/github.com/castawaylabs/cachet-monitor/cachet/monitor.go:96 +0x8dc
github.com/castawaylabs/cachet-monitor/cachet.(*Monitor).Run(0xc2080101c0)
/go/src/github.com/castawaylabs/cachet-monitor/cachet/monitor.go:34 +0x1e0
created by main.main
/go/src/github.com/castawaylabs/cachet-monitor/main.go:26 +0x671
goroutine 1 [chan receive]:
main.main()
/go/src/github.com/castawaylabs/cachet-monitor/main.go:24 +0x601
So it seems one of my service returns HTML content as a 401 error.
Would you see it should be fixed upstream of this should be handled by cachet-monitor
?
from cachet-monitor.
Seems like you don’t use the API key or have set the wrong one
from cachet-monitor.
As @craftbyte pointed out, its an authentication failure for the Cachet API.
cachet-monitor
is either configured incorrectly, or the API key has changed and stopped working.
I think this should be caught by cachet-monitor
and should quit gracefully or user friendly.. We'll keep this in mind when a new version.
from cachet-monitor.
I will take a look at this API key but what worries me is that it worked fine for a while
from cachet-monitor.
It did because it didn’t contact the API until an incident happened.
This won’t happen once we release the email notifications for cachet-monitor.
Best,
Matej Kramny
from cachet-monitor.
It successfully reported some incidents before.
I'll try to regenerate the token key but I understand better now.
Thanks for your help, I'll try to keep this issue up to date if I manage to make it work.
from cachet-monitor.
Ok my bad...
There was an htpasswd configuration there for some reason.
Sorry for the troubles for nothing !
Thanks a lot again
from cachet-monitor.
Related Issues (20)
- Public / Subscriber incident status HOT 1
- Metric time is 1 hour wrong HOT 2
- Could Not log metric HOT 1
- Metrics not showing
- Getting HTTP response 400 for POST request
- Add method Ping HOT 2
- Send payload with post request HOT 1
- Metric is empty
- invalid character '<' looking for beginning of value
- How can I monitor websites where client certs are required? HOT 2
- Update incident using the update function
- Installation issues HOT 3
- Could not log metric HOT 1
- Unable to open file config
- Status Monitor setup
- Setup monitor HOT 1
- HTTPs "strict: false" is not working HOT 2
- Status check not working on one site
- Deprecated? Maintained? Updates? Archive it?
- I keep getting WARN[0000] API URL or API Token missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachet-monitor.