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

Cloudflare block #72

Open
LimitedInfo opened this issue Jun 30, 2024 · 8 comments
Open

Cloudflare block #72

LimitedInfo opened this issue Jun 30, 2024 · 8 comments

Comments

@LimitedInfo
Copy link

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
Copy link

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

@LimitedInfo
Copy link
Author

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
Copy link
Author

LimitedInfo commented Jul 3, 2024

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

@jfullerton44
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

dezmou commented Sep 17, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants