Can't create pod via graphQL endpoint but works manually
I'm trying to create a new pod using a given template and networkvolume.
I can do this using the website just fine however when I try to duplicate the exact same settings using the podRentInterruptable graphQL mutation I'm getting a
There are no longer any instances available with the request specifications. Please try again later.
error.
Here is the mutation:
This exact same mutation works with the A6000, while I cannot select the A6000 in the UI.
Could someone help explain to me what I'm doing wrong? I tried checking the graphQL docs but they're mostly useless.38 Replies
srry my i can't find any reason that wouldn't work if the capacity is up
Maybe try asking runpod support from contact button in the website
Ah, they don't have actual support staff here then?
(I appreciate the assist btw)
You have to provide data center id when providing network volume id otherwise it does not work.
That would be
US-OR-1
yeah?
As in, just the name of the region, they don't have some specific ID somewhere?
If so, no difference sadlyThey do, but mainly they respond from the website
Oh ya try that
No I'm not sure if that's the datacenter id
I think you have to query somewhere else, but if not then try that first
US-OR-1 didn't change anything
I'll try querying for the datacenters, see what it outputs
Your bid price is also too low, minimum is 0.39
I even tried 15 haha
$15 ?
Just to test, yeah, just got the same message
image id may also be required
Should be in the template no?
I just queried and the dataCenterId is 'US-OR-1'
One would think, but probably a bug where you have to provide it
You're referring to the imageName field yeah?
No difference :/
Try add volume mount path
Ends up with all the fields inputted hahaha
Yeah well worth trying
Error messages from the API could be better, its like trying to find a needle in a haystack when there is an error
Aye, the docs themselves aswell, almost 0 explanation about what certain fields do
Still no diff with the mountpath added
I guess just keep trying to add fields until it works
How would making it more specific fix it?
Some fields are required but the error doesn't tell you, so you have to discover it by trial and error
Wow, okay haha
I'm starting to wonder if I made a mistake lmao
Thanks for the assist in any case
Could be possible that you made a mistake if template id is wrong
No the IDs are correct
It works with the A6000 somehow
Also network volume id is the id not the name
Aye
Oh I see, thats strange then
They both use the actual ID
Ok good
The weirdest thing is that it works with the A6000, like I see it linked to the network volume and template. But I can't do that manually
Like when I try that the A6000 is greyed out
Yeah thats bizarre
Ikr, but graphql..
I was excited when I saw a JS SDK but then I fell back into despair when it only worked for endpoints lmao
They're working on graphql apis too last time I heard
Yeah I'm not really using it so.. Sorry can't help much
Honestly, I want a normal API I can just POST to, not be forced into graphQL or a SDK if I dont' want to but yeah
I had to implement graphQL in my project specifically for this haha
Hmm feel free to write it on #🧐|feedback
Like a rest api?
Aye