
javier
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?
Most Liked

KurtBruhnke
@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

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









Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)

Other popular topics









Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /haskell
- /java
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /centos
- /ash
- /php
- /deepseek
- /scala
- /zig
- /html
- /debian
- /nixos
- /lisp
- /agda
- /textmate
- /sublime-text
- /react-native
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /manjaro
- /spring
- /django
- /diversity
- /nodejs
- /lua
- /slackware
- /julia
- /c
- /neovim