Skip to content

documentai.snippets.process_document_splitter_sample_test: test_process_documents failed #9110

@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: cb9a77c
buildURL: Build Status, Sponge
status: failed

Test output
Traceback (most recent call last):
  File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.INVALID_ARGUMENT
	details = "Unsupported input file format."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:173.194.192.95:443 {grpc_message:"Unsupported input file format.", grpc_status:3, created_time:"2023-02-10T11:57:35.662108315+00:00"}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/workspace/documentai/snippets/process_document_splitter_sample_test.py", line 33, in test_process_documents
mime_type=mime_type,
File "/workspace/documentai/snippets/process_document_splitter_sample.py", line 36, in process_document_splitter_sample
project_id, location, processor_id, file_path, mime_type
File "/workspace/documentai/snippets/process_document_splitter_sample.py", line 82, in process_document
result = client.process_document(request=request)
File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/documentai_v1/services/document_processor_service/client.py", line 643, in process_document
metadata=metadata,
File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py", line 113, in call
return wrapped_func(*args, **kwargs)
File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py", line 354, in retry_wrapped_func
on_error=on_error,
File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py", line 191, in retry_target
return target()
File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/timeout.py", line 120, in func_with_timeout
return func(*args, **kwargs)
File "/workspace/documentai/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InvalidArgument: 400 Unsupported input file format.

Metadata

Metadata

Assignees

Labels

api: documentaiIssues related to the Document AI API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions