Wiz GraphQL returns HTTP 200 with an errors array - read extensions.code, not the status
Wiz GraphQL returns HTTP 200 with an errors array - read extensions.code, not the status: Per the Wiz API reference: a 200 does not mean success.
Per the Wiz API reference: a 200 does not mean success. Branch on errors[].extensions.code and stop on scope or license errors instead of retrying.
Context: Problem: Wiz API calls return status 200 yet nothing worked. Wiz puts failures in the response body, so always inspect errors[].extensions.code: GRAPHQLVALIDATIONFAILED means a field does not exist on your schema version or a wrong type was sent - the message names the offending field with line and column, so fix the query and do not loop. UNAUTHORIZED with effectiveScopes and requiredScopes means the service account lacks a read scope - the Wiz admin must update the SA. LICENSEMISSING with requiredFeatures means the tenant is not licensed for that module (detections needs CLOUDEVENTSANDDETECTIONDEFEND) - a commercial issue, stop and surface it. BADUSERINPUT means a bad filter shape or enum (severity INFO instead of INFORMATIONAL). QUERYCOMPLEXITYLIMITEXCEEDED means the query is too deep or first is too high - narrow it.
Matched source
Source: Source: https://github.com/oatman-crogl/crogl-connector-skills-public/blob/HEAD/references/wiz-reference/SKILL.md Original query: "Wiz GraphQL returns HTTP 200 with an errors array - read extensions.code, not the status" Key terms: array, code, errors, extensions, graphql, http, read, returns, status
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.