Skip to content

Pipeline image list not working #5

@emmacarli

Description

@emmacarli
(base) ecarli@HAW20002952 ~ % psrdb -v pipeline_image list
2025-01-17 15:25:19,698 - root - 46   - INFO      :: Console logger enabled
send: b'POST /api//graphql/ HTTP/1.1\r\nHost: pulsars.org.au\r\nUser-Agent: python-requests/2.32.3\r\nAccept-Encoding: gzip, deflate, br\r\nAccept: */*\r\nConnection: keep-alive\r\nAuthorization: JWT REDACTED\r\nContent-Length: 469\r\nContent-Type: application/json\r\n\r\n'
send: b'{"query": "query pipelineimage (\\n        $first: Int\\n    ) {\\n    pipelineimage (\\n        first: $first\\n    ) {\\n        pageInfo { hasNextPage endCursor }\\n        edges {\\n            node {\\n                id\\n                image\\n                imageType\\n                resolution\\n                cleaned\\n                pipelineRun {id}\\n            }\\n        }\\n    }\\n}\\n    ", "variables": "{\\"id\\": null, \\"pipelineRunId\\": null, \\"first\\": 100}"}'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Server: nginx/1.14.0 (Ubuntu)
header: Date: Fri, 17 Jan 2025 04:25:19 GMT
header: Content-Type: application/json
header: Content-Length: 187
header: Connection: keep-alive
header: Vary: Cookie
header: X-Frame-Options: DENY
header: X-Content-Type-Options: nosniff
header: Referrer-Policy: same-origin
header: Cross-Origin-Opener-Policy: same-origin
header: Set-Cookie: csrftoken=Q9HieO6MZQvjepE2z49kiwlCJPIKuHuW; expires=Fri, 16 Jan 2026 04:25:19 GMT; Max-Age=31449600; Path=/; SameSite=Lax
2025-01-17 15:25:19,926 - psrdb.graphql_client - 70   - ERROR     :: GraphQL response.status_code != 400
2025-01-17 15:25:19,926 - psrdb.graphql_client - 50   - ERROR     :: Error: Cannot query field "pipelineimage" on type "Query". Did you mean "pipelineImage", "pipelineFile" or "pipelineRun"?
2025-01-17 15:25:19,926 - root - 72   - ERROR     :: Query failed with the error code 400, error:
Traceback (most recent call last):
  File "/opt/anaconda3/bin/psrdb", line 8, in <module>
    sys.exit(main())
  File "/opt/anaconda3/lib/python3.9/site-packages/psrdb/scripts/psrdb.py", line 73, in main
    print(json.loads(response.content))
UnboundLocalError: local variable 'json' referenced before assignment


For some reason the case is wrong when making the graphQL query

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions