Docs

E0011

A var was refused because the service does not declare it, or the value is past 4096 bytes.

A var was refused because the service does not declare it, or the value is past 4096 bytes.

Erroneous example:

$ crab var set acme/watch keyword "rust"
Error: 404 [E0011]: the service has no var named "keyword"

A service reads a var only when its crab.toml declares it under [vars], and each value holds at most 4096 bytes. Setting one it does not declare answers 404; a longer value answers 400. Nothing is set either way.

To set it:

  • crab var ls acme/watch lists the vars the deployed version declares, each with its default and the value it holds. Use one of those names.
  • A var added to [vars] is settable once the version declaring it is deployed.
  • A value past 4096 bytes belongs in the service's database, written through one of its tools.