Reverted previous changes that incorrectly changed RPC port from 8006 to 8005.
Investigation revealed:
- Port 8005 runs AI service (uvicorn src.ai_service.main:app)
- Port 8006 runs blockchain node HTTP RPC (uvicorn aitbc_chain.app:app)
The blockchain node HTTP RPC is actually on port 8006, not 8005.
The issue is that the blockchain node on port 8006 is not responding to HTTP requests.
Next step: Debug why blockchain node on port 8006 is not responding to HTTP.
Fixed CLI blockchain connection timeout errors by updating default RPC URL
from port 8006 to port 8005 across all CLI modules.
Root cause:
- Port 8006 is for blockchain P2P protocol (not HTTP RPC)
- Port 8005 is the HTTP RPC API port
- CLI was trying to use HTTP on port 8006, causing timeouts
Updated files:
- cli/advanced_wallet.py: DEFAULT_RPC_URL
- cli/enterprise_cli.py: DEFAULT_RPC_URL
- cli/commands/blockchain.py: _get_node_endpoint()
- cli/core/main.py: default_rpc_url
- cli/commands/sync.py: source and import-url defaults
- cli/commands/marketplace.py: rpc_url config default
- cli/commands/blockchain_event_bridge.py: test mode config
- cli/handlers/bridge.py: test mode config
- cli/commands/deployment.py: service endpoints
This fixes the training script errors where CLI commands were timing out
when trying to connect to the blockchain node.