Skip to content

Error index

A Drafter error page starts with a title in large letters, followed by a sentence that describes the problem and then a technical message. Look at the title first and find it in the first table below. Some titles cover several different problems, and for those the table also gives a phrase to look for in the message. If your problem has no title, or the title is not listed, use the second table, which is organized by the words in the message.

You can also search for either one. Use your browser's find-in-page (Ctrl+F) or the site search with the title, or with a distinctive phrase from the message, in quotes.

By the title on the error page

The title The message contains Go to
Route Did Not Return a Page Any message Route did not return a Page
State Changed Type Any message State doesn't match the State class
Components Share a Name Any message Two components share a name
Problem With the Route's Arguments expects a value for parameter ... but none was provided Route is missing a parameter a form expected
Problem With the Route's Arguments expects int but got Could not convert text to an int
Problem With the Route's Arguments expects float but got, or another type Could not convert a value to the parameter's type
Problem With the Route's Arguments does not look like unicode (utf-8) text Uploaded file couldn't be read as text
Problem With the Route's Arguments but no value was provided by Blank values
Button Points to a Missing Page, or Link Points to a Missing Page Any message Link or button points to an unknown route
Page Content Problem Any message Page content must be a list of strings, numbers, booleans, or components
SelectBox Default Is Not an Option Any message SelectBox default not in options
Header Level Out of Range Any message Header level must be 1-6
Page Not Found No route found for URL Link or button points to an unknown route
Module Not Found No module named A library import fails in the browser
File Not Found File not found, on the deployed site only Image or file works locally but 404s when deployed
Unknown Name, Type Mismatch, Unusable Value, Missing Attribute, List Position Out of Range, Missing Dictionary Key, Division by Zero, Endless Recursion, or Problem Loading This Page A message from Python Python's own errors
Error, on a dialog that says "Error running student code" ModuleNotFoundError A library import fails in the browser
Website File Not Found, or Website File Name Has Different Capital Letters, printed in the terminal Any message add_website_file

By message text

The message contains Go to
finished without returning a Page, or did not return a Page() object Route did not return a Page
points to non-existent page Link or button points to an unknown route
expects a value for parameter ... but none was provided Route is missing a parameter a form expected
was sent to ..., but the function has no matching parameter (a warning in the debug panel) A form field with no matching parameter
expects int but got Could not convert text to an int
expects float but got, or another type Could not convert a value to the parameter's type
expects ... but no value was provided by Blank values
has a state that is a ..., but the previous state was a ... State doesn't match the State class
changed the site state from ... to ... (a warning in the debug panel) A warning about the state's type
must be a list of strings, numbers, booleans, or components, must be given as one list, or Unsupported page content type Page content must be a list of strings, numbers, booleans, or components
has multiple components with the same name Two components share a name
default_value ... is not in options SelectBox default not in options
Header level must be between 1 and 6 Header level must be 1-6
Circular Reference in a generated test Circular Reference appears in generated tests
A file does not look like unicode (utf-8) text Uploaded file couldn't be read as text
404 for an image or file on the deployed site Image or file works locally but 404s when deployed
A red X on your GitHub deployment GitHub Actions build failed
ModuleNotFoundError, or No module named A library import fails in the browser
Camera access denied, Microphone access denied, or Location access denied Device permission denied
The address of this page named a route that needs values from a form or a button (a warning in the debug panel) Reloading the tab shows a page I did not expect
The browser could not load one of the images (a warning in the debug panel) A picture shows as a broken image
has code after start_server(...) in the terminal, or comes after start_server(...) (a warning in the debug panel) Code after start_server() never runs
Unknown start_server option in the terminal, or start_server was given an option named (a warning in the debug panel) start_server

Not an error, but broken anyway

Python's own errors

NameError, TypeError, IndexError, and similar messages come from Python itself, not from Drafter. When one of them happens while a route runs, Drafter shows an error page with a plain-language title such as "Unknown Name", "Type Mismatch", or "List Position Out of Range", and a sentence that explains the problem above the traceback. A ValueError appears as "Unusable Value", and an error that has no title of its own appears as "Problem Loading This Page". Read the explanation first, then go to the line the traceback names. A SyntaxError in your file does not produce an error page. The site keeps showing the last working version, and a dialog titled "Syntax Error" names the line to fix. The habits in Reading an error page apply here as well.

How these pages work

Every entry follows the same eight steps: the error verbatim, what it means, where to look, how to check which cause you have, the fix, how to confirm, how to prevent it, and a link to the concept page that addresses the underlying misunderstanding. If your error is not listed and the friendly message does not resolve the problem, consider a bug report; this index grows from the errors students actually encounter.