Errata

FastAPI

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Other Digital Version
chapter 8, "Multiple Routers"
NA

Example 8-8. Connect the main application (main.py) to the subrouter

from fastapi import FastApi --> should be "from fastapi import FastAPI"

Under "Stub and Fake Data", 2nd paragraph, misspelled the in "defines ths layers".

Anonymous  Aug 19, 2023  Nov 06, 2023
Other Digital Version
Chapter 8
Example 8-14. New endpoints for web/explorer.py

In the example 8-14 line 20 def create(explorer: Creature) -> Creature: should be def create(creature: Creature) -> Creature.

Matt Klabacka  Oct 05, 2023  Nov 06, 2023
Other Digital Version
3. Overview
In the "URL Path" section

Really enjoyed the book! The lighthearted tone was refreshing and I got a lot out of this. Can't wait for the full version to see what's coming to fill the placeholders. I found 2 errors, though - no big deal. Note, I had to format this in a weird way because O'Reilly's errata submission form apparently doesn't like URLs and would not allow me to submit the form with the examples typed out properly...which is a very weird thing to do in a web form for technical books that by their nature will have lots of URLs in them. Go figure.

In the example code for the 'requests' module:

→ >>> import requests
>>> r = requests.get("localhost:8000/hi/Mom")
>>> r.json()
'Hello? Mom?'

The h t t p : / / was left out. Should be ("h t t p : / / localhost : 8000 / hi / Mom")

Also in section 4. The Web Parts, under Types of Concurrency, 2nd paragraph: simple typo. Says 'machiner' when I'm pretty sure you meant 'machine'.

Thanks again! Good stuff!

Curtis Roy  Jan 16, 2023  Nov 06, 2023