Dor::Services::Client::UnexpectedResponse: Bad Request: 400 ({"errors":[{"status":"400","title":"Bad Request","detail":"Not all files have dark access and/or are unshelved when item access is dark: [\"placeholder.txt\"]"}]})
I think what may be happening is that the request is defaulting to object rights as dark, but the files are given incompatible file-level rights and/or file-level shelve/preserve settings. Explicitly setting rights to world works, though what happens there is the object gets "world no-download".
In the long run, this probably needs we have to dedicate some time to looking at the client options, and possibly require the rights option to be set explicitly, but for my immediate purposes any non-dark rights setting was fine.
In the readme, one of the suggested commands is:
This works as an API request but then leads to an error with the rights: https://app.honeybadger.io/projects/67994/faults/64639563
I think what may be happening is that the request is defaulting to object rights as dark, but the files are given incompatible file-level rights and/or file-level shelve/preserve settings. Explicitly setting rights to world works, though what happens there is the object gets "world no-download".
In the long run, this probably needs we have to dedicate some time to looking at the client options, and possibly require the rights option to be set explicitly, but for my immediate purposes any non-dark rights setting was fine.