Skip to content

Conversation

@awalker4
Copy link
Collaborator

Fixes #191. Due to a limitation in our templated codebase, we need our split page logic to return a request that's just going to give a 200 response. Then, we jump back into the AfterSuccessHook and await all of the pdf splits. Hopefully we can clean this up soon to avoid having an extra call at all, but for now let's make sure the GET /general/docs is done on the correct base url.

Fixes #191. Due to a limitation in our templated codebase, we need our split page logic to return a
request that's just going to give a 200 response. Then, we jump back into the AfterSuccessHook and
await all of the pdf splits. Hopefully we can clean this up soon to avoid having an extra call at
all, but for now let's make sure the GET /general/docs is done on the correct base url.
@awalker4 awalker4 requested a review from Coniferish October 11, 2024 17:49
Copy link
Contributor

@Coniferish Coniferish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Just noting this part in src/unstructured_client/sdk.py that this change relates to:

        current_server_url, *_ = self.sdk_configuration.get_server_details()
        server_url, self.sdk_configuration.client = hooks.sdk_init(
            current_server_url, self.sdk_configuration.client
        )
        if current_server_url != server_url:
            self.sdk_configuration.server_url = server_url

@awalker4 awalker4 merged commit eaa7619 into main Oct 12, 2024
9 checks passed
@awalker4 awalker4 deleted the fix/fix-dummy-request branch October 12, 2024 17:35
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.

bug/hardcoded GET request to api.unstructuredapp.io causes timeout behind firewall

3 participants