Skip to content

[Bug]: amddevcloud does not work due to API url change #4157

Description

@r4victor

Steps to reproduce

  1. Configure an amddevcloud backend
  2. 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

  1. api-amd.digitalocean.com now 301-redirects to api.devcloud.amd.com.
  2. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions