From bd27aeac6f9f93a0e3b3b62259b90f718397a286 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Thu, 4 Aug 2022 10:23:03 +0200 Subject: [PATCH] Dependencies: set upper limit `werkzeug<2.2` (#5606) The `werkzeug==2.2` release is breaking the REST API causing most of the routes to return a 404 error. The problem is that routes with a trailing slash are now treated as branch leaves, whereas before they would be treated as leaf routes if that could be uniquely determined. Now it will always treat it literally and return a 404 if not explicitly defined. --- environment.yml | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/environment.yml b/environment.yml index f5a3d067b6..f6a181b50f 100644 --- a/environment.yml +++ b/environment.yml @@ -33,4 +33,5 @@ dependencies: - tabulate~=0.8.5 - tqdm~=4.45 - upf_to_json~=0.9.2 +- werkzeug<2.2 - wrapt~=1.11.1 diff --git a/pyproject.toml b/pyproject.toml index 858489dbe8..a3e1a3d6fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,7 @@ dependencies = [ "tabulate~=0.8.5", "tqdm~=4.45", "upf_to_json~=0.9.2", + "werkzeug<2.2", "wrapt~=1.11.1" ]