Skip to content

Cognito limitation?  #1

@carlsonjf

Description

@carlsonjf

We are running into an issue with exporting users from Cognito.
Have tried cognito-export-users and have some ideas that may be causing the error below...

We have > 300 users in our Cognito user pool. When we run the node package cognito-export-users we get 282 users and at the end, instead of a properly formed json stream the last character is a % (rather than a ]). In looking for other packages that may get around this issue, I found yours and would fix the issue. It looks like we have the same issue here. Are you aware of a limitation of the APIs you are using in exporting more than 282 users?

File "cognito-export.py", line 93, in
data = CognitoExport(args[''], args['--profile'])
File "cognito-export.py", line 51, in init
data = json.loads(result.stdout.decode('utf-8'))
File "/Users/jfcarlso/opt/anaconda3/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/Users/jfcarlso/opt/anaconda3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/jfcarlso/opt/anaconda3/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions