Skip to content

New v2 CIVisibility api doesn't return an error from a pagination function #1751

Closed

Description

Describe the bug
When the CIVisibilityTestsApi.ListCIAppTestEventsWithPagination func is called, all errors are swallowed.

https://github.com/DataDog/datadog-api-client-go/blob/master/api/datadogV2/api_ci_visibility_tests.go#L243-L301

To Reproduce
Steps to reproduce the behavior:

  • Run the function with no API credentials, which results in a 403 in the logs. But no error is returned from the function.

Expected behavior
I would expect errors to be caught in the async func and bubbled up to the calling function using channels or some other method.

Environment and Versions (please complete the following information):
v2 2.5.0

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

Metadata

Assignees

No one assigned

    Labels

    kind/bugBug related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions