Closed OGKevin closed 7 years ago
I was getting some errors while running my local dev server. I've made a few changes so that I could run the dev server without errors.
I've changed most imports to relative imports because of import errors.
__uri = f"https://sandbox.public.api.bunq.com/v{__version_api}"
I was getting syntax errors from this line, by removing the leading f it got fixed.
f
The privatekey property was not checking if the key was in bytes before continuing therefore this:
if not isinstance(self.__privkey_pem, bytes): self.__privkey_pem = self.__privkey_pem.encode() print(type(self.__privkey_pem))
The print can be removed tho.
I couldn't test this yet but i thought it should be something like this, can confirm after the crypto issue is fixed which ill explain later.
@property def api_key(self): #return None return self.__api_key
Had to change privatekey to optional because I'll get an error from this line
privatekey
The error that stops me from continuing my tests is the following:
line 1229, in _handle_key_loading_error raise ValueError("Could not deserialize key data.") ValueError: Could not deserialize key data.
source
Im going to take break and go study will come back on this issue later.
I was getting some errors while running my local dev server. I've made a few changes so that I could run the dev server without errors.
I've changed most imports to relative imports because of import errors.
I was getting syntax errors from this line, by removing the leading
f
it got fixed.The privatekey property was not checking if the key was in bytes before continuing therefore this:
The print can be removed tho.
I couldn't test this yet but i thought it should be something like this, can confirm after the crypto issue is fixed which ill explain later.
Had to change
privatekey
to optional because I'll get an error from this lineThe error that stops me from continuing my tests is the following:
source
Im going to take break and go study will come back on this issue later.