Polymarket / poly-market-maker

Market maker keeper for the Polymarket CLOB
MIT License
69 stars 22 forks source link

Cloudflare block #72

Open LimitedInfo opened 4 months ago

LimitedInfo commented 4 months ago

Overview

When attempting to run the market maker get a 403 error followed by cloudflare html

Description

Screen Shot 2024-06-30 at 3 11 26 PM

Notes

Using the following config: CONDITION_ID=0x3ac961dca3c4f0fc34bf94c661962012ab5e8bcdcadfc99affa06eddde00b29f STRATEGY="amm" CONFIG="./config/amm.json"

jfullerton44 commented 4 months ago

I was getting a similar error when I tried this today. How are you getting the conditionId you used in the config?

LimitedInfo commented 4 months ago

I was getting a similar error when I tried this today. How are you getting the conditionId you used in the config?

I found it through the api by using the getmarkets method.

LimitedInfo commented 4 months ago

@jfullerton44 Hey BTW let me know if you can get it working, I'm still stuck on this issue.

jfullerton44 commented 4 months ago

I am able to get the api requests like getMarkets to work but things like getOrders that require auth all return the 403 + cloudflare error which makes me think it has something to do with an invalid private key or other authentication issue

jfullerton44 commented 4 months ago

I figured it out, its because the request was coming from a virtual machine in a restricted region. Once I moved the machine to Australia it started working

LimitedInfo commented 4 months ago

amazing thank you that fixed for me as well!

unfortunetly I'm still seeing this error: ERROR MainThread Error approve: {'code': -32000, 'message': 'gas required exceeds allowance (0)'}

Is this something you came across?

Screen Shot 2024-07-03 at 10 32 46 PM
dezmou commented 2 months ago

I've moved my server from us to europe and it worked for a while. Since this morning, even my europe server get those cloudfare error.

jfullerton44 commented 2 months ago

I use an Australia based server and that continues to work for me