Skip to content

Deprecated golang.org/x/oauth2 error with latest Benthos version #272

@tifennlegoff

Description

@tifennlegoff

Hey, I'm currently upgrading our Benthos, and I see this error in logs

deprecated: golang.org/x/oauth2: Transport.CancelRequest no longer does anything; use context

We're using oAuth2 auth with our pipelines.

processor_resources:
  - label: analyze_http
    http:
      parallel: true
      drop_on: [500, 501, 400, 404, 403, 406]
      backoff_on: [408, 429, 502, 503, 504]
      max_retry_backoff: "120s"
      timeout: "60s"
      url: "x"
      verb: POST
      headers:
        Content-Type: application/json
        Content-Encoding: gzip
      oauth2:
        enabled: true
        client_key: xxxxxx  # Consumer app clientId
        client_secret: xxxxxx  # consumer app secret
        token_url: xxxxxx
        scopes:
          - xxxxxx  # API app clientId
      rate_limit: 100

Do you know if I should be worries about it? Should we modify a setting?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    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