Skip to content

[Bug]: master CLI incompatible with server 0.19.32 #3197

@jvstme

Description

@jvstme

Steps to reproduce

  1. Install the CLI from master and run the server from the latest release.
  2. Attach to a run.

Actual behaviour

> dstack attach test-service
Traceback (most recent call last):
  File "/dstack/venv/bin/dstack", line 10, in <module>
    sys.exit(main())
  File "/dstack/src/dstack/_internal/cli/main.py", line 91, in main
    args.func(args)
  File "/dstack/src/dstack/_internal/cli/commands/attach.py", line 73, in _command
    attached = run.attach(
  File "/dstack/src/dstack/api/_public/runs.py", line 283, in attach
    user = self._api_client.users.get_my_user()
  File "/dstack/src/dstack/api/server/_users.py", line 22, in get_my_user
    return parse_obj_as(UserWithCreds.__response__, resp.json())
  File "pydantic/tools.py", line 38, in pydantic.tools.parse_obj_as
  File "pydantic/main.py", line 347, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ParsingModel[UserWithCredsResponse]
__root__ -> creds
  field required (type=value_error.missing)

Expected behaviour

No response

dstack version

master

Server logs

Additional information

Introduced in #3176

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmajor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions