podTerminate query returns error GRAPHQL_VALIDATION_FAILED
Hi, I am trying to terminate pods through the GraphQL API. I am sending the query through the python requests module, and my method has worked for starting and listing pods. However, for podTerminate it doesn't work and gives this error:
{"errors":[{"message":"Something went wrong. Please try again later or contact support.","locations":[{"line":3,"column":39}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}
4 Replies
@ashleyk any ideas?
Would appreciate any help 🙏
I don't use the RunPod SDK for this, I use GraphQL directly - https://github.com/ashleykleynhans/runpod-api
@Justin Merrell is probably your best bet.
GitHub
GitHub - ashleykleynhans/runpod-api: A collection of Python scripts...
A collection of Python scripts for calling the RunPod GraphQL API - GitHub - ashleykleynhans/runpod-api: A collection of Python scripts for calling the RunPod GraphQL API
Oh actually I see you aren't using the SDK my bad, see my repo for an example how to do it.
Damn that's awesome, thank you!!