Skip to content

Bug: ucall client overwrite the manual id with a generated id always #114

@waleedsaud

Description

@waleedsaud

Describe the bug

ucall client overwrite the manual id with a generated id always.
client.py

This is where I think the issue but I am not sure:

def _send(self, json_data: dict):  
    json_data["id"] = random.randint(1, 2**16)  # Line 170

Steps to reproduce

use the client example with manual id each time it does not care about the id in request that you put

Expected behavior

the id in the request should be returned in the response

UCall version

v0.5.8

Operating System

ubuntu 24.4

Hardware architecture

x86

Which interface are you using?

Official Python bindings

Which implementation are you using?

POSIX

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions