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

Setting the Status of ShareInviteBankInquiry to ACCEPTED causes error at reciver #105

Closed
1 of 2 tasks
WouterLok opened this issue Sep 1, 2018 · 1 comment
Closed
1 of 2 tasks

Comments

@WouterLok
Copy link

WouterLok commented Sep 1, 2018

Steps to reproduce:

  1. Connect to the API with the Tinker Python Lib and send a request for a shared read-only shared account with status ACCEPTED, i.e. call

endpoint.ShareInviteBankInquiry.create( Pointer(self._POINTER_TYPE_EMAIL, recipient), ShareDetail(read_only=ShareDetailReadOnly(view_balance=True, view_old_events=True, view_new_events=True)), "ACCEPTED", monetary_account_id )

What should happen:

  1. Not defined by Documentation, but i would expect the server to reject the request since the inquirer should not be the one that is accepting the request.

What happens:

  1. The server accepts the inquiry and returns the following result:
    BunqResponseInt with ID of the inquiry.

  2. When the Addressee of the inquiry makes a request for his ShareInviteBankResponse by using the SDK, a errormessage is returned:
    Error message: The item you requested could not be found.

Traceback

Traceback (most recent call last):
File "/home/lokw/projects/bunq/api/tinker/user_overview.py", line 49, in
main()
File "/home/lokw/projects/bunq/api/tinker/user_overview.py", line 37, in main
print(bunq.get_share_requests());
File "/home/lokw/projects/bunq/api/tinker/libs/bunq_lib.py", line 172, in get_share_requests
return endpoint.ShareInviteBankResponse.list().value
File "/home/lokw/projects/bunq/api/.venv/lib/python3.6/site-packages/bunq/sdk/model/generated/endpoint.py", line 7130, in list
response_raw = api_client.get(endpoint_url, params, custom_headers)
File "/home/lokw/projects/bunq/api/.venv/lib/python3.6/site-packages/bunq/sdk/client.py", line 320, in get
custom_headers
File "/home/lokw/projects/bunq/api/.venv/lib/python3.6/site-packages/bunq/sdk/client.py", line 133, in _request
self._assert_response_success(response)
File "/home/lokw/projects/bunq/api/.venv/lib/python3.6/site-packages/bunq/sdk/client.py", line 228, in _assert_response_success
self._fetch_response_id(response)
bunq.sdk.exception.NotFoundException: HTTP Response Code: 404
The response id to help bunq debug: a32511cb-81df-43f1-9bf4-4267ad98bb64
Error message: The item you requested could not be found.

SDK version and environment

  • Tested on [0.13.1]
  • Sandbox
  • Production

Response id

  • Response id: a32511cb-81df-43f1-9bf4-4267ad98bb64

Extra info:

The Sandbox Bunq App shows the inquiry under events with status, while no events are shown for the adressee.

@OGKevin
Copy link
Contributor

OGKevin commented Sep 18, 2018

This is an API ACL error and not really SDK error 🤔. I would advice you to post this on together and see what the issue is.

If it turns out to be SDK related, feel free to reopen but I doubt it is.

@OGKevin OGKevin closed this as completed Sep 18, 2018
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