onelogin-aws-cli icon indicating copy to clipboard operation
onelogin-aws-cli copied to clipboard

Login Show: Onelogin Error: '500' ''dict_keys' object is not subscriptable'

Open dwy6626 opened this issue 4 years ago • 2 comments

Expected Behavior

After enter password, it should confirm password and ask for protect token

Current Behavior

After enter password, it crash and show error:

Onelogin Error: '500' ''dict_keys' object is not subscriptable'

Possible Solution

Steps to Reproduce

  1. create a clean python venv with python 3.8
  2. pip install onelogin-aws-cli
  3. onelogin-aws-login
  4. enter username
  5. enter password
  6. it crash

Context (Environment)

Prepare environment setup for a new computer

Possible Implementation

5 days ago, a new version onelogin python SDK released https://github.com/onelogin/onelogin-python-sdk

use pip install onelogin==1.9.1 fix this problem

I suggest to fix the dependency version to older onelogin sdk

dwy6626 avatar Jul 28 '21 11:07 dwy6626

seems related to https://github.com/onelogin/onelogin-python-sdk/issues/53

dwy6626 avatar Jul 28 '21 11:07 dwy6626

FYI, the onelogin-python-sdk fixed this in 2.0.1 https://github.com/onelogin/onelogin-python-sdk/pull/54 but I still suggest to lock the dependency versions

dwy6626 avatar Aug 05 '21 06:08 dwy6626