streamingfast / substreams-sink-kv

Substreams KV sink
Apache License 2.0
2 stars 5 forks source link

`-plaintext` flag doesn't seem to work #12

Closed YaroShkvorets closed 1 year ago

YaroShkvorets commented 1 year ago

I believe it would prevent "value" from being protobuf encoded?

Tried to run it but getting this error:

2023-03-14T18:59:07.467-0400 ERRO (sink-kv) substreams encountered an error {"error": "call sf.substreams.v1.Stream/Blocks: rpc error: code = Unavailable desc = connection closed before server preface received"}

Reproduce:

substreams-sink-kv run --listen-addr=0.0.0.0:8000 --plaintext badger3://./my-badger.db https://github.com/YaroShkvorets/substreams-eth-block-meta/releases/download/v0.6.0/substreams-eth-block-meta-v0.6.0.spkg kv_out
maoueh commented 1 year ago

Weird, the error does not seem to match when TLS is used to a plaintext connection.

maoueh commented 1 year ago

What was it in the end?

YaroShkvorets commented 1 year ago

I misunderstood the meaning of the --plaintext flag I was trying to use it on TLS-enabled endpoint.