Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

kimmobrunfeldt/heroku-hapi-503-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Hapi 503 Bug

Press this to deploy this "app" to Heroku. It takes 1 min to have the app running

Deploy

Minimal Hapi code base to reproduce random 503 status code bugs in Heroku.

To test the behavior, run the following command enough times. At some point Heroku should respond with 503 Application Error even though the request is the same all the time.

curl -d'a' https://heroku-hapi-503-bug.herokuapp.com

With the exact same commands, sometimes you get normal response, sometimes 503 Application Error, with reason "Server Request Interrupted".

Deploy

  • Create a Heroku app
  • Push this repo to Heroku with heroku-hapi-503-bug as app name.
  • Run the command above

Testing commands

echo -n -e "POST /pong HTTP/1.0\r\nHost: heroku-hapi-503-bug.herokuapp.com\r\nx-gw-secret: a\r\nContent-Length: 2\r\n\r\n01" | openssl s_client -ign_eof -connect heroku-hapi-503-bug.herokuapp.com:443

About

Minimal Hapi code base to reproduce random 503 status code bugs in Heroku.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published