yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
303 stars 192 forks source link

Request failed with status code 400 #2

Closed trancee closed 2 years ago

trancee commented 2 years ago

Thank you for sharing your code!

I have it up and running by following your instructions but I keep getting lots of errors like Request failed with status code 400. What am I doing wrong?

I am on the Polygon mainnet and the smart contract is deployed.

Thanks for your help.

yuichiroaoki commented 2 years ago

Sorry that the error message is confusing.

The error message you got means probably the bot successfully sent a request to 1inch API, but 1inch failed to respond price data.

image

https://github.com/yuichiroaoki/poly-flashloan-bot/commit/8617ebf9a73fde49fdfbfb215f18a31264462bf3

ref. https://github.com/yuichiroaoki/poly-flash/issues/1#issuecomment-985954247