> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging Guide

This page contains instructions to debug common errors.

We try to make our product intuitive, but there are still cases where things get confusing or just don't work. This page is a guide to debug the rough edges that people sometimes experience when using the product.

## Making a test request in the sandbox

> [accordion] AttributeError: 'NoneType' object has no attribute
>
> You need to train your model before invoking it. Click **Train** to load the
> model into memory before making an invocation.

## Installing dependencies

> [accordion] ModuleNotFoundError
>
> Make sure your Python dependencies are added to the **Dependencies** section.
> If you need to customize your container, you can use `setup.sh`, but please
> try to install dependencies in the dependencies section first.

## Calling the API

> [accordion] 400 responses
>
> Make sure your request includes the fields you defined in `handler.py`. The
> handler will enforce whichever fields you specify - if your handler expects to
> receive a string field, it will return a 400 if you pass in a float.

> [accordion] 404 responses
>
> This can happen when the `slai-cli` SDK is outdated. Run `pip install   --upgrade slai-cli` to upgrade to the latest version.

## Additional Support

> [card] [Is your issue not covered here?](http://calendly.com/elimernit/30min)
>
> Please reach out to us. We will help you fix it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.