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

Error on POST https://localhost:15888/amm/price #331

Open
atonsun-nl opened this issue Jun 14, 2024 · 2 comments
Open

Error on POST https://localhost:15888/amm/price #331

atonsun-nl opened this issue Jun 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@atonsun-nl
Copy link

atonsun-nl commented Jun 14, 2024

Describe the bug
When I run the script amm_data_feed_example.py hummingbot issues errors

Steps To Reproduce

  1. I have connected my wallet to pancakeswap_binance-smartchain_mainet and sushiswap_binance-smartchain_mainet.
  2. Completed the approval of APE and USDT tokens.
  3. Corrected the script amm_data_feed_example.py
  4. I ran this script in the hummingbot terminal.
  5. I received a number of errors

Based on the errors, I assume that, regardless of the exchange I have chosen to operate, the bot turns to uniswap and uses ETH to pay for GAS.

Screenshots
erorrs
1 amm_price
2 amm_price
3 amm_price

Logs
logs_amm_data_feed_example.log
logs_gateway_app.log.2024-06-14.log

Script
amm_data_feed_example.txt

Conf
binance-smart-chain.yml.txt

Release version
hummingbot-dev-1.29.0 (source), gateway-1.28 (source)

What do I need to do to fix this error?

@atonsun-nl atonsun-nl added the bug Something isn't working label Jun 14, 2024
@atonsun-nl
Copy link
Author

The problem is solved by setting a very simple password for the gateway.
Program code adjustments are required.

@jabevan
Copy link

jabevan commented Jun 28, 2024

The problem is solved by setting a very simple password for the gateway. Program code adjustments are required.

I don't think this is the problem. I've run into the simple password error before and have fixed that; however, I'm getting a similar error as above:

2024-06-28 12:40:31,863 - 15 - hummingbot.core.gateway.gateway_http_client - WARNING - Call to https://localhost:15888/amm/price failed. See logs for more details. 2024-06-28 12:40:31,863 - 15 - GatewayEVMAMM - WARNING - Error on POST https://localhost:15888/amm/price Error: {'message': 'Price query failed: Cannot find a valid swap route', 'httpErrorCode': 500, 'errorCode': 1013, 'stack': 'Error: Price query failed: Cannot find a valid swap route\n at /home/gateway/dist/src/connectors/uniswap/uniswap.controllers.js:73:23\n at Generator.throw (<anonymous>)\n at rejected (/home/gateway/dist/src/connectors/uniswap/uniswap.controllers.js:6:65)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'} 2024-06-28 12:40:34,526 - 15 - hummingbot.strategy.amm_arb.amm_arb - INFO - No arbitrage opportunity.

I have multiple instances running using Uniswap and Sushiswap with no problems, but this one using PancakeSwap is persistent.

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