Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entriesNewerThanSeqNum pagination fails with parsing SeqNum #199

Closed
adzialocha opened this issue Jul 8, 2022 · 1 comment · Fixed by #256
Closed

entriesNewerThanSeqNum pagination fails with parsing SeqNum #199

adzialocha opened this issue Jul 8, 2022 · 1 comment · Fixed by #256
Assignees
Labels
bug Something isn't working

Comments

@adzialocha
Copy link
Member

adzialocha commented Jul 8, 2022

This request (against aquadoggo with empty database):

{
  entriesNewerThanSeqNum(logId: "1", seqNum: "0", publicKey: "2f8e50c2ede6d936ecc3144187ff1c273808185cfbc5ff3d3748d1ff7353fc96") {
    edges {
      node {
        entry
      }
    }
  }
}

Leads to the following error:

[2022-07-08T16:41:26Z WARN  aquadoggo::replication::service] Replication request to peer https://362b-89-204-137-157.eu.ngrok.io/graphql failed: Replication query failed with error
    GQLClient Error: Look at json field for more details
    Message: Failed to parse "SeqNum": invalid type: integer `1`, expected a string
@adzialocha adzialocha added the bug Something isn't working label Jul 8, 2022
@adzialocha
Copy link
Member Author

adzialocha commented Jul 8, 2022

Sequence numbers can not be zero, so I guess the seqNum parameter needs to be 1 at least, but then we need to change how we paginate.

@adzialocha adzialocha changed the title Replication fails with parsing SeqNum entriesNewerThanSeqNum pagination fails with parsing SeqNum Jul 8, 2022
@adzialocha adzialocha self-assigned this Aug 11, 2022
@adzialocha adzialocha removed their assignment Aug 25, 2022
@adzialocha adzialocha self-assigned this Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant