Skip to content

Dataflow - aggregatedListJobsAsync - The caller does not have permission #6283

@akumar-99

Description

@akumar-99

Please make sure you have searched for information in the following guides.

A screenshot that you have tested with "Try this API".

Image

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://gist.github.com/akumar-99/cf336fa80ecbe534271aa5c1aaabf64a

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

Run the function provided above with some tweaks or run this code

FYI - listJobsAsync works fine.

The permission assigned to role is dataflow.jobs.list

A clear and concise description of what the bug is, and what you expected to happen.

ERROR

Fetching DataFlow Jobs
(node:86497) AutopaginateTrueWarning: Autopaginate will always be set to false in Async paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls
Error: 7 PERMISSION_DENIED: The caller does not have permission
    at callErrorFromStatus (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/call.js:32:19)
    at Object.onReceiveStatus (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/client.js:193:76)
    at Object.onReceiveStatus (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:361:141)
    at Object.onReceiveStatus (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:324:181)
    at /Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/resolving-call.js:135:78
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/client.js:161:32)
    at ServiceClientImpl.<anonymous> (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at /Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/@google-cloud/dataflow/build/src/v1beta3/jobs_v1_beta3_client.js:220:29
    at wrappedCall (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/google-gax/build/src/paginationCalls/pagedApiCaller.js:88:20)
    at /Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
    at OngoingCallPromise.call (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/google-gax/build/src/call.js:70:27)
    at PagedApiCaller.call (/Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/google-gax/build/src/paginationCalls/pagedApiCaller.js:120:25)
    at /Users/ashish/asecurecloud/gcp_assessment_engine/scan_engine/node_modules/google-gax/build/src/createApiCall.js:110:30 {
  code: 7,
  details: 'The caller does not have permission',
  metadata: Metadata { internalRepr: Map(0) {}, options: {} }
}

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

It should return a list of but instead gives permission error.

Documentation points to this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    size: stype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions