-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
Hi,
when trying to make a payment with a wrong password I am getting the following errors:
Traceback (most recent call last):
...
File "..../helpers/adyen.py", line 61, in create_payment
'card.encrypted.json': encrypted_card
File ".../.virtualenvs/luuna_api/lib/python3.6/site-packages/Adyen/services.py", line 146, in authorise
return self.client.call_api(request, self.service, action, **kwargs)
File ".../lib/python3.6/site-packages/Adyen/client.py", line 280, in call_api
status_code, headers, message)
File "..../lib/python3.6/site-packages/Adyen/client.py", line 413, in _handle_response
response = json_lib.loads(raw_response)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The reason for this can be the content returned by the adyen post request, which is b''; afterwards the library is trying to convert the data using "response = json_lib.loads(raw_response)" call.
Metadata
Metadata
Assignees
Labels
No labels