atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

Client files are not migrated on Spinta start #544

Closed sirex closed 7 months ago

sirex commented 7 months ago

After upgrading Spinta to 0.1.59 version and restarting Spinta service, got following error:

Traceback (most recent call last):
  File "spinta/asgi.py", line 18, in <module>
    commands.check(context, config)
  File "multipledispatch/dispatcher.py", line 278, in __call__
    return func(*args, **kwargs)
  File "spinta/types/config.py", line 108, in check
    raise Exception(f"default_auth_client {config.default_auth_client!r} does not exist in {clients_dir}.")
Exception: default_auth_client 'default' does not exist in config/clients.

It looks, that client files where not migrated. Client files should be migrated at load[Context, Config]:

https://github.com/atviriduomenys/spinta/blob/7f0f6dffb7324d2d1c4218460e2934eab9a061f1/spinta/types/config.py#L79

Related