# Troubleshooting (https://docs.cochl.ai/docs/pro/troubleshooting)



Find the symptom you’re seeing, then follow the link to the page that explains it.

## Requests and keys [#requests-and-keys]

| Symptom                                                                                               | Where it’s explained                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `401` with `API key required`                                                                         | [Error codes → API key required](https://docs.cochl.ai/docs/pro/error-codes#api-key-required)                                                                                                                                           |
| `401` with `Invalid API key`, or `CochlSenseException: Unauthorized`                                  | [Error codes → Invalid API key](https://docs.cochl.ai/docs/pro/error-codes#invalid-api-key) · [FAQs → My project key doesn’t work](https://docs.cochl.ai/docs/pro/faq#faq-4-1)                                                                               |
| `400` with `No services selected`                                                                     | [Error codes → No services selected](https://docs.cochl.ai/docs/pro/error-codes#no-services-selected) · [Getting Started → Valid service combinations](https://docs.cochl.ai/docs/pro/getting-started#4-valid-service-combinations)                          |
| `400` with `cannot decode …`, `empty file`, or `no audio samples found in file` when uploading a file | [Error codes → decode failure](https://docs.cochl.ai/docs/pro/error-codes#audio-decode-failure) · [Getting Started → Convert to supported file formats](https://docs.cochl.ai/docs/pro/getting-started#1-convert-to-supported-file-formats-mp3-wav-flac-ogg) |
| `402` with `exceeded maximum usage limit`, or the trial minutes are used up                           | [Error codes → usage limit exceeded](https://docs.cochl.ai/docs/pro/error-codes#usage-limit-exceeded) · [FAQs → free trial minutes](https://docs.cochl.ai/docs/pro/faq#faq-1-1)                                                                              |
| `422` with `Validation error`                                                                         | [Error codes → undefined option key](https://docs.cochl.ai/docs/pro/error-codes#validation-extra-forbidden) · [required field missing](https://docs.cochl.ai/docs/pro/error-codes#validation-missing-field)                                                  |

## Results and the Python library [#results-and-the-python-library]

| Symptom                                                                                                          | Where it’s explained                                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| The job is `completed`, but one service has `status: "error"`                                                    | [Error codes → §4 Service errors inside job results](https://docs.cochl.ai/docs/pro/error-codes#4-service-errors-inside-job-results-asynchronous)                        |
| `sound_event_detection` has `status: "error"` (`This service could not process the audio…`) on a very short file | The audio is shorter than 2 seconds — [Error codes → max\_workers must be greater than 0](https://docs.cochl.ai/docs/pro/error-codes#max-workers-must-be-greater-than-0) |
| Every speech segment has `speaker_name: "Unknown …"`                                                             | [Speech analysis → When every speaker is Unknown](https://docs.cochl.ai/docs/pro/speech-analysis#when-speaker_name-is-missing)                                           |
| `get_completed_result()` returns `None`                                                                          | [Error codes → §6.1 `IntegratedApi`](https://docs.cochl.ai/docs/pro/error-codes#61-integratedapi-audio-analysis--project-key)                                            |
| `except Exception:` doesn’t catch API errors                                                                     | [Error codes → §6 Errors in the Python library](https://docs.cochl.ai/docs/pro/error-codes#6-errors-in-the-python-library)                                               |
| The exception message is only `Unauthorized` / `Bad Request`, not the server’s message                           | [Error codes → §6.1 `IntegratedApi`](https://docs.cochl.ai/docs/pro/error-codes#61-integratedapi-audio-analysis--project-key)                                            |
| You need more detail about an error, or want to contact support                                                  | [FAQs → How can I get more information about an error?](https://docs.cochl.ai/docs/pro/faq#faq-4-0)                                                                      |

## Speaker profiles [#speaker-profiles]

| Symptom                                                                                   | Where it’s explained                                                                                                                                               |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `speaker is invalid. only alphabet, number and underscore are allowed`                    | [Error codes → speaker is invalid](https://docs.cochl.ai/docs/pro/error-codes#speaker-is-invalid)                                                                                       |
| `max speakers (50) exceeded for organization` or `max voices (20) exceeded for speaker …` | [Error codes → max speakers exceeded](https://docs.cochl.ai/docs/pro/error-codes#speaker-max-count-exceeded) · [max voices exceeded](https://docs.cochl.ai/docs/pro/error-codes#speaker-max-voices-exceeded) |
| `file is bigger than … MB`, or `enroll failed`                                            | [Error codes → file bigger than 10 MB](https://docs.cochl.ai/docs/pro/error-codes#file-bigger-than-10-mb) · [enroll failed](https://docs.cochl.ai/docs/pro/error-codes#enroll-failed)                        |
| `401` with `x_org_key required` or `organization not found`                               | [Error codes → x\_org\_key required](https://docs.cochl.ai/docs/pro/error-codes#x-org-key-required) · [organization not found](https://docs.cochl.ai/docs/pro/error-codes#organization-not-found)            |
| A registered speaker isn’t recognized (`is_compatible` is `false`)                        | [Custom sound: Speaker profile → Best practices & limitations](https://docs.cochl.ai/docs/pro/speech-analysis/custom-speaker-profile#6-best-practices--limitations)                     |
