Corsali
  • Documentation Overview
  • Model API
    • cURL Example
    • Python Example
    • Errors
  • First Time User Guide
    • API Walkthrough
  • Authentication Keys
Powered by GitBook
On this page
  • Unauthorized
  • Organization {} does not have read permissions for model {}
  • Bad Request
  • Internal Server Error
  • Error Message Including Schema Path

Was this helpful?

  1. Model API

Errors

Explanation and suggested solutions for common errors.

PreviousPython ExampleNextFirst Time User Guide

Last updated 3 years ago

Was this helpful?

Unauthorized

You do not have the proper authentication.

  • Check that the organization id and model id are both correct (check 👉 )

  • If these are correct, then generate a new ML API secret token as it is possible your previous one was invalidated or expired (generate 👉 )

Organization {} does not have read permissions for model {}

You do not have the proper authentication to query the given model.

  • Check that the model id is listed under model ids to which you have read and/or write access (check 👉 )

  • Check that the organization id and model id are both correct (check 👉 )

Bad Request

The JSON input is not formatted correctly.

  • If you are passing in a file make sure the path is correct

  • Make sure the input is written using JSON syntax, for example:

    • booleans are lowercase (true, false)

    • null should be used rather than nan, NaN, None

  • Look for trailing commas:

    • {"exampleFloat": 4, "exampleString": "example",}

Internal Server Error

The server could not process your request.

  • Make sure you input json has the correct types

    • Check that your data and times are in ISO 8601 format

    • Check that ints and floats are consistent with their specified type

Error Message Including Schema Path

Example :

{"message":[{"instancePath":"","schemaPath":"/properties/weightClass","keyword":"properties","params":{"error":"missing","missingProperty":"weightClass"},"message":"must have property 'weightClass'"}]}

  • Check if there is a parameter missing from your input JSON. In the example above the missing parameter is weightClass

  • Check that the "Content-Type" is specified correctly in the header of your API request

here
here
here
here