doesn't work when only one of endpoint is unavailable #73

Closed
opened 2025-12-28 18:12:22 +00:00 by sami · 0 comments
Owner

Originally created by @532910 on GitHub (Nov 10, 2025).

Originally assigned to: @smallhive on GitHub.

config.yaml:

chain:
  fschain: true
  rpc:
    dial_timeout: 15s
    endpoint:
    - https://rpc1.morph.t5.fs.neo.org
    - https://rpc2.morph.t5.fs.neo.org
    - https://rpc3.morph.t5.fs.neo.org
    - https://rpc4.morph.t5.fs.neo.org
    - https://rpc5.morph.t5.fs.neo.org
    - https://rpc6.morph.t5.fs.neo.org
    - https://rpc7.morph.t5.fs.neo.org
logger:
  level: info
metrics:
  endpoint: 127.0.0.1:16515
  interval: 15s

with rpc7.morph.t5.fs.neo.org down:

Nov 10 02:00:24 mona neo-exporter-testnet-fschain[250261]: {"level":"error","ts":1762740024043228043,"caller":"neo-exporter/monitor.go:61","msg":"can't create side chain neo-go client","error":"init Neo RPC client: failed to get network magic: Post \"https://rpc7.morph.t5.fs.neo.org\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","sleepForSec":3,"endpoints":["https://rpc1.morph.t5.fs.neo.org","https://rpc2.morph.t5.fs.neo.org","https://rpc3.morph.t5.fs.neo.org","https://rpc4.morph.t5.fs.neo.org","https://rpc5.morph.t5.fs.neo.org","https://rpc6.morph.t5.fs.neo.org","https://rpc7.morph.t5.fs.neo.org"],"stacktrace":"main.New\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/monitor.go:61\nmain.main\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/main.go:41\nruntime.main\n\truntime/proc.go:285"}
Nov 10 02:00:34 mona neo-exporter-testnet-fschain[250261]: {"level":"error","ts":1762740034549039990,"caller":"neo-exporter/monitor.go:61","msg":"can't create side chain neo-go client","error":"init Neo RPC client: failed to get network magic: Post \"https://rpc7.morph.t5.fs.neo.org\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","sleepForSec":3,"endpoints":["https://rpc1.morph.t5.fs.neo.org","https://rpc2.morph.t5.fs.neo.org","https://rpc3.morph.t5.fs.neo.org","https://rpc4.morph.t5.fs.neo.org","https://rpc5.morph.t5.fs.neo.org","https://rpc6.morph.t5.fs.neo.org","https://rpc7.morph.t5.fs.neo.org"],"stacktrace":"main.New\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/monitor.go:61\nmain.main\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/main.go:41\nruntime.main\n\truntime/proc.go:285"}
Originally created by @532910 on GitHub (Nov 10, 2025). Originally assigned to: @smallhive on GitHub. config.yaml: ``` chain: fschain: true rpc: dial_timeout: 15s endpoint: - https://rpc1.morph.t5.fs.neo.org - https://rpc2.morph.t5.fs.neo.org - https://rpc3.morph.t5.fs.neo.org - https://rpc4.morph.t5.fs.neo.org - https://rpc5.morph.t5.fs.neo.org - https://rpc6.morph.t5.fs.neo.org - https://rpc7.morph.t5.fs.neo.org logger: level: info metrics: endpoint: 127.0.0.1:16515 interval: 15s ``` with rpc7.morph.t5.fs.neo.org down: ``` Nov 10 02:00:24 mona neo-exporter-testnet-fschain[250261]: {"level":"error","ts":1762740024043228043,"caller":"neo-exporter/monitor.go:61","msg":"can't create side chain neo-go client","error":"init Neo RPC client: failed to get network magic: Post \"https://rpc7.morph.t5.fs.neo.org\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","sleepForSec":3,"endpoints":["https://rpc1.morph.t5.fs.neo.org","https://rpc2.morph.t5.fs.neo.org","https://rpc3.morph.t5.fs.neo.org","https://rpc4.morph.t5.fs.neo.org","https://rpc5.morph.t5.fs.neo.org","https://rpc6.morph.t5.fs.neo.org","https://rpc7.morph.t5.fs.neo.org"],"stacktrace":"main.New\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/monitor.go:61\nmain.main\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/main.go:41\nruntime.main\n\truntime/proc.go:285"} Nov 10 02:00:34 mona neo-exporter-testnet-fschain[250261]: {"level":"error","ts":1762740034549039990,"caller":"neo-exporter/monitor.go:61","msg":"can't create side chain neo-go client","error":"init Neo RPC client: failed to get network magic: Post \"https://rpc7.morph.t5.fs.neo.org\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","sleepForSec":3,"endpoints":["https://rpc1.morph.t5.fs.neo.org","https://rpc2.morph.t5.fs.neo.org","https://rpc3.morph.t5.fs.neo.org","https://rpc4.morph.t5.fs.neo.org","https://rpc5.morph.t5.fs.neo.org","https://rpc6.morph.t5.fs.neo.org","https://rpc7.morph.t5.fs.neo.org"],"stacktrace":"main.New\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/monitor.go:61\nmain.main\n\tgithub.com/nspcc-dev/neo-exporter/cmd/neo-exporter/main.go:41\nruntime.main\n\truntime/proc.go:285"} ```
sami 2025-12-28 18:12:22 +00:00
  • closed this issue
  • added the
    bug
    I4
    S4
    U2
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-exporter#73
No description provided.