python 使用 delete 方法時報錯,可以正常刪除
testcase/test_organization.py:34 (TestOrganization.test_delete)
self =
def test_delete(self):
print(self.organization.delete(119))
test_organization.py:36:
…/api/organization.py:59: in delete
return self.send(data)
…/api/base_api.py:14: in send
return requests.request(**data).json()
…/env/lib/python3.7/site-packages/requests/models.py:898: in json
return complexjson.loads(self.text, **kwargs)
…/env/lib/python3.7/site-packages/simplejson/init.py:525: in loads
return _default_decoder.decode(s)
…/env/lib/python3.7/site-packages/simplejson/decoder.py:370: in decode
obj, end = self.raw_decode(s)
self = , s = ‘’
idx = 0, _w =
_PY3 = True
def raw_decode(self, s, idx=0, _w=WHITESPACE.match, _PY3=PY3):
"""Decode a JSON document from s
(a str
or unicode
beginning with a JSON document) and return a 2-tuple of the Python
representation and the index in s
where the document ended.
Optionally, idx
can be used to specify an offset in s
where
the JSON document begins.
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
if idx < 0:
# Ensure that raw_decode bails on negative indexes, the regex
# would otherwise mask this behavior. #98
raise JSONDecodeError('Expecting value', s, idx)
if _PY3 and not isinstance(s, str):
raise TypeError("Input string must be text, not bytes")
# strip UTF-8 bom
if len(s) > idx:
ord0 = ord(s[idx])
if ord0 == 0xfeff:
idx += 1
elif ord0 == 0xef and s[idx:idx + 3] == '\xef\xbb\xbf':
idx += 3
return self.scan_once(s, idx=_w(s, idx).end())
E simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
…/env/lib/python3.7/site-packages/simplejson/decoder.py:400: JSONDecodeError
Assertion failed
Assertion failed
相關文章
- oracle delete 分批刪除Oracledelete
- LARGE DELETE快速刪除delete
- Elasticsearch增刪改查 之 —— Delete刪除Elasticsearchdelete
- MySQL防止delete命令刪除資料的兩種方法MySqldelete
- RMAN中刪除歸檔時報錯RMAN-08137
- windows.old可以刪除嗎?windows.old檔案的刪除方法Windows
- SpringBoot配置檔案使用yml格式時報錯,使用properties格式時正常Spring Boot
- delete和truncate刪除的區別delete
- delete_partition.pl 刪除分割槽delete
- Python 程式碼除錯—使用 pdb 除錯Python除錯
- 找回Oracle中Delete刪除的記錄Oracledelete
- c盤使用者裡的東西可以刪除麼 c盤使用者資料夾可以刪除嗎
- win10 programdata哪些可以刪除_win10 programdata可以刪除嗎Win10
- Solaris系統刪除硬Raid中的卷:delete volume方法AIdelete
- 主外來鍵關聯刪除(on delete set null和on delete cascade)deleteNull
- laravel 修改軟刪為:0(正常)、1(刪除) 的形式Laravel
- python列表刪除專案的方法Python
- python基礎之刪除檔案及刪除目錄的方法Python
- mysql支援跨表delete刪除多表記錄MySqldelete
- Shift + Delete刪除的檔案如何恢復?delete
- javascript delete運算子刪除array陣列元素JavaScriptdelete陣列
- Python常用的程式除錯方法Python除錯
- 表管理之四:刪除資料Delete與truncate的使用區別delete
- ASM 中使用RMAN delete archivelog until time刪除歸檔檔案ASMdeleteHive
- Python列表刪除元素的方法有哪些?Python
- HBase刪除列族報錯的解決方法
- hibernate配置級聯刪除時報錯:could not execute statement; SQL [n/a]; constraint [null]SQLAINull
- phpcms生成兩級選單的程式碼以及後臺刪除內容時報錯PHP
- python五種除錯或排錯的方法Python除錯
- 簡單幾步教你win10按delete鍵刪除不提示的方法Win10delete
- 在刪除使用者時報ORA-00600: 內部錯誤程式碼, 引數: [13011]..
- delete/truncate刪除資料索引空間問題delete索引
- Java程式中除錯Python程式方法Java除錯Python
- 如何刪除lok正常開啟weblogic managed serverWebServer
- 手工刪除歸檔日誌導致RMAN備份時報ORA-19625錯誤
- Python 中刪除列表元素的三種方法Python
- 使用pdb進行Python除錯Python除錯
- 使用pdb除錯python指令碼除錯Python指令碼