Skip to content

Conversation

@PierreJeanjacquot
Copy link
Member

@PierreJeanjacquot PierreJeanjacquot commented Jul 29, 2025

issue:

image

when no granted access is found in market API, the subgraph was called with bad params resulting in an error

=> subgraph error when processing the query GetValidContacts with $id = []

query GetValidContacts(
    $requiredSchema: [String!]!
    $id: [String!]!
    $start: Int!
    $range: Int!
  ) {
    protectedDatas(
      where: {
        transactionHash_not: "0x"
        schema_contains: $requiredSchema
        id_in: $id
      }
      skip: $start
      first: $range
      orderBy: creationTimestamp
      orderDirection: desc
    ) {
      id
    }
}

error

{ message: "bad indexers: {0xbdfb5ee5a2abf4fc7bb1bd1221067aef7f9de491: BadResponse(unattestable response: panic processing query: index out of bounds: the len is 0 but the index is 0), 0xf92f430dd8567b0d466358c79594ab58d919a6d4: BadResponse(unattestable response: panic processing query: index out of bounds: the len is 0 but the index is 0)}" }

@PierreJeanjacquot PierreJeanjacquot changed the title fix: fix contact fetching error when user has no contacts fix: prevent fetchUserContacts error when user has no contacts Jul 30, 2025
@PierreJeanjacquot PierreJeanjacquot changed the title fix: prevent fetchUserContacts error when user has no contacts fix: prevent fetchUserContacts error when user has no contact Jul 30, 2025
Copy link
Contributor

@abbesBenayache abbesBenayache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PierreJeanjacquot PierreJeanjacquot merged commit 261dcb1 into main Jul 30, 2025
5 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the fix-get-valid-contact branch July 30, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants