Skip to content

documentai.snippets.process_document_splitter_sample_test: test_process_documents failed #9110

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

Closed
flaky-bot bot opened this issue Feb 10, 2023 · 1 comment
Assignees
Labels
api: documentai Issues related to the Document AI API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Feb 10, 2023

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.

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 10, 2023
@product-auto-label product-auto-label bot added api: documentai Issues related to the Document AI API. samples Issues that are directly related to samples. labels Feb 10, 2023
@kweinmeister kweinmeister added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Feb 10, 2023
@flaky-bot
Copy link
Author

flaky-bot bot commented Feb 11, 2023

Test passed for commit 234c2cd (Build Status, Sponge)! Closing this issue.

@flaky-bot flaky-bot bot closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: documentai Issues related to the Document AI API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants