gateway icon indicating copy to clipboard operation
gateway copied to clipboard

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

Open atonsun-nl opened this issue 1 year ago • 2 comments

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 avatar Jun 14 '24 16:06 atonsun-nl

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

atonsun-nl avatar Jun 18 '24 16:06 atonsun-nl

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.

jabevan avatar Jun 28 '24 12:06 jabevan

gateway routes has been updated as of v2.6.1

Image

rapcmia avatar Jun 26 '25 13:06 rapcmia