d = {'lid': int(lid), 'start': None, 'field_name': 'mobile', 'field_value': number }
h = {'Content-Type': 'application/json;'}
r = requests.post('https://xxxxx/api/pimeditor/openField', json = d, headers = h)
I send: {'lid': 570, 'start': None, 'field_name': 'mobile', 'field_value': '111000111'}
@app.post("/api/pimeditor/openField")
async def openField(request):
j = request.json()
logger.info(f"{request.headers['x-real-ip']}:{request.query_params.get('app','?')} {request.url.path} {j}")
I got: {'field_name': 'mobile', 'field_value': '111000111', 'lid': '570', 'start': 'null'}
So, the JSON data received on the server has incorrect data types for some fields:
The lid field is sent as an integer (570) but is received as a string ("570").
The start field is sent as None but is received as the string "null".
No response
Linux
python --version
)3.11
latest
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too