Steps to reproduce
- Configure an
amddevcloud backend
- Try to get offers and you'll get an error
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:
https://api.devcloud.amd.com/v2/sizes?per_page=500
Actual behaviour
- api-amd.digitalocean.com now 301-redirects to api.devcloud.amd.com.
- requests follows the redirect, but Session.rebuild_auth() deletes the Authorization header whenever the redirect crosses to a different host (should_strip_auth). digitalocean.com → amd.com is a different host, so the Bearer token is dropped and AMD's API answers 401.
So the backend is now broken for all current dstack installations.
Expected behaviour
No response
dstack version
master
Server logs
Additional information
No response
Steps to reproduce
amddevcloudbackendActual behaviour
So the backend is now broken for all current dstack installations.
Expected behaviour
No response
dstack version
master
Server logs
Additional information
No response