Closed Wouter0100 closed 6 years ago
I have a feeling that you are setting up to much.
Are you re-creating, re-loading the api context every single time before you do a call ?
Also, you can get the user by doing https://github.com/bunq/tinker_php/blob/b786ac4496916f2c601d115f02612e1e288d277b/src/BunqLib.php#L150-L159
Hmm, you were right there. Didn't know the context also loaded the user.
It seems the docs are either incorrect, or the library sends more requests then asked for a specific endpoint. I've added this log (see screenshot) in the
User::get
method, as you can see - only 2 in a 3 second window. The third request errors.Log added to method:
Steps to reproduce:
User::get()
3 times.What should happen:
What happens:
Traceback
SDK version and environment