Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S swh-graphql
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Platform
  • Development
  • swh-graphql
  • Issues
  • #4514
Closed
Open
Issue created Sep 08, 2022 by vlorentz@vlorentzMaintainer

graphql: object_id must be <class 'bytes'> (got None that is a <class 'NoneType'>)

On https://graphql.staging.swh.network/

This query:

query {
  origin(url: "https://github.com/progval/Limnoria") {
    id
    visits(first: 10) {
      nodes {
        id
        visitId
        status(first: 2) {
          nodes {
            status
            snapshot {
              swhid
            }
          }
        }
      }
    }
  }
}

returns this:

{
  "data": {
    "origin": {
      "id": "fbc59d47d4cc806cfdae45afc0a77a9a3dd482a6",
      "visits": {
        "nodes": [
          {
            "id": "aHR0cHM6Ly9naXRodWIuY29tL3Byb2d2YWwvTGltbm9yaWEtMQ==",
            "visitId": 1,
            "status": {
              "nodes": [
                {
                  "status": "created",
                  "snapshot": null
                }
              ]
            }
          },
          {
            "id": "aHR0cHM6Ly9naXRodWIuY29tL3Byb2d2YWwvTGltbm9yaWEtMg==",
            "visitId": 2,
            "status": {
              "nodes": [
                {
                  "status": "created",
                  "snapshot": null
                },
                {
                  "status": "full",
                  "snapshot": {
                    "swhid": "swh:1:snp:d6a18550ce6a380b67cd44e7b6ed316a028598a2"
                  }
                }
              ]
            }
          },
          {
            "id": "aHR0cHM6Ly9naXRodWIuY29tL3Byb2d2YWwvTGltbm9yaWEtMw==",
            "visitId": 3,
            "status": {
              "nodes": [
                {
                  "status": "created",
                  "snapshot": null
                },
                {
                  "status": "full",
                  "snapshot": {
                    "swhid": "swh:1:snp:fee6a7f17524ce32b01bc6ce06943302e6c524fc"
                  }
                }
              ]
            }
          },
          {
            "id": "aHR0cHM6Ly9naXRodWIuY29tL3Byb2d2YWwvTGltbm9yaWEtNA==",
            "visitId": 4,
            "status": {
              "nodes": [
                {
                  "status": "created",
                  "snapshot": null
                },
                {
                  "status": "full",
                  "snapshot": {
                    "swhid": "swh:1:snp:fee6a7f17524ce32b01bc6ce06943302e6c524fc"
                  }
                }
              ]
            }
          }
        ]
      }
    }
  },
  "errors": [
    {
      "message": "object_id must be <class 'bytes'> (got None that is a <class 'NoneType'>)",
      "locations": [
        {
          "line": 11,
          "column": 13
        }
      ],
      "path": [
        "origin",
        "visits",
        "nodes",
        0,
        "status",
        "nodes",
        0,
        "snapshot"
      ]
    },
    {
      "message": "object_id must be <class 'bytes'> (got None that is a <class 'NoneType'>)",
      "locations": [
        {
          "line": 11,
          "column": 13
        }
      ],
      "path": [
        "origin",
        "visits",
        "nodes",
        1,
        "status",
        "nodes",
        0,
        "snapshot"
      ]
    },
    {
      "message": "object_id must be <class 'bytes'> (got None that is a <class 'NoneType'>)",
      "locations": [
        {
          "line": 11,
          "column": 13
        }
      ],
      "path": [
        "origin",
        "visits",
        "nodes",
        2,
        "status",
        "nodes",
        0,
        "snapshot"
      ]
    },
    {
      "message": "object_id must be <class 'bytes'> (got None that is a <class 'NoneType'>)",
      "locations": [
        {
          "line": 11,
          "column": 13
        }
      ],
      "path": [
        "origin",
        "visits",
        "nodes",
        3,
        "status",
        "nodes",
        0,
        "snapshot"
      ]
    }
  ]
}

Migrated from T4514 (view on Phabricator)

Assignee
Assign to
Time tracking