R
RunPod13mo ago
Maxim

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"}}]}
No description
4 Replies
Maxim
MaximOP13mo ago
@ashleyk any ideas? Would appreciate any help 🙏
ashleyk
ashleyk13mo ago
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
ashleyk
ashleyk13mo ago
Oh actually I see you aren't using the SDK my bad, see my repo for an example how to do it.
Maxim
MaximOP13mo ago
Damn that's awesome, thank you!!

Did you find this page helpful?