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

Uniswap - Error connecting Wallet to Binance Smart Chain network #400

Closed
kotto78 opened this issue Jan 27, 2025 · 1 comment
Closed

Uniswap - Error connecting Wallet to Binance Smart Chain network #400

kotto78 opened this issue Jan 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@kotto78
Copy link

kotto78 commented Jan 27, 2025

Describe the bug

Getting 'NETWORK_ERROR' when try connecting a wallet to BSC network.

Image

2025-01-27 15:51:07,238 - 1357394 - hummingbot.core.gateway.gateway_status_monitor - INFO - Gateway Service is ONLINE.
2025-01-27 15:51:41,417 - 1357394 - hummingbot.core.gateway.gateway_http_client - WARNING - Call to https://localhost:15888/ethereum/balances failed. See logs for more details.
2025-01-27 15:51:41,417 - 1357394 - hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: Error on POST https://localhost:15888/ethereum/balances Error: {'message': 'Network error. Please check your node URL, API key, and Internet connection.', 'httpErrorCode': 503, 'errorCode': 1001, 'stack': 'Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)\n    at Logger.makeError (/home/amoran/gateway/node_modules/@ethersproject/logger/lib/index.js:238:21)\n    at Logger.throwError (/home/amoran/gateway/node_modules/@ethersproject/logger/lib/index.js:247:20)\n    at StaticJsonRpcProvider.<anonymous> (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:609:54)\n    at step (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)\n    at Object.throw (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)\n    at rejected (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'}
Traceback (most recent call last):
  File "/home/amoran/hummingbot/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper
    return await c
  File "/home/amoran/hummingbot/hummingbot/client/command/gateway_command.py", line 332, in _gateway_connect
    balances: Dict[str, Any] = await self._get_gateway_instance().get_balances(
  File "/home/amoran/hummingbot/hummingbot/core/gateway/gateway_http_client.py", line 305, in get_balances
    return await self.api_request(
  File "/home/amoran/hummingbot/hummingbot/core/gateway/gateway_http_client.py", line 234, in api_request
    raise e
  File "/home/amoran/hummingbot/hummingbot/core/gateway/gateway_http_client.py", line 222, in api_request
    raise ValueError(f"Error on {method.upper()} {url} Error: {parsed_response}")
ValueError: Error on POST https://localhost:15888/ethereum/balances Error: {'message': 'Network error. Please check your node URL, API key, and Internet connection.', 'httpErrorCode': 503, 'errorCode': 1001, 'stack': 'Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)\n    at Logger.makeError (/home/amoran/gateway/node_modules/@ethersproject/logger/lib/index.js:238:21)\n    at Logger.throwError (/home/amoran/gateway/node_modules/@ethersproject/logger/lib/index.js:247:20)\n    at StaticJsonRpcProvider.<anonymous> (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:609:54)\n    at step (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)\n    at Object.throw (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)\n    at rejected (/home/amoran/gateway/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'}

Steps to reproduce

  1. Install Hummingbot from 'feat/gateway-core' and Gateway from 'core' branches.
  2. Try 'gateway connect uniswap' and select BSC network.

Notes: Attempts to change RPC Node to another (public) node and/or adding new BSC wallet also failed.

Release version

dev-2.3.0

Type of installation

Source

Attach required files

No response

@kotto78 kotto78 added the bug Something isn't working label Jan 27, 2025
@hummingbot hummingbot deleted a comment Jan 27, 2025
@fengtality
Copy link
Contributor

should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants