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

**URL:** <https://forum.devtalk.com/t/design-and-build-great-web-apis-curl-returns-error-instead-of-activity-page-9/87197>\
**Category:** PragProg Customers\
**Tags:** book-design-and-build-great-web-apis, question\
**Created:** [14 December 2022 17:02 UTC](https://forum.devtalk.com/t/design-and-build-great-web-apis-curl-returns-error-instead-of-activity-page-9/87197 "2022-12-14T17:02:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javier](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@javier](https://forum.devtalk.com/u/javier)\
**Post date:** [14 December 2022 17:02 UTC](https://forum.devtalk.com/t/design-and-build-great-web-apis-curl-returns-error-instead-of-activity-page-9/87197/1 "2022-12-14T17:02:27Z")

</div>

Trying out the example on page 9:

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

```

returns:

```auto
<!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?

---

<div class="post-metadata">

**Author:** ![KurtBruhnke](https://forum.devtalk.com/user_avatar/forum.devtalk.com/kurtbruhnke/32/4858_2.png) [@KurtBruhnke](https://forum.devtalk.com/u/KurtBruhnke)\
**Post date:** [15 February 2023 21:08 UTC](https://forum.devtalk.com/t/design-and-build-great-web-apis-curl-returns-error-instead-of-activity-page-9/87197/2 "2023-02-15T21:08:54Z")

</div>

### @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](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

---

<div class="post-metadata">

**Author:** ![Erica](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/e/9dc877/32.png) [@Erica](https://forum.devtalk.com/u/Erica)\
**Post date:** [15 February 2023 21:22 UTC](https://forum.devtalk.com/t/design-and-build-great-web-apis-curl-returns-error-instead-of-activity-page-9/87197/3 "2023-02-15T21:22:36Z")

</div>

Please shoot off a message to [support@pragprog.com](mailto:support@pragprog.com). Let’s see what we can do about this
