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

CHARON_BEACON_NODE_ENDPOINTS doesn't support url params #3228

Open
tonysub7 opened this issue Aug 13, 2024 · 0 comments
Open

CHARON_BEACON_NODE_ENDPOINTS doesn't support url params #3228

tonysub7 opened this issue Aug 13, 2024 · 0 comments
Labels
protocol Protocol Team tickets

Comments

@tonysub7
Copy link

🐞 Bug Report

Description

Currently using google cloud managed blockchain to host my BN/EN, and the provided endpoint needs a API key to be appended at the end of the url. For example: https://beacon.someid.blockchainnodeengine.com/?key=SOME_KEY

I've configured .env as CHARON_BEACON_NODE_ENDPOINTS=https://beacon.someid.blockchainnodeengine.com/?key=SOME_KEY

And it seems that its unable to query the BN api endpoints.

Has this worked before in a previous version?

NA

🔬 Minimal Reproduction

Set .env as CHARON_BEACON_NODE_ENDPOINTS=https://beacon.someid.blockchainnodeengine.com/?key=SOME_KEY

🔥 Error

Emit scheduled slot event: beacon api validators: nok http response {"slot": 2306413, "label": "validators", "status_code": 400, "endpoint": "/eth/v1/beacon/states/head/validators", "method": "GET", "data": "{\"error\":{\"code\":500,\"message\":\"BAD_REQUEST: unknown field `key`, expected `id` or `status`\",\"stacktraces\":[],\"status\":\"\"}}"}
WARN tracker    Failed to check inclusion: beacon api block_attestations: request block attestations failed {"slot": 2306408, "label": "block_attestations", "status": 400, "body": "{\"error\":{\"code\":400,\"message\":\"API key not valid. Please pass a valid API key.\",\"status\":\"INVALID_ARGUMENT\",\"details\":[{\"@type\":\"type.googleapis.com/google.rpc.ErrorInfo\",\"reason\":\"API_KEY_INVALID\",\"domain\":\"googleapis.com\",\"metadata\":{\"service\":\"blockchainnodeengine.googleapis.com\"}}]}}"}

🌍 Your Environment

Operating System:

Ubuntu 22

What version of Charon are you running? (Which release)

1.0.1

Anything else relevant (validator index / public key)?

@github-actions github-actions bot added the protocol Protocol Team tickets label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
protocol Protocol Team tickets
Projects
None yet
Development

No branches or pull requests

1 participant