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

HTTP 500 when loading agreements for a user (Sepolia) #155

Open
aahna-ashina opened this issue Mar 5, 2024 · 1 comment
Open

HTTP 500 when loading agreements for a user (Sepolia) #155

aahna-ashina opened this issue Mar 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aahna-ashina
Copy link
Member

aahna-ashina commented Mar 5, 2024

Getting an HTTP 500 Internal Server Error when opening https://agreements-sepolia.nation3.org/agreements

GET https://agreements-sepolia.nation3.org/api/11155111/agreements/0x4e3072f7b5C075EA5FdEb423DA95312C4B99dc22 500 (Internal Server Error)

Response:

{"message":"Internal server error on agreements fetching"}

Vercel log output: #155 (comment)

@aahna-ashina aahna-ashina added the bug Something isn't working label Mar 5, 2024
@aahna-ashina
Copy link
Member Author

aahna-ashina commented Mar 5, 2024

Vercel log output:

ClientError: Type `AgreementPosition` has no field `collateral`: {"response":{"errors":[{"locations":[{"line":5,"column":25}],"message":"Type `AgreementPosition` has no field `collateral`"}],"status":200,"headers":{}},"request":{"query":"\n\tquery GetUserAgreements($account: Bytes!) {\n\t\tagreementPositions(where: { party: $account }) {\n\t\t\tparty\n\t\t\tcollateral\n\t\t\tstatus\n\t\t\tagreement {\n\t\t\t\tid\n\t\t\t\tmetadataURI\n\t\t\t\tcreatedAt\n\t\t\t\tstatus\n\t\t\t\ttoken\n\t\t\t}\n\t\t}\n\t}\n","variables":{"account":"0x4e3072f7b5C075EA5FdEb423DA95312C4B99dc22"}}}
    at makeRequest (file:///var/task/node_modules/graphql-request/build/esm/index.js:283:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async handler (/var/task/packages/web-app/.next/server/pages/api/[chain]/agreements/[account].js:168:22) {
  response: {
    errors: [ [Object] ],
    status: 200,
    headers: Headers { [Symbol(map)]: [Object: null prototype] }
  },
  request: {
    query: '\n' +
      '\tquery GetUserAgreements($account: Bytes!) {\n' +
      '\t\tagreementPositions(where: { party: $account }) {\n' +
      '\t\t\tparty\n' +
      '\t\t\tcollateral\n' +
      '\t\t\tstatus\n' +
      '\t\t\tagreement {\n' +
      '\t\t\t\tid\n' +
      '\t\t\t\tmetadataURI\n' +
      '\t\t\t\tcreatedAt\n' +
      '\t\t\t\tstatus\n' +
      '\t\t\t\ttoken\n' +
      '\t\t\t}\n' +
      '\t\t}\n' +
      '\t}\n',
    variables: { account: '0x4e3072f7b5C075EA5FdEb423DA95312C4B99dc22' }
  }
}

@aahna-ashina aahna-ashina changed the title HTTP 500 when loading agreements for a user HTTP 500 when loading agreements for a user (Sepolia) Mar 5, 2024
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
Status: 🔖 Ready
Development

No branches or pull requests

1 participant