Skip to content

Pubsub exception refers to faulty URL #3333

Closed

Description

@DylanMeeus

When I try to use ApiFutures.allAsList(messageIDFutures).get() it raises an exception when the resource name is wrong:

java.util.concurrent.ExecutionException: com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Invalid resource name given (name=testresource). Refer to https://cloud.google.com/pubsub/overview#names for more information.

However, the URL: https://cloud.google.com/pubsub/overview#names is of no help, as it just points to: https://cloud.google.com/pubsub/docs/overview#names which has no "Overview#names" and thus is of little help in resolving this issue.

Activity

  1. yihanzhen commented on Jun 1, 2018

    @yihanzhen
    Contributor

    The error message seems to come from server side. @pongad do you have any ideas who we can talk to?

  2. added
    api: pubsubIssues related to the Pub/Sub API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jun 1, 2018
  3. self-assigned this
    on Jun 4, 2018
  4. andreamlin commented on Jun 4, 2018

    @andreamlin
    Contributor

    @DylanMeeus would https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1 be more helpful? If so, we can change the server side error message to return that URL instead.

  5. andreamlin commented on Jun 5, 2018

    @andreamlin
    Contributor

    Submitted an internal bug and bug fix.

  6. andreamlin commented on Jun 5, 2018

    @andreamlin
    Contributor

    The error message will now point to https://cloud.google.com/pubsub/docs/admin#resource_names.
    The fix has been submitted internally. I do not know when PubSub releases to production, but I think at the latest it will release in a week. Closing this issue for now.

  7. DylanMeeus commented on Jun 5, 2018

    @DylanMeeus
    Author

    @andreamlin That is a much more useful page to point to, thank you!

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

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Sponsor
    SponsoredKunjungi sekarang
    Promo