vegaprotocol / data-node

A rich API server for Vega Protocol
https://vega.xyz
Other
3 stars 1 forks source link

party marginConnections and party positions marginConnections both raises errors #849

Closed bglownia closed 2 years ago

bglownia commented 2 years ago

Problem encountered

When running below query on testnet (https://lb.testnet.vega.xyz/playground)

query Positions($partyId: ID!) {
  party(id: $partyId) {
    marginsConnection {
      edges {
        node {
          initialLevel
        }
      }
    }
    positionsConnection {
      edges {
        node {
          marginsConnection {
            edges {
              node {
                initialLevel
              }
            }
          }
        }
      }
    }
  }
}
{"partyId": "02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65"}

Observed behaviour

I receive error

failed to make edge for {1108 15618114 17179925 39045285 42168907 2022-08-12 13:29:35.930284 +0000 UTC 2022-08-12 13:29:35.930284 +0000 UTC}: expected account source argument, got:[0xc000554600]

Expected behaviour

A clear and concise description of what you expected to happen.

System response

Describe what the system response was, include the output from the command, automation, or else.

Steps to reproduce

Manual

Steps to reproduce the behaviour manually:

  1. Go to https://lb.testnet.vega.xyz/playground
  2. Run provided query
  3. See error

Evidence

image

Logs

If applicable, add logs and/or screenshots to help explain your problem.

Additional context

Add any other context about the problem here including; system version numbers, components affected.

Definition of Done

ℹ️ Not every issue will need every item checked, however, every item on this list should be properly considered and actioned to meet the DoD.

Before Merging

After Merging

guoguojin commented 2 years ago

This was fixed in https://github.com/vegaprotocol/data-node/pull/830