Errata

Building Web APIs with Flask

Errata for Building Web APIs with Flask

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version 2
Introduction

Speaking of Orders API at the introduction, it returns error:

http: error: ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /customers/ (Caused by <class 'ConnectionRefusedError'>: [Errno 61] Connection refused)

After run.py is executed in "orders" directory, it shows different message:

(venv) MacPro:oreilly-flask-apis-video$ http get http://localhost:5000/customers/
HTTP/1.0 404 NOT FOUND
Content-Length: 80
Content-Type: application/json
Date: Tue, 29 Mar 2016 07:43:48 GMT
Server: Werkzeug/0.9.6 Python/3.4.1

{
"error": "not found",
"message": "invalid resource URI",
"status": 404
}


Anonymous  Mar 29, 2016