We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Hey @areqq 👋
Thanks for raising this. This is a limitation as of now. We are working on fixing this.
Sorry, something went wrong.
fix: try fix sparckles#816 json encodeSupport all json types.
27754ba
Successfully merging a pull request may close this issue.
Bug Description
I send: {'lid': 570, 'start': None, 'field_name': 'mobile', 'field_value': '111000111'}
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".
Steps to Reproduce
No response
Your operating system
Linux
Your Python version (
python --version
)3.11
Your Robyn version
latest
Additional Info
No response
The text was updated successfully, but these errors were encountered: