graphql Unauthorized
When I perform the "myPods" query [https://graphql-spec.runpod.io/#query-myself looks similar] with the "machines" field, I receive a strange output:
The "data" field contains normal data but without "machines".
1. Why am I facing "Unauthorized"?
2. How do I filter my pods by dataCenter's value?
Script to reproduce:
6 Replies
It is said there, it's unaothorized
Yeah means the API key is invalid.
OK, why I can see my pods then with this API key in the same response?
Also if I remove machines from query, I receive a response with no error
Then you don't have access to machines
"you" meaning your API key
I understand. Can you tell me what should I do to obtain machines? Or dataCenter of pods (that would be enough)
Solution
The solution was given on Slack
I had to use this query not like
But
Note, that gql spec is outdated