Skip to content
New issue

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

examples/composite_example.py not working #86

Open
zhouqiang2023 opened this issue Dec 5, 2023 · 3 comments
Open

examples/composite_example.py not working #86

zhouqiang2023 opened this issue Dec 5, 2023 · 3 comments

Comments

@zhouqiang2023
Copy link

python3 examples/composite_example.py

return

E1205 11:14:25.853674000 4689714624 hpack_parser.cc:999]               Error parsing 'content-type' metadata: invalid value
**Order Failed**
<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "Stream removed"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2023-12-05T11:14:25.853876+08:00", grpc_status:2, grpc_message:"Stream removed"}"
>
E1205 11:14:32.285944000 4689714624 hpack_parser.cc:999]               Error parsing 'content-type' metadata: invalid value
**Order Failed**
<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "Stream removed"
        debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Stream removed", grpc_status:2, created_time:"2023-12-05T11:14:32.286025+08:00"}"
>
E1205 11:14:38.746211000 4689714624 hpack_parser.cc:999]               Error parsing 'content-type' metadata: invalid value
**Order Failed**
<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "Stream removed"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2023-12-05T11:14:38.746286+08:00", grpc_status:2, grpc_message:"Stream removed"}"
>
E1205 11:14:45.148782000 4689714624 hpack_parser.cc:999]               Error parsing 'content-type' metadata: invalid value
**Order Failed**
<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "Stream removed"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2023-12-05T11:14:45.148867+08:00", grpc_status:2, grpc_message:"Stream removed"}"
>
E1205 11:14:51.021330000 4689714624 hpack_parser.cc:999]               Error parsing 'content-type' metadata: invalid value
@steven-varga
Copy link

steven-varga commented Dec 5, 2023

Probable cause is that the specified All That Node provider for testnet has been shut down: [Important] dYdX Testnet Public Node endpoints will no longer be supported as of November 29th, 2023 at 15:00 UTC.
Setting up a node on testnet, and modifying the network configuration could be a possible work around. Note: running a node without TLS may require to let the library know, see this line in python.

@zhouqiang2023
Copy link
Author

Probable cause is that the specified All That Node provider for testnet has been shut down: [Important] dYdX Testnet Public Node endpoints will no longer be supported as of November 29th, 2023 at 15:00 UTC. Setting up a node on testnet, and modifying the network configuration could be a possible work around. Note: running a node without TLS may require to let the library know, see this line in python.

thank you for your response, I use the mainnet config, it also shows
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2023-12-05T19:36:19.611061+08:00", grpc_status:2, grpc_message:"Stream removed"}"

@vincent7q
Copy link

vincent7q commented Dec 25, 2023

there is a bug in v4-client-py/v4_client_py/clients/modules/post.py line 46 to get testnet network config. Below change can fix the problem

change source code as following (post.py)
#network = NetworkConfig.fetch_dydx_testnet() #bug to get testnet network config
network= NetworkConfig( #Mainnet setup
chain_id=self.config.chain_id,
url=self.config.grpc_endpoint,
fee_minimum_gas_price=0,
fee_denomination="adydx",
staking_denomination="adydx",
faucet_url=None, )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants