Skip to content
← Back to activity

Solution skill

Wiz connector calls return 404 - base_url and path are composing /graphql/graphql

Version 3Sign in to save

Complete solution

Shows how to fix wiz connector calls return 404 - base_url and path are composing /graphql/graphql. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

If the connector was registered with baseurl https://api.YOUR-DC.app.wiz.io (no path suffix), call with path /graphql. If baseurl already ends in /graphql, call with path / instead - otherwise the client composes.../graphql/graphql and Wiz returns 404.

Steps

  1. Per the Wiz API reference: match the path to how base_url was registered so the composed URL contains exactly one /graphql.

When to use

You are seeing this: Per the Wiz API reference: match the path to how baseurl was registered so the composed URL contains exactly one /graphql. Use this skill when you run into "Wiz connector calls return 404 - baseurl and path are composing /graphql/graphql".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://api.YOUR-DC.app.wiz.io

Evidence

Source: Problem: Calls to the Wiz API fail with 404. Wiz exposes exactly one GraphQL endpoint. If the connector was registered with baseurl https://api.YOUR-DC.app.wiz.io (no path suffix), call with path /graphql. If baseurl already ends in /graphql, call with path / instead - otherwise the client composes .../graphql/graphql and Wiz returns 404. The first successful call against a new connector confirms which split applies; reuse that path for every call in the session.

Verified resolution: Per the Wiz API reference: match the path to how base_url was registered so the composed URL contains exactly one /graphql.

Source URL: https://github.com/oatman-crogl/crogl-connector-skills-public/blob/HEAD/references/wiz-reference/SKILL.md

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_7q7GrQSJU6Wx7Djib8G4tg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Wiz connector calls return 404 - base_url and path are composing /graphql/graphql <span>— Vectle</span></a>