Substra / substra

Low-level Python library used to interact with a Substra network

Home Page:https://docs.substra.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No mention of the need to specify public permissions

AlexandrePicosson opened this issue · comments

https://github.com/SubstraFoundation/substra/blob/c6bae9cb15388e186341dbb9f08be25e8ab762c1/substra/sdk/client.py#L726-L728

You could replace it by this code for better user information as the error thrown if you forget the public permissions is not very informative (400 Bad request).

"out_trunk_model_permissions": {
                    "public": bool,
                    "authorized_ids": list[str],
                },

I think this is more of a bug in the backend (see Substra/substra-backend#148) but we need to decide how we want to handle it.

This has been fixed in Substra/substra-backend#188 !