GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Request contains no InfoTypes or CustomInfoTypes, however an InfoTypeTransformation was included that had no InfoType name included. · Issue #1513 · GoogleCloudPlatform/python-docs-samples

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Request contains no InfoTypes or CustomInfoTypes, however an InfoTypeTransformation was included that had no InfoType name included.#1513
Copy link
Labels
Fixit

Description

@rendybjunior
rendybjunior
opened on Jun 7, 2018
Issue body actions

python-docs-samples/dlp/deid.py

Line 76 in 895cbf5

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

Activity

  1. engelke commented on Dec 5, 2018

    @engelke
    engelke
    on Dec 5, 2018
    Contributor
    More actions

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

  2. engelke
    closed this as completedon Dec 5, 2018
  3. engelke
    added
    Fixit
    on Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.