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

Infura behind a NGINX randomly fails with 403, 404 or 504 #223

Open
bb4L opened this issue Jun 23, 2022 · 1 comment
Open

Infura behind a NGINX randomly fails with 403, 404 or 504 #223

bb4L opened this issue Jun 23, 2022 · 1 comment

Comments

@bb4L
Copy link

bb4L commented Jun 23, 2022

Since yesterday evening (CEST)

We experience infura not always responding from behind our NGINX proxy, when it fails we get either a 404 or a 504 without any further information

or a 403 with

{
	"Message": "User: anonymous is not authorized to perform: es:ESHttpPost because no resource-based policy allows the es:ESHttpPost action"
}

the nginx server conf is similar to the following:

server {
        server_name SERVERNAME;
        listen 80;

        location / {
            proxy_ignore_headers "Set-Cookie";
            proxy_hide_header "Set-Cookie";
            proxy_hide_header "Access-Control-Allow-Origin";
            proxy_set_header "Content-Type" "application/json";
            add_header Access-Control-Allow-Origin *;
            proxy_pass https://mainnet.infura.io/v3/APIKEY;
        }
    }

any ideas why this started to happen or how we can fix it?

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

2 participants
@bb4L and others