-
Notifications
You must be signed in to change notification settings - Fork 212
Closed
Labels
Description
Steps to reproduce
FastAPI 0.122.0 released on Nov 25 introduced a backward incompatible change:
🐛 Use 401 status code in security classes when credentials are missing. PR fastapi/fastapi#13786 by @YuriiMotov.
If your code depended on these classes raising the old (less correct) 403 status code, check the new docs about how to override the classes, to use the same old behavior: Use Old 403 Authentication Error Status Codes.
Some of the tests relied on 403 status code and they are now broken. See https://github.com/dstackai/dstack/actions/runs/19660561178/job/56307940853
Actual behaviour
No response
Expected behaviour
Can be fixed by asserting against both 401 and 403 as many tests do.
dstack version
master
Server logs
Additional information
No response
Reactions are currently unavailable