Search not working #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See output below
@maddox:fails.me
Search failed: GET /api/v1/search → 400: {"message":"Parameter 'query' must be url encoded. Its value may not contain reserved characters.","errors":[{"path":".query.query","message":"Parameter 'query' must be url encoded. Its value may not
Fixed in v0.6.3 (
2be3d22) and deployed.Root cause:
SeerrClient._qs()was percent-encoding correctly, but aiohttp parses the URL string throughyarl.URL(), which normalizes sub-delim chars like%27back to literal'in the query component. Seerr's ajv validator then rejects the literal reserved char with "Parameter 'query' must be url encoded."Fix: wrap the pre-encoded URL in
yarl.URL(url, encoded=True)so yarl skips re-normalization.Verified live against deployed Seerr v3.2.0 with queries containing apostrophes, ampersands, commas, slashes, and
?— all 10 test queries return 200.