Solicitation Request json.decoder.JSONDecodeError #243
-
|
Hello! Can someone help show me how I can setup a set_trace to capture more information on the following json.decoder.JSONDecodeError? (full details described in this issue - link below) I would be happy to help debug/fix, but not certain how I can setup a set_trace to capture the information Amazon is sending that frequently causes decode errors here: It happens once every 20-50 orders, so it's fairly reproducible, and it doesn't happen on every solicitation request since most go through without an issue. Currently, I am restarting the program and keeping a log of where it left off. A re-send on the same order ID always works. Thanks in advance, Initial Edits: fix bug report hyperlink |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can log the response as text before this line: python-amazon-sp-api/sp_api/base/client.py Line 109 in d89d68a Then you should be able to see if something actually is wrong with the response once one fails. |
Beta Was this translation helpful? Give feedback.
You can log the response as text before this line:
python-amazon-sp-api/sp_api/base/client.py
Line 109 in d89d68a
Then you should be able to see if something actually is wrong with the response once one fails.