Skip to content

Issues when translating files that are uploaded using uploadObjectStreamResumable #31

@technowar

Description

@technowar

Tried uploading over 100mb file using uploadObjectStreamResumable with the block of code below,

const nbChunks = Math.ceil(fileContent.ContentLength / minChunk);
const chunksMap = Array.from({ length: nbChunks }, (elem, idx) => idx);
const promisedObj = await Promise.all(chunksMap.map(chunkIdx => {
  const byteOffset = chunkIdx * minChunk;
  const chunkBytes = Math.min(fileContent.ContentLength, (chunkIdx + 1) * minChunk) - byteOffset;

  return ObjectsApi.uploadObjectStreamResumable(bucket_key, fileName, stream, chunkBytes, byteOffset, fileContent.ContentLength, sessionId);
}));

but getting,

{
  "type": "warning",
  "code": "Navisworks-EmptyFile",
  "message": "There is no geometry that can be displayed"
}

and,

{
  "type": "error",
  "message": "Unrecoverable exit code from extractor: -1073741829",
  "code": "TranslationWorker-InternalFailure"
}

when translating. I've also tried for...of, and reduce when uploading chunks but getting 504 Gateway Timeout issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions