Skip to content

Conversation

@Windfarer
Copy link
Contributor

Bug

There's a warning here when the axon get a request.

/home/ubuntu/github/mysubnet/venv/lib/python3.12/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `int` - serialized value may not be as expected [input_value='9006001', input_type=str])
  return self.__pydantic_serializer__.to_python(
/home/ubuntu/github/mysubnet/venv/lib/python3.12/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `int` - serialized value may not be as expected [input_value='42476', input_type=str])
  return self.__pydantic_serializer__.to_python(
/home/ubuntu/github/mysubnet/venv/lib/python3.12/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `int` - serialized value may not be as expected [input_value='42476', input_type=str])
  PydanticSerializationUnexpectedValue(Expected `int` - serialized value may not be as expected [input_value='9006001', input_type=str])
  return self.__pydantic_serializer__.to_python(

9006001 is the version
42476 is the port
these fields are all defined in pydantic as int, but in current code, it has been convert to string.

Description of the Change

convert them to the correct type int

Alternate Designs

Possible Drawbacks

Verification Process

Release Notes

Branch Acknowledgement

[x] I am acknowledging that I am opening this branch against staging

@basfroman basfroman requested a review from a team June 22, 2025 23:27
@basfroman basfroman merged commit 1b8d5c0 into opentensor:staging Jun 23, 2025
125 checks passed
@ibraheem-abe ibraheem-abe mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants