Scorum
Scorum
RRunPod
Created by Scorum on 4/13/2025 in #⛅|pods-clusters
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?
21 replies