Skip to content

onlyworlds 0.158.2

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:55
· 24 commits to main since this release
  • Fixed: a non-finite number in a request body is refused before sending, by name and with its place. json.dumps wrote the bare tokens NaN, Infinity and -Infinity, which are not JSON, and the server answered them with a 500. Any write now raises ValueError: a request body holds NaN at x_score, which JSON cannot carry: send a finite number, or None to clear the field. Nothing was sent., the place a list index in brackets (items[1].element.x_weight in a bulk). The body is then encoded with allow_nan=False, so no bare token leaves the client.
  • Fixed: a body nested more than 200 deep is refused before sending, counted as the folder readers count it (an object or list at the top is depth 1), however deep it goes: ValueError: a request body is nested more than 200 deep (an object or list at the top is depth 1), past what onlyworlds.com reads. Nothing was sent. A body with both faults is refused for its depth. The npm SDK refuses both in the same words (4.219.2).