Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/file timeout when partition #3727

Open
AustinZzx opened this issue Oct 17, 2024 · 1 comment
Open

bug/file timeout when partition #3727

AustinZzx opened this issue Oct 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AustinZzx
Copy link

Describe the bug
When partitioning the following file, it simply times out.

To Reproduce

  const unstructuredClient = new UnstructuredClient({
      security: {
        apiKeyAuth: process.env.UNSTRUCTURED_IO_API_KEY,
      },
    });
    const res: PartitionResponse = await unstructuredClient.general.partition(
      {
        partitionParameters: {
          files: {
            content: content,
            fileName: fileName,
          },
          splitPdfPage: true,
          splitPdfAllowFailed: true,
          splitPdfConcurrencyLevel: 15,
          strategy: Strategy.Auto,
          languages: ["eng"],
          chunkingStrategy: ChunkingStrategy.ByTitle,
          maxCharacters: 8000, // our embedding model max token is 8192
        },
      },
      {
        retries: {
          strategy: "backoff",
          backoff: {
            initialInterval: 500,
            maxInterval: 60000,
            exponent: 1.5,
            maxElapsedTime: 900000,
          },
          retryConnectionErrors: true,
        },
        timeoutMs: 10 * 60 * 1000, // 10 mins
      },
    );

    if (res.statusCode !== 200) {
      throw res.rawResponse;
    }

Expected behavior
Expect the partition to succeed

Screenshots
If applicable, add screenshots to help explain your problem.

Environment Info
run in nodejs, using unstructured serverless

Additional context
the file that triggers the error has been attached here.
Uploading error.xlsx…

@AustinZzx AustinZzx added the bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@AustinZzx and others