Giter VIP home page Giter VIP logo

Comments (10)

tasinco avatar tasinco commented on July 22, 2024

The message: Error 1062: Duplicate entry -- is not an actual error.

from ortelius.

sufiyanghori avatar sufiyanghori commented on July 22, 2024

The message: Error 1062: Duplicate entry -- is not an actual error.

Thank you @tasinco for your response. But when we query the indexer around that time, we always get 0,

curl "http://localhost:8080/v2/aggregates?startTime=2020-09-21T00:00:00Z&endTime=2020-10-21T00:00:00Z"

{
  "aggregates": {
    "startTime": "2020-09-21T00:00:00Z",
    "endTime": "2020-10-21T00:00:00Z",
    "transactionVolume": "0",
    "transactionCount": 0,
    "addressCount": 0,
    "outputCount": 0,
    "assetCount": 0
  },
  "startTime": "2020-09-21T00:00:00Z",
  "endTime": "2020-10-21T00:00:00Z"
}

from ortelius.

sufiyanghori avatar sufiyanghori commented on July 22, 2024

The message: Error 1062: Duplicate entry -- is not an actual error.

There is no data after 2020-09-10 00:00:00.000000 and thats the date in the error too. Can you please suggest whats the issue?

from ortelius.

tasinco avatar tasinco commented on July 22, 2024

start time is inclusive end time is not..
remove endtime or increase it into the future..

from ortelius.

sufiyanghori avatar sufiyanghori commented on July 22, 2024

start time is inclusive end time is not..
remove endtime or increase it into the future..

Even if we try without the endTime, we don't get any results after 2020-09-10T00:00:00Z

Please have a look,

[root@ip-172-31-27-19 ~]# curl "http://localhost:8080/v2/aggregates?startTime=2020-09-10T00:00:00Z"
{"aggregates":{"startTime":"2020-09-10T00:00:00Z","endTime":"2021-02-11T22:08:40Z","transactionVolume":"359999999999990210","transactionCount":77,"addressCount":4936,"outputCount":38844,"assetCount":1},"startTime":"2020-09-10T00:00:00Z","endTime":"2021-02-11T22:08:40Z"}

[root@ip-172-31-27-19 ~]#
[root@ip-172-31-27-19 ~]#
[root@ip-172-31-27-19 ~]#
[root@ip-172-31-27-19 ~]# curl "http://localhost:8080/v2/aggregates?startTime=2020-09-11T00:00:00Z"

{"aggregates":{"startTime":"2020-09-11T00:00:00Z","endTime":"2021-02-11T22:08:52Z","transactionVolume":"0","transactionCount":0,"addressCount":0,"outputCount":0,"assetCount":0},"startTime":"2020-09-11T00:00:00Z","endTime":"2021-02-11T22:08:52Z"}
[root@ip-172-31-27-19 ~]#

from ortelius.

tasinco avatar tasinco commented on July 22, 2024

The duplicate row was not inserted.. The first row that did insert set the timestamp. You would need the timestamp of the first row. This is still not an issue.

from ortelius.

sufiyanghori avatar sufiyanghori commented on July 22, 2024

The duplicate row was not inserted.. The first row that did insert set the timestamp. You would need the timestamp of the first row. This is still not an issue.

Thank you @tasinco for your response. I can totally understand what you are saying that duplicate rows were not inserted. I am confused to understand that why the subsequent rows are not inserted either? The ones after the duplicated row, and how can I resume inserting the rows?

from ortelius.

tasinco avatar tasinco commented on July 22, 2024

Subsequent non duplicated rows will be inserted.. It is possible that you have not had any new rows added possibly because the node is still bootstrapping.
You can query the db to check what rows were added.

from ortelius.

Craddock7 avatar Craddock7 commented on July 22, 2024

Let the team at GitHub fix your issues asap

from ortelius.

tasinco avatar tasinco commented on July 22, 2024

You can review: https://github.com/ava-labs/ortelius/blob/master/docs/production.md <- on how to setup ortelius.

from ortelius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.