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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

User::get returns empty object? #51

Closed
DennisSnijder opened this issue Sep 24, 2017 · 5 comments
Closed

User::get returns empty object? #51

DennisSnijder opened this issue Sep 24, 2017 · 5 comments
Assignees

Comments

@DennisSnijder
Copy link
Contributor

DennisSnijder commented Sep 24, 2017

When I try to use the User::get function a User object will return but its completely empty.
image

I did some further debugging and it seems like the Response body is completely empty (The status code is still 200 馃槦 )

Im using the Sandbox Environment and the request url I'm trying to call is sandbox.public.api.bunq.com/v1/user/3427

@DennisSnijder
Copy link
Contributor Author

When I try to do the UserCompany::get it works perfectly fine 馃槷

@OGKevin
Copy link
Contributor

OGKevin commented Sep 24, 2017

Steps to reproduce:

  1. Make a GET call via the User endpoint.

What should happen:

  1. The response is parsed correctly into its data models.

What happens:

  1. The response is not parsed correctly and therefore returns a bunch off nulls

Extra info:

@DennisSnijder
Copy link
Contributor Author

@OGKevin Thanks! 馃槃

@dnl-blkv
Copy link
Contributor

@DennisSnijder thank you for reporting!
@OGKevin thank you for the issue!

This bug will be fixed in the upcoming release :)

@DennisSnijder
Copy link
Contributor Author

DennisSnijder commented Sep 25, 2017

@dnl-blkv Awesome! thanks 馃槃

In the meantime I made a little cheapfix to solve the problem for now 馃槤
https://github.com/DennisSnijder/BunqWeb/blob/master/src/BunqWeb/Repository/UserRepository.php#L39

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

No branches or pull requests

3 participants