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

401 Unauthorized unmarshaling response #231

Closed
Tracked by #200
PaulRBerg opened this issue Aug 21, 2023 · 16 comments
Closed
Tracked by #200

401 Unauthorized unmarshaling response #231

PaulRBerg opened this issue Aug 21, 2023 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@PaulRBerg
Copy link
Contributor

PaulRBerg commented Aug 21, 2023

Context

Source: https://rollkit.dev/tutorials/gm-world#start-your-rollup

Running the init-local.sh script works now, but I am getting the following errors:

RPC client error: sendRequest failed: http status 401 Unauthorized unmarshaling response: EOF

Full logs here.

Environment

@jcstein
Copy link
Member

jcstein commented Aug 21, 2023

what version of ignite-cli are you on?

did you rebuild the gmd binary?

attempting to reproduce myself now

@jcstein
Copy link
Member

jcstein commented Aug 21, 2023

pulling these from your logs for vis

3:34PM INF indexed block height=30 module=txindex
3:34PM INF Creating and publishing block height=31 module=BlockManager
3:34PM INF minted coins from module account amount=411947419464369516stake from=mint module=x/bank
3:34PM ERR DA layer submission failed error="RPC client error: sendRequest failed: http status 401 Unauthorized unmarshaling response: EOF" attempt=1 module=BlockManager
3:34PM ERR DA layer submission failed error="RPC client error: sendRequest failed: http status 401 Unauthorized unmarshaling response: EOF" attempt=2 module=BlockManager
...

@jcstein
Copy link
Member

jcstein commented Aug 21, 2023

also, while trying to reproduce this, I am noticing that in the rollkit logs there is no longer a line of the format:

2:11PM INF successfully submitted Rollkit block to DA layer daHeight=42606 module=BlockManager rollkitHeight=4

just these:

6:50PM INF indexed block height=200 module=txindex
6:50PM INF Creating and publishing block height=201 module=BlockManager
6:50PM INF minted coins from module account amount=411959957677506844stake from=mint module=x/bank
6:50PM INF commit synced commit=436F6D6D697449447B5B3939203438203232322031393120323036203131382032333220313137203437203630203334203234372031383920313938203230372032323520313520333320343120323920323237203130322038342031393920323120313933203133372031383120343920313637203137362032395D3A43397D module=server

@jcstein jcstein self-assigned this Aug 21, 2023
@jcstein jcstein added the bug Something isn't working label Aug 21, 2023
@PaulRBerg
Copy link
Contributor Author

what version of ignite-cli are you on?

the latest, v0.27.1

did you rebuild the gmd binary?

yes

@PaulRBerg
Copy link
Contributor Author

#234 didn't fix this

@jcstein
Copy link
Member

jcstein commented Aug 22, 2023

I wasn't able to reproduce this yesterday, starting another instance to see if i can hit this issue now

@jcstein
Copy link
Member

jcstein commented Aug 22, 2023

I was able to reproduce here on local-celestia-devnet

@jcstein
Copy link
Member

jcstein commented Aug 22, 2023

and was not able to reproduce this on arabica, using light node running v0.11.0-rc8

logs here

@PaulRBerg
Copy link
Contributor Author

@jcstein reproduced with v0.11.0-rc8

@jcstein
Copy link
Member

jcstein commented Aug 23, 2023

thank you @PaulRBerg - you haven't reproduced on a live testnet like Arabica though, right? I'm thinking it may be something specific to local-celestia-devnet

@jcstein
Copy link
Member

jcstein commented Aug 23, 2023

cc @rollkit/celestia for visibility

@tuxcanfly
Copy link
Contributor

Would be good to confirm this is not due to auth token mismatch:

docker exec $(docker ps -q) celestia bridge --node.store /bridge auth admin

should give you the local celestia devnet bridge node auth token. Assuming there's only one container, otherwise you can pass the container name.

@tuxcanfly
Copy link
Contributor

To be clear I saw 401 Unauthorized unmarshaling response: EOF when the auth token provided in init-local.sh does not match the token provided by the node. So wasn't able to repro with the right token provided.

@PaulRBerg
Copy link
Contributor Author

Oh shoot, yes, I was using an auth token from another light node I spun up before.

Can confirm that now, after putting the right token in init-local.sh, running the gm works without any 401 Unauthorized errors!

Thanks for your help, guys.

@jcstein
Copy link
Member

jcstein commented Aug 23, 2023

glad to hear it! i'm about to get around to editing the tutorial to use this method instead of copying from logs :)

thank you @PaulRBerg and @tuxcanfly !

@jcstein
Copy link
Member

jcstein commented Aug 23, 2023

linking this PR with some fixes in case you are trying out FN + SN setup or anything!

#241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants