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

Request contains no InfoTypes or CustomInfoTypes, however an InfoTypeTransformation was included that had no InfoType name included. #1513

Closed
rendybjunior opened this issue Jun 7, 2018 · 1 comment
Labels

Comments

@rendybjunior
Copy link

def deidentify_with_fpe(project, string, alphabet=None,

Try the sample and get this problem

google.api_core.exceptions.InvalidArgument: 400 Request contains no InfoTypes or CustomInfoTypes, however an InfoTypeTransformation was included that had no InfoType name included. You must specify InfoTypes or CustomInfoTypes within InspectConfig in this case so that Cloud DLP can determine what to inspect for.

Full error
(dlp) ➜ dlp git:(master) ✗ python deid.py deid_fpe tvlk-realtime-stg "My SSN is 372819127"
Traceback (most recent call last):
File "deid.py", line 542, in
surrogate_type=args.surrogate_type)
File "deid.py", line 149, in deidentify_with_fpe
parent, deidentify_config=deidentify_config, item=item)
File "/anaconda2/lib/python2.7/site-packages/google/cloud/dlp_v2/gapic/dlp_service_client.py", line 552, in deidentify_content
request, retry=retry, timeout=timeout, metadata=metadata)
File "/anaconda2/lib/python2.7/site-packages/google/api_core/gapic_v1/method.py", line 139, in call
return wrapped_func(*args, **kwargs)
File "/anaconda2/lib/python2.7/site-packages/google/api_core/retry.py", line 260, in retry_wrapped_func
on_error=on_error,
File "/anaconda2/lib/python2.7/site-packages/google/api_core/retry.py", line 177, in retry_target
return target()
File "/anaconda2/lib/python2.7/site-packages/google/api_core/timeout.py", line 206, in func_with_timeout
return func(*args, **kwargs)
File "/anaconda2/lib/python2.7/site-packages/google/api_core/grpc_helpers.py", line 56, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "/anaconda2/lib/python2.7/site-packages/six.py", line 737, in raise_from
raise value

@engelke
Copy link
Contributor

engelke commented Dec 5, 2018

The test code calling this function was missing a parameter, which was corrected in PR #1784.

@engelke engelke closed this as completed Dec 5, 2018
@engelke engelke added the Fixit label Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants