Skip to content

v0.46.2

Latest

Choose a tag to compare

@awalker4 awalker4 released this 24 Aug 15:42
8a077d7

0.46.2

Fixes

Accept the API URL the Transform Platform hands you as server_url. The app's API Keys page and the docs give you https://platform-api.transform.unstructured.io/api/v1, which works with curl but 404'd every Platform call in the SDK: the URL cleaner only stripped a path for unstructuredapp.io hosts, so the /api/v1 survived and the operation's own /api/v1/jobs/ was appended on top, producing /api/v1/api/v1/jobs/. Hosts under unstructured.io are now recognized too, and are matched on domain boundaries so a lookalike host like unstructuredapp.io.example.com keeps its path and scheme. A server_url passed to an individual operation is cleaned as well — previously only the client-level URL was, so client.jobs.list_jobs(request={}, server_url=...) still 404'd.