GraphQL Issue

Hi, I am trying to retireve worker state of my endpoint
query Endpoints {
myself {
endpoints {
id
name
templateId
workersMax
workersMin
workersStandby
workerState(input: {granularity: LIVE}) {
time
ready
running
throttled
}
}
}
}
query Endpoints {
myself {
endpoints {
id
name
templateId
workersMax
workersMin
workersStandby
workerState(input: {granularity: LIVE}) {
time
ready
running
throttled
}
}
}
}
However, Runpod API responded
{
"errors": [
{
"message": "Something went wrong. Please try again later or contact support.",
"locations": [
{
"line": 12,
"column": 9
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
]
}
{
"errors": [
{
"message": "Something went wrong. Please try again later or contact support.",
"locations": [
{
"line": 12,
"column": 9
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
]
}
It seems it can only return running and throttled fields
3 Replies
Poddy
Poddy3w ago
@dantetwc | OCC
Escalated To Zendesk
The thread has been escalated to Zendesk!
Ticket ID: #12,791
nerdylive
nerdylive3w ago
try opening a ticket and ask there
flash-singh
flash-singh3w ago
better to use /health path under serverless api e.g. /v2/endpointId/health

Did you find this page helpful?