Skip to content

Google DLP broken with 0.46.0-beta: Caused by: io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found #3236

Description

@henrik-io

Ever since the Google DLP service went from V2Beta to GA, my production code is broken. I'm getting an exception with a message like this:

Caused by: io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found

I'm stepping through the execution in the debugger, and I can see what looks like a URL referencing the old service:
google.privacy.dlp.v2beta1.DlpService/RedactContent. See attached screen shot for details. My production service that uses DLP is not functional, and it's a big deal to re-deploy without DLP. What do I need to do to get this to work again?

screen shot 2018-05-07 at 9 53 11 am

Activity

  1. pongad commented on May 7, 2018

    @pongad
    Contributor

    Hi @henrik-io . I don't think this is an issue with the client lib. According to the DLP team, the beta endpoint has just been turned down. Could you migrate to com.google.cloud.dlp.v2 package instead?

  2. henrik-io commented on May 7, 2018

    @henrik-io
    Author

    Hi @pongad and thanks for your response. It never struck me to check the imports as I didn't realize there were package paths with specific Beta versions. Maybe I missed something or didn't get the memo, but I don't recall reading about package path changes for the GA migration. If the Beta API has been retired, I'd suggest removing those packages altogether from the jar files going forward. I'd rather take a compilation error than a runtime surprise.

  3. pongad commented on May 7, 2018

    @pongad
    Contributor

    I can completely understand the confusion. We're actually planning to remove the beta package this week.

  4. henrik-io commented on May 7, 2018

    @henrik-io
    Author

    Awesome. Did the V2Beta types RedactContentRequest/RedactContentResponse disappear? What's the V2 equivalents? Thanks.

  5. henrik-io commented on May 7, 2018

    @henrik-io
    Author

    @pongad it seems like quite a bit has changed between the V2Beta1 and GA versions. Is there a migration guide? I looked in the examples section, but it seems like https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/dlp/src/main/java/com/example/dlp/Redact.java only deals with redacting images. It would be very helpful with a real example for redacting text and maybe a migration guide. Thanks.

  6. pongad commented on May 7, 2018

    @pongad
    Contributor

    I also cannot seem to find a migration guide, but this might help you. I believe text redaction functionality has been moved to deidentifyContent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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

    Sponsor
    SponsoredKunjungi sekarang
    Promo