Design and Build Great Web APIs: curl returns error instead of activity (page 9)

Trying out the example on page 9:

​ curl https://activity-atk.herokuapp.com/list

returns:

<!DOCTYPE html>
        <html>
          <head>
                <meta name="viewport" content="width=device-width, initial-scale=1">
                <meta charset="utf-8">
                <title>Application Error</title>
                <style media="screen">
                  html,body,iframe {
                        margin: 0;
                        padding: 0;
                  }
                  html,body {
                        height: 100%;
                        overflow: hidden;
                  }
                  iframe {
                        width: 100%;
                        height: 100%;
                        border: 0;
                  }
                </style>
          </head>
          <body>
                <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
          </body>
        </html

Any ideas?

1 Like

@mamund

I was able to obtain the files by downloading the source code from a link on the pragmatic programmers website.

https://media.pragprog.com/titles/maapis/code/maapis-code.zip

I suspect this problem may stem from the fact that Heroku recently eliminated their free tier, though I hope I am wrong about that being the cause.

I was able to finish chapter one by downloading the files, and I hope I’ll be able to work through the rest of the exercises in the book without the URLs working. I figure that so long as the book doesn’t have us building anything using the (former) free tier on Heroku, we should be okay.

Regards,
Kurt

1 Like

Please shoot off a message to support@pragprog.com. Let’s see what we can do about this

1 Like