According to the TonRequestJsonRPC scheme, the "id" field must have 'string' type.
If the "id" field is a number, the Python ton-http-api module returns the following error:
"error": "Validation error: [{'type': 'string_type', 'loc': ('body', 'id'), 'msg': 'Input should be a valid string'
The TonCenter endpoint (https://toncenter.com/api/v2/jsonRPC) works well because the "id" value is converted to a string somewhere on its way to the server. It also has string type in the response.
According to the TonRequestJsonRPC scheme, the "id" field must have 'string' type.
If the "id" field is a number, the Python ton-http-api module returns the following error:
"error": "Validation error: [{'type': 'string_type', 'loc': ('body', 'id'), 'msg': 'Input should be a valid string'
The TonCenter endpoint (https://toncenter.com/api/v2/jsonRPC) works well because the "id" value is converted to a string somewhere on its way to the server. It also has string type in the response.
TonRequestJsonRPC scheme from https://toncenter.com/api/v2/openapi.json