Problem: when running the interface automation script, the requested data is correct, but it keeps reporting error: simplejson.errors Jsondecodeerror: expecting value
reason:
the reason for the error reported by the author here is that this interface returns: response in the non-JSON format
while in the basic interface code, the return is res.json()
Solution:
Modify to return text, or add an exception capture
exception capture
Read More:
- Jsondecodeerror error: json.decoder.JSONDecodeError: Expecting value: line 1 column 26 (char 25)
- Python + Requests +Excel+Jenkins interface automation
- [Solved] Python requests ConnectionError Error: connection aborted BadStatusLine
- Python Requests Error: Max retries exceeded with url
- Python requests Error: ConnectionError: (‘Connection aborted.‘, error(104, ‘Connection reset by peer‘))
- [Solved] Python Error: tensorflow.python.framework.errors_impl.UnknownError: 2 root error(s) found.
- Python uses try… Except… To output detailed errors
- Python errors: valueerror: if using all scalar values, you must pass an index (four solutions)
- How to Fix Errors encountered in executing Python scripts with command line parameters
- [Solved] ModuleNotFoundError: No module named ‘requests‘
- Python opens the table and appears pandas.errors.ParserError: Error tokenizing data. C error:
- [Solved] Pychar error: modulenotfounderror: no module named ‘requests_ HTML ‘solution
- Opencv Python realizes the paint filling function in PS, one click filling color and the possible reasons for opencv’s frequent errors
- Failed to establish a new connection: [winerror 10048] in the requests thread pool, the interface is called circularly to get the datagram error
- ModuleNotFoundError: No module named ‘requests‘ [How to Solve]
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- [Solved] RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors