Repository navigation
Troubleshooting
Common problems and how to fix them. If you're just getting set up, re-check Configuration & Authentication first.
"You do not have permission to perform this action."
- The API token is wrong, revoked, or belongs to a user without access to that organization. Regenerate it under Settings → API Access.
- You're calling an operation the public endpoint doesn't allow-list, or the backend hasn't been updated to expose it yet. Stick to the operations in the GraphQL API Reference.
- The
organization_iddoesn't match the token's org.
- Check
host— it should be the bare domain (mycorp.strobes.co), nohttps://, no trailing slash, no path. - Confirm you can reach the host from your network (VPN? firewall?).
The host uses a certificate your system doesn't trust. For a known self-signed host you can disable verification:
client = StrobesGQLClient(host=HOST, api_token=TOKEN, verify=False)Only do this for trusted internal hosts — it disables TLS validation.
enums.API_TOKEN / enums.ORGANIZATION_ID are None because the environment
variables aren't set. Export them, or edit enums.py:
export STROBES_API_TOKEN="<token>"
export STROBES_ORGANIZATION_ID="<org-id>"The query_name / mutation_name is misspelled or isn't in the schema. Use the
exact snake_case name from the Python API Reference
(e.g. all_bugs, not allBugs or all_bug).
You're selecting a field the public endpoint doesn't return as an object
(the generated schema describes the richer internal type). Use the client's
built-in methods/dispatchers, which pin the correct public field selection —
don't hand-build selections against the public endpoint. See the notes in
client.py
and the GraphQL API Reference.
Don't inline a Python dict into a query string — the keys render as JSON strings
and the parser rejects them. Use the dedicated
bulk_update_asset_custom_fields(...) method, which sends fields as a GraphQL
variable. → Assets
bulk_update_asset_custom_fields refuses a blank search_query on purpose — an
empty query would match every asset in the org. Pass a real filter.
- Numbers aren't quoted, strings are:
severity = 5,name ~ "prod". - Check the enum codes — e.g. finding
severityis1–5andstateis1–4. See Search Query Language. - An empty/omitted
search_queryreturns everything the token can see.
That's expected — you have to walk pages. Use the right style for the endpoint
(cursor after vs. offset page), or better, use the export helpers. See
Core Concepts → Pagination and
Exporting Data.
Don't paginate allBugs / allAssets by hand for huge orgs. Use the async CSV
export (export_bugs_and_wait / export_assets_and_wait) or the streaming
generators (export_all_bugs / export_all_assets), which retry and shrink the
batch automatically. → Exporting Data
The server export ran past timeout. Raise it (timeout=3600) for very large
orgs, or scope the export with a search_query.
The server-side export job failed. Retry; if it persists, check the export in the UI and contact support.
Transient — the report row isn't created yet in the moment just after an export
starts. The _and_wait helpers handle this for you (treating it as "not ready,
retry"). If polling yourself, treat it the same way.
generate_report returned password_required: true. Pass password="...".
Pass a real path to a readable file. The client guesses the MIME type and falls
back to application/octet-stream. For vault uploads specifically, see the
inline snippet in Vault Documents.
Turn on debug logging to see each operation and the raw errors:
import logging
logging.basicConfig(level=logging.DEBUG)The client logs under the StrobesGQLClient logger. Expected-transient
conditions are logged at DEBUG, real failures at ERROR.
- Re-read Core Concepts — most issues are response-shape or pagination misunderstandings.
- Compare against the matching script in
examples/. - Open an issue on the repository.
Getting started
Guides
- Search Query Language
- Assets
- Findings
- Engagements
- Comments
- Vault Documents
- Reports
- Exporting Data
- Connectors & Scan Logs
- File Uploads & CSV Imports
Reference