adobe-apiplatform / umapi-client.py

Python client for the User Management API (UMAPI) from Adobe
https://developer.adobe.com/umapi/
MIT License
12 stars 19 forks source link

UserGroupsQuery(conn).all_results() raises ValueError on 404 #82

Closed necabo closed 3 years ago

necabo commented 3 years ago

Looking at the code it seems like with recent changes to query_multiple() in the v2.15 release, the code path for 404 was forgotten.

The different number of return values eventually leads to a ValueError when trying to evaluate the lazy query. That occurs in _next_page() because it's attempting to unpack 6 values when only 2 are returned.

adorton-adobe commented 3 years ago

This should be fixed in #92. Let me know if you still have issues.