Skip to content

Failed to make RPC request — pegnetd get rates #161

@ilzheev

Description

@ilzheev

I have written a script that calculates average FCT price using PegNet.

pegnetd is fully synced:

pegnetd[5412]: time="2020-09-04T02:22:28Z" level=info msg="status report" height=261018
pegnetd[5412]: time="2020-09-04T03:22:05Z" level=info msg="status report" height=261024
pegnetd[5412]: time="2020-09-04T04:22:15Z" level=info msg="status report" height=261030
pegnetd[5412]: time="2020-09-04T05:22:06Z" level=info msg="status report" height=261036
pegnetd[5412]: time="2020-09-04T06:22:02Z" level=info msg="status report" height=261042
pegnetd[5412]: time="2020-09-04T07:22:04Z" level=info msg="status report" height=261048

My script makes 500 sequential requests pegnetd get rates {height}.
pegnetd returns this error for exactly the same heights:

pegnetd get rates 260814
Failed to make RPC request
Details:
jsonrpc2.Error{Code:ErrorCode{-32809}, Message:"Not Found", Data:"could not find what you were looking for"}

It's not a pokemon bug, because each run I get exactly the same "failed" heights:

500 blocks range [260548-261047] read:

Missing PegNet blocks count: 132 (260814, 260815, 260817, 260823, 260837, 260852, 260857, 260858, 260859, 260860, 260861, 260862, 260863, 260865, 260866, 260868, 260869, 260871, 260872, 260873, 260874, 260875, 260876, 260877, 260878, 260879, 260880, 260881, 260882, 260883, 260884, 260885, 260886, 260887, 260888, 260889, 260890, 260891, 260892, 260893, 260894, 260896, 260899, 260901, 260902, 260903, 260906, 260907, 260908, 260909, 260910, 260911, 260912, 260917, 260919, 260932, 260933, 260935, 260936, 260937, 260945, 260946, 260947, 260948, 260949, 260950, 260951, 260952, 260953, 260954, 260955, 260956, 260957, 260958, 260959, 260960, 260961, 260962, 260963, 260964, 260965, 260966, 260967, 260968, 260969, 260970, 260971, 260972, 260973, 260974, 260975, 260976, 260977, 260978, 260979, 260980, 260981, 260982, 260984, 260985, 260986, 260987, 260988, 260989, 260990, 260991, 260992, 260993, 260994, 260995, 260996, 260997, 260998, 260999, 261000, 261001, 261002, 261003, 261004, 261005, 261006, 261007, 261008, 261009, 261010, 261011, 261012, 261013, 261014, 261015, 261016, 261017)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions