GithubHelp home page GithubHelp logo

drax's People

Contributors

juliusczar avatar mhausenblas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

drax's Issues

invalid memory address or nil pointer dereference when rampage endpoint is hit

This is the error I get:

2016/12/22 10:19:10 http: panic serving IP.IP.IP.IP:51686: runtime error: invalid memory address or nil pointer dereference
goroutine 20 [running]:
net/http.(*conn).serve.func1(0xc820104600)
	/usr/local/go/src/net/http/server.go:1389 +0xc1
panic(0x7aa9e0, 0xc82000a0d0)
	/usr/local/go/src/runtime/panic.go:443 +0x4e9
main.NOUN_Rampage.ServeHTTP(0x7f00dc16c9c0, 0xc820110410, 0xc8201302a0)
	/Users/mhausenblas/Dropbox/dev/work/src/github.com/dcos-labs/drax/api.go:62 +0xbfb
main.(*NOUN_Rampage).ServeHTTP(0xa38920, 0x7f00dc16c9c0, 0xc820110410, 0xc8201302a0)
	<autogenerated>:2 +0xab
net/http.(*ServeMux).ServeHTTP(0xc8200110b0, 0x7f00dc16c9c0, 0xc820110410, 0xc8201302a0)
	/usr/local/go/src/net/http/server.go:1910 +0x17d
net/http.serverHandler.ServeHTTP(0xc820018180, 0x7f00dc16c9c0, 0xc820110410, 0xc8201302a0)
	/usr/local/go/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc820104600)
	/usr/local/go/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:2137 +0x44e

my post call is to Myip:7777/rampage?level=0

0.2.0 version works fine for me.

Get a 404 on hitting rampage endpoint

Hi Matt,

While /health and /stats are working fine, /rampage is failing for me

Getting the following
ore@ip-10-10-3-224 ~ $ curl -v http://localhost:7777/rampage

  • Trying 127.0.0.1...
  • Connected to localhost (127.0.0.1) port 7777 (#0)

GET /rampage HTTP/1.1
Host: localhost:7777
User-Agent: curl/7.48.0
Accept: /

< HTTP/1.1 404 Not Found
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Tue, 21 Mar 2017 11:08:18 GMT
< Content-Length: 19
<
404 page not found

  • Connection #0 to host localhost left intact

Also the POST requests are also failing with empty reply:
core@ip-10-10-3-224 ~ $ curl --data "level=1&app=nginx" http://localhost:7777/rampage
curl: (52) Empty reply from server
core@ip-10-10-3-224 ~ $ curl --data "level=0" http://localhost:7777/rampage
curl: (52) Empty reply from server

Any idea?

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.