We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92db94 commit 8c8c9e4Copy full SHA for 8c8c9e4
src/edge_proxy/environments.py
@@ -173,6 +173,9 @@ async def _fetch_document(
173
headers=headers,
174
)
175
if response.status_code == starlette.status.HTTP_304_NOT_MODIFIED:
176
+ if not environment_document:
177
+ # This is an API error and should never happen
178
+ raise f"GET /environment-document returned 304 without a cached document. environment={key_pair.client_side_key}"
179
return environment_document
180
response.raise_for_status()
181
return orjson.loads(response.text)
0 commit comments