Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get() missing 1 required positional argument: 'user_id' #17

Open
Tails opened this issue Sep 9, 2018 · 1 comment
Open

get() missing 1 required positional argument: 'user_id' #17

Tails opened this issue Sep 9, 2018 · 1 comment

Comments

@Tails
Copy link

Tails commented Sep 9, 2018

First, installed requirements using pip3. Then ran python3 ./tinker/create_production_configuration.py --api-key (API_KEY) to create a production context.

Then tried running python3 ./tinker/user_overview.py but it fails with following error. It seems the API now requires a user_id to be given up front in the constructor, instead of retrieving it from the created context.

Traceback (most recent call last):
  File "./tinker/user_overview.py", line 46, in <module>
    main()
  File "./tinker/user_overview.py", line 13, in main
    bunq = BunqLib(environment_type)
  File "/Users/l.dwaalmalefijt/Downloads/tinker_python-develop/tinker/libs/bunq_lib.py", line 54, in __init__
    self.setup_current_user()
  File "/Users/l.dwaalmalefijt/Downloads/tinker_python-develop/tinker/libs/bunq_lib.py", line 94, in setup_current_user
    user = endpoint.User.get().value.get_referenced_object()
TypeError: get() missing 1 required positional argument: 'user_id'
@OGKevin
Copy link
Contributor

OGKevin commented Sep 11, 2018

ah it seems that either

  1. tinker is using an outdated SDK version
  2. the SDK regeneration did not go as planned 😅

Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants