You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
user_subscriptions_create always fails because the server expects a dict keyed by HumanUser id #463
With shotgun_api3 3.10.5 and current master, user_subscriptions_create(users) sends {"users": users}, and the server rejects every call with Fault: Uncaught exception! Invalid humanUserId users.
This happens even when re-sending a user's current subscription unchanged, as user_subscriptions_read() reports it, with a script key or with an admin user login.
Server 8.91.0, Python 3.13.
Request shapes tried, each re-sending an unchanged entry (the first through user_subscriptions_create(), the others through _call_rpc("user_subscriptions_create", ...)):
Alternatively, the method could take the dict user_subscriptions_read() returns, so the two are symmetric.
Also:
The return check response.get("status") == "success" would be False even for the accepted call: its response has no status key. _call_rpc() already raises on errors. We could not tell what the per-user None values mean without changing a real assignment.
user_subscriptions_read is documented as returning a list, but it returns a dict keyed by user id.
Activity