Code Monkey home page Code Monkey logo

Comments (9)

matejkramny avatar matejkramny commented on June 23, 2024

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.

athieriot avatar athieriot commented on June 23, 2024

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.

athieriot avatar athieriot commented on June 23, 2024

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.

craftbyte avatar craftbyte commented on June 23, 2024

Seems like you don’t use the API key or have set the wrong one

from cachet-monitor.

matejkramny avatar matejkramny commented on June 23, 2024

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.

athieriot avatar athieriot commented on June 23, 2024

I will take a look at this API key but what worries me is that it worked fine for a while

from cachet-monitor.

matejkramny avatar matejkramny commented on June 23, 2024

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.

athieriot avatar athieriot commented on June 23, 2024

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.

athieriot avatar athieriot commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.