Skip to content

Docs: Python SDK - SaaS connection guide and authentication troubleshooting - #992

Open
aleksandarkovacevic30 wants to merge 1 commit into
masterfrom
docs/python-sdk-saas-and-troubleshooting
Open

aleksandarkovacevic30 wants to merge 1 commit into
masterfrom
docs/python-sdk-saas-and-troubleshooting

Conversation

@aleksandarkovacevic30

Copy link
Copy Markdown
Contributor

What

Expands the CluedIn Python SDK playbook page (docs/210-playbooks/data-engineering/010-python-sdk.md) with the information needed to connect to a CluedIn SaaS instance and to diagnose failures when it does not work.

Changes

  • Context settings reference - a table of every Context setting, its default, and the URLs the SDK derives from domain / org_name.
  • Connecting to CluedIn SaaS - the UI host (<org>.<region>.saas.cluedin.com) vs the shared API host (app.<region>.saas.cluedin.com), the token and GraphQL URL patterns, a working cluedin.json example, and how to pin all requests to the app. host.
  • Known bad configurations - warns against "api_url": "app" (circulates in older notebooks and breaks every REST call with MissingSchema) and against pointing gql_api_url at /graphql instead of /api/api/graphql.
  • Booleans in configuration - True/False in Python vs true/false in JSON for verify_tls, the fact that any non-true value disables verification, and when disabling it is actually appropriate.
  • Troubleshooting authentication - invalid_username_or_password, Client not found for client id, ConnectionError / NameResolutionError, ConnectTimeout, SSLCertVerificationError, 400 Bad Request from GraphQL, and 401 Unauthorized.
  • Minimum Python version corrected from 3.7 to 3.10 (>=3.10,<4.0), and last_modified refreshed.

Notes

Documentation only - no code or site configuration changes.

- Add a Context settings reference table describing every setting and
  the URLs the SDK derives from domain/org_name.
- Document connecting to CluedIn SaaS: the UI vs API host naming, token
  and GraphQL URL patterns, a working configuration example, and how to
  pin requests to the shared app. host.
- Call out the common misconfigurations: "api_url": "app" and a
  /graphql (rather than /api/api/graphql) endpoint.
- Explain boolean spelling differences between Python dicts and JSON
  files for verify_tls, and when disabling TLS verification is warranted.
- Add a troubleshooting section covering invalid_username_or_password,
  client id not found, name resolution failures, connect timeouts,
  certificate verification errors, and 400/401 responses.
- Update the minimum supported Python version to 3.10 and refresh
  last_modified.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KCK5CtcdTxubpqnjxrvVD

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant