adobe-apiplatform / user-sync.py

Application for synchronizing Adobe customer directories via the User Management API
https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/
MIT License
87 stars 67 forks source link

Unhandled exception when running a test sync - TypeError: argument of type 'NoneType' is not iterable #817

Closed BrianBLS closed 1 year ago

BrianBLS commented 1 year ago

Description Was using v2.7.3 but had to change because we moved to the oauth credentials. After setting up the config files I am getting Unhandled exception when running a test sync.

Steps to reproduce Using LDAP This is the test command: user-sync.exe -t --users mapped --process-groups --adobe-only-user-action exclude

Expected behavior I expected the users to get read and displayed.

Screenshots

image

Environment User Sync v 2.9.0rc2 Python 3.9.13 Windows 10.0.14393

HaydenRead commented 1 year ago

Same issue here... Uncommenting host in connector-umapi.yml fixed that issue, but then I got further issues (Error contacting UMAPI server)

BrianBLS commented 1 year ago

Adding this to the connector-umapi looks to have resolved the issue. I had to comment out the auth_endpoint, it was giving an error.

server: host: usermanagement.adobe.io endpoint: /v2/usermanagement auth_host: ims-na1.adobelogin.com

auth_endmpoint: /ims/exchange/jwt

timeout: 120 retries: 3

adorton-adobe commented 1 year ago

This is resolved in bbe1edb.

For now, add a setting under server (doesn't matter which, timeout or retries is fine).