#Impossible to launch a CPU Pods via API

20 messages · Page 1 of 1 (latest)

wary lodge
#

when I try to launch a CPu pods via APi with it's id it just crash, with the graphql api it say :

Pod resumed: {
errors: [
{
message: 'Something went wrong. Please try again later or contact support.',
path: [Array],
extensions: [Object]
}
],
data: { podResume: null }
}

via curl it say :

Internal Server Error

what should i do, I need to be able to resume and pause my pods, else what is the interest of an on demand solution ?!

charred rapidsBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

quick surge
#

I am able to create, stop and then resume, can you post the graphql query here? maybe something is missing?

wary lodge
#

try the same with a CPU one, it does not work for me

#

mutation { podResume(input: { podId: "${RUN_POD_ID}" }) { id desiredStatus imageName env machineId machine { podHostId } } }

#

here is my graphql code

#

and the curl :
curl -X POST
-H "Content-Type: application/json"
-H "Authorization: Bearer MyToken"
-d '{
"query": "mutation { podResume(input: { podId: "1784utm8khhhep" }) { id desiredStatus imageName env machineId machine { podHostId } } }"
}'
https://api.runpod.io/graphql

=> Internal Server Error

#

I even tried that

#

but i always get this reponse =>

quick surge
#

Ah, I see. Let me try it and let you know.

wary lodge
#

Thanks a lot ! @quick surge

quick surge
wary lodge
#

but thanks @quick surge ! i was hopeless with that issue

quick surge
#

You’re welcome! I figured it out by inspecting the browser’s network calls tab when I clicked the CPU pod resume button😂😂

#

Will ask them to update docs and provide more examples.

wary lodge
#

thanks ! nice idea to sniff their own api calls 😂