Web2Py POST 失败
将一些字典数据发布到 Web2py。某些数据 POSTS 始终成功,某些数据 POSTS 始终失败。
此数据始终成功 POST:
data = {"batt chrg": {
"dat": "-999%",
"measurement": "percent",
"unit": "electric",
"entrytype": "subunitStatus"
},
"pv gen": {
"dat": "-999 W",
"measurement": "level",
"unit": "electric",
"entrytype": "subunitStatus"
}
}
此数据(更长的字典)始终无法发布:
data = {"download": {
"entrytype": "subunitStatus",
"dat": "9 Mbit/s",
"measurement": "level",
"unit": "comms"},
"batt chrg": {
"entrytype": "subunitStatus",
"dat": "94.4%",
"measurement": "percent",
"unit": "electric"},
"pv gen": {
"entrytype": "subunitStatus",
"dat": "543 W",
"measurement": "level",
"unit": "electric"},
"living space": {
"entrytype": "subunitStatus",
"dat": "72 F",
"measurement": "level",
"unit": "hvac"},
"ping": {
"entrytype": "subunitStatus",
"dat": "60 ms",
"measurement": "level",
"unit": "comms"},
"invert load": {
"entrytype": "subunitStatus",
"dat": "402 W",
"measurement": "level",
"unit": "electric"},
"humidity": {
"entrytype": "subunitStatus",
"dat": "45%",
"measurement": "level",
"unit": "hvac"},
"upload": {
"entrytype": "subunitStatus",
"dat": "8 Mbit/s",
"measurement": "level",
"unit": "comms"
}
}
汪汪一只猫
慕桂英4014372
蝴蝶不菲
相关分类