Open olivbau opened 1 year ago
It seems that there are envs
for this problem: https://github.com/ethereum-optimism/optimism/tree/develop/packages/data-transport-layer#configuration-1
envs:
DATA_TRANSPORT_LAYER__L1_RPC_USER
DATA_TRANSPORT_LAYER__L1_RPC_PASSWORD
DATA_TRANSPORT_LAYER__L2_RPC_USER
DATA_TRANSPORT_LAYER__L2_RPC_PASSWORD
I'll try to create a PR to support this envs
Unfortunately it seems that there are no user and password options for FAULT_DETECTOR__L1_RPC_PROVIDER
and OP_NODE__RPC_ENDPOINT
Do you have any ideas?
I tried to use DATA_TRANSPORT_LAYER__L1_RPC_USER
and DATA_TRANSPORT_LAYER__L1_RPC_PASSWORD
for DATA_TRANSPORT_LAYER__RPC_ENDPOINT
.
And use https://user:password@host:port
syntax for FAULT_DETECTOR__L1_RPC_PROVIDER
and OP_NODE__RPC_ENDPOINT
.
Here is what I changed (just add DATA_TRANSPORT_LAYER__L1_RPC_USER
and DATA_TRANSPORT_LAYER__L1_RPC_PASSWORD
support)
https://github.com/smartcontracts/simple-optimism-node/compare/main...olivbau:simple-optimism-node:basicauth-support
But it's not working, here is the type of errors I get on the DTL:
{
"level":50,
"time":1682520117625,"extra":{"message":"TypeError: Cannot read properties of null (reading 'from')","stack":"TypeError: Cannot read properties of null (reading 'from')
at Object.getExtraData (/opt/optimism/packages/data-transport-layer/dist/src/services/l1-ingestion/handlers/sequencer-batch-appended.js:27:38)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async L1IngestionService._syncEvents (/opt/optimism/packages/data-transport-layer/dist/src/services/l1-ingestion/service.js:286:39)
at async L1IngestionService._start (/opt/optimism/packages/data-transport-layer/dist/src/services/l1-ingestion/service.js:165:17)
at async L1IngestionService.start (/opt/optimism/packages/common-ts/dist/base-service/base-service.js:33:9)
at async Promise.all (index 1)
at async L1DataTransportService._start (/opt/optimism/packages/data-transport-layer/dist/src/services/main/service.js:69:13)
at async L1DataTransportService.start (/opt/optimism/packages/common-ts/dist/base-service/base-service.js:33:9)
at async /opt/optimism/packages/data-transport-layer/dist/src/services/run.js:78:9"},"msg":"Caught an unhandled error"
}
Do you have any ideas on how to fix this problem?
My L1 RPC endpoint is protected by a basic auth. In my .env file I have something like this:
It doesn't seem to work, here is the DTL error:
Do you have any idea how I can get around this problem?