R
RunPod3w ago
Scorum

GraphQL API Issue: Launching Pod Fails (GRAPHQL_VALIDATION_FAILED)

I'm unable to launch a specific pod configuration via the GraphQL API (podFindAndDeployOnDemand at https://api.runpod.io/graphql), consistently getting an HTTP 400 GRAPHQL_VALIDATION_FAILED error. My myself query works fine with the same API key. Target Configuration: GPU: NVIDIA A40 Image: runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04 Network Volume ID: hlm2fs1bpr (at /workspace) Ports: 8888/http, 8188/http, 22/tcp Container Disk: 20 GB Attempts: Using templateId="runpod-torch-v240" (like the UI sends) -> fails validation. Using imageName with various input parameters (minimal, mimicking UI details like minMemoryInGb, dataCenterId, etc.) -> also fails validation. Example Failed Input (using imageName): { "input": { "imageName": "runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04", "gpuTypeId": "NVIDIA A40", "containerDiskInGb": 20, "ports": "8888/http,8188/http,22/tcp", "networkVolumeId": "hlm2fs1bpr", "volumeMountPath": "/workspace" } } Question: What is the correct input structure required by the API to launch this specific configuration successfully?
12 Replies
Jason
Jason3w ago
might needto use templateId instead or try the rest api https://rest.runpod.io/v1/docs#tag/pods/POST/pods its newer, i bet its working better
Scorum
ScorumOP3w ago
@Jason Tried it, nothing works from this, I couldn't find the id but it seems to be: runpod-torch-v240 I found it through inspect
Jason
Jason3w ago
i see the rest api also doesnt work?
Scorum
ScorumOP3w ago
nah(
Jason
Jason3w ago
what does it return? i wanna take a look at the response
Scorum
ScorumOP3w ago
@Jason what shows me terminal 2025-04-13 17:04:10,337 - main - INFO - Starting bot... 2025-04-13 17:04:10,645 - telegram.ext.Application - INFO - Application started /Users/user/user/runpod_telegram_bot/.venv/lib/python3.13/site-packages/telegram/ext/_handlers/conversationhandler.py:858: PTBUserWarning: No JobQueue set up. To use JobQueue, you must install PTB via pip install "python-telegram-bot[job-queue]". if application.job_queue is None: /Users/user/user/runpod_telegram_bot/.venv/lib/python3.13/site-packages/telegram/ext/_handlers/conversationhandler.py:859: PTBUserWarning: Ignoring conversation_timeout because the Application has no JobQueue. warn( 2025-04-13 17:04:18,692 - main - INFO - API Key stored for 123456. 2025-04-13 17:04:20,146 - main - INFO - User 123456 initiated MINIMAL pod launch with image runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04, GPU NVIDIA A40 2025-04-13 17:04:20,581 - main - ERROR - HTTP Error 400: {"errors":[{"message":"Something went wrong. Please try again later or contact support.","locations":[{"line":1,"column":28}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]} 2025-04-13 17:04:20,582 - main - ERROR - Pod launch failed: Ошибка HTTP 400, Details: Something went wrong. Please try again later or contact support. ^C2025-04-13 17:04:34,766 - telegram.ext.Application - INFO - Application is stopping. This might take a moment. and it happens no matter what I do
Jason
Jason3w ago
oh that is using the rest api or graphql??
Scorum
ScorumOP3w ago
in this case is graphql, but with rest api same
Jason
Jason3w ago
ah so, the error from rest api doesnt say anything helpful?
Scorum
ScorumOP3w ago
yeah @Jason
Jason
Jason3w ago
i think you might wanna try in curl or python / whatever language to test the request for creating pods no need to ping me everytime hahah chill
Scorum
ScorumOP3w ago
sorry haha okay, thanks, I'll try again

Did you find this page helpful?