DocsHome AssistantOpen the appDE

spooly.eu/docs/errors

Error codes

Errors come with an HTTP status, a fixed code and a German text. Two cases have no code: invalid fields (422) and requests that are too large (413). Program against the code, the text can change.

Open as text
On this page

Structure

In detail, an error with a code carries an object with code and message. Some carry more details in data, here the color the printer reports.

The text in message is German, even if you use Spooly in English.

Response 409
{
  "detail": {
    "code": "andere_farbe",
    "message": "Der Drucker meldet in diesem Slot eine andere Farbe als diese Spule. Trotzdem zuordnen?",
    "data": {
      "gemeldet": {
        "farbe": "#E8E9DF",
        "material": "PLA"
      },
      "spule": {
        "farbe": "#1B1B1D"
      }
    }
  }
}

Invalid fields in the body or the query come back as 422 with a list in detail and no code. loc names the field, msg the reason. This text is English and follows the standard format of the platform. Program against loc and type here.

Response 422
{
  "detail": [
    {
      "type": "missing",
      "loc": [
        "body",
        "grams"
      ],
      "msg": "Field required",
      "input": {}
    }
  ]
}

Spooly rejects a request over 64 KB before it reads it: 413 with a plain text in detail, also without a code. Limits

Response 413
{
  "detail": "Anfrage ist zu groß."
}

All codes

StatusCodeMeaning
401invalid_keyKey missing, unknown or revoked, or the account is not active
403api_disabledThe API is not enabled for this account
403pro_expiredPro has expired. The key stays valid.
403insufficient_scopeThe connection is not allowed to change data
403key_kindThe key does not fit the address: a spreadsheet key used against the API, another key used against the spreadsheet link, or at the Spoolman address a key that is not of type scale or Klipper printer (and the other way round)
404not_foundSpool, location, slot, task or printer not found
409slot_autopilot_offSlot autopilot is not active, slots can only be read
409andere_farbeThe printer reports a different color. Repeat with confirm_color.
409anderer_chipThe spool already has a different Bambu chip than the one in the slot. Is it a new roll?
409archiviertThe spool is archived
409gleichzeitigThe slot was changed at the same time. Try again.
409tare_missingNo empty-spool weight is stored for the spool
409spool_in_printThe spool is in a running print
409place_takenAnother spool is already on this place
409conflictAny other conflict
413(no code)The request is larger than 64 KB
422invalid_inputInvalid input
422place_invalidThis place does not exist in the location (see places)
422gross_not_above_tareThe gross weight must be greater than the tare
422above_spool_sizeThe weight would be larger than the spool
422invalid_idempotency_keyThe Idempotency-Key must be 1 to 128 visible ASCII characters
422idempotency_conflictSomething different was already requested with this Idempotency-Key
429fair_useDaily limit reached
429too_many_parallelToo many simultaneous requests
429change_rate_limit, change_daily_limit and new_spool_daily_limitChange limit reached
429too_many_keysToo many new keys in one hour
500internal_errorThat did not work. Try again later.

In Home Assistant and with AIs

Home Assistant turns the codes into its own messages. You find them under troubleshooting. An AI gets the same codes and usually explains them to you itself.