Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keda Operator - MetricsAPI Scaler: text format parsing error in line 31: unexpected end of input stream #6559

Open
jark-AB opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jark-AB
Copy link

jark-AB commented Feb 20, 2025

Report

Upgraded from 2.15.1 > 2.16.1 and ran into the following issue across all our scaledObjects that are utilizing the MetricsAPI Scaler

│   Normal   ScaledObjectReady       2m47s                keda-operator  ScaledObject is ready for scaling                                                                                                                                                                   │
│   Warning  KEDAMetricSourceFailed  69s (x5 over 3m45s)  keda-operator  error requesting metrics endpoint: text format parsing error in line 31: unexpected end of input stream
  • Events from the SO
│ Events:                                                                                                                                                                                                                                                                    │
│   Type     Reason              Age                   From           Message                                                                                                                                                                                                │
│   ----     ------              ----                  ----           -------                                                                                                                                                                                                │
│   Normal   KEDAScalersStarted  12m                   keda-operator  Scaler metrics-api is built.                                                                                                                                                                           │
│   Normal   ScaledObjectReady   8m54s                 keda-operator  ScaledObject is ready for scaling                                                                                                                                                                      │
│   Warning  KEDAScalerFailed    7m18s                 keda-operator  error requesting metrics endpoint: text format parsing error in line 31: unexpected end of input stream                                                                                                │
│   Warning  KEDAScalerFailed    6m13s                 keda-operator  error requesting metrics endpoint: Get "http://api.sandbox-amazon-gref.svc.cluster.local:9001/api/v1/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)              │
│   Normal   KEDAScalersStarted  6m13s                 keda-operator  Scaler metrics-api is built.                                                                                                                                                                           │
│   Warning  KEDAScalerFailed    3m (x2 over 3m5s)     keda-operator  error requesting metrics endpoint: text format parsing error in line 31: unexpected end of input stream                                                                                                │
│   Normal   KEDAScalersStarted  104s (x2 over 2m45s)  keda-operator  Scaler metrics-api is built.                                                                                                                                                                           │
│   Normal   KEDAScalersStarted  16s                   keda-operator  Scaler metrics-api is built.

Expected Behavior

  1. Upgrade Keda > 2.16.1
  2. MetricsAPI scaler-api is built
  3. ScaledObject is ready for scaling

Actual Behavior

  1. Upgrade Keda > 2.16.1
  2. Scaler metrics-api is built.
  3. ScaledObject is ready for scaling
  4. Warning KEDAScalerFailed 7m18s keda-operator error requesting metrics endpoint: text format parsing error in line 31: unexpected end of input stream │

Steps to Reproduce the Problem

  1. Upgrade Keda > 2.16.1
  2. Create MetricsAPI ScaledObject that uses Prometheus Trigger
  3. Observe the errors

Logs from KEDA operator

│   Normal   ScaledObjectReady       2m47s                keda-operator  ScaledObject is ready for scaling                                                                                                                                                                   │
│   Warning  KEDAMetricSourceFailed  69s (x5 over 3m45s)  keda-operator  error requesting metrics endpoint: text format parsing error in line 31: unexpected end of input stream

KEDA Version

2.16.1

Kubernetes Version

< 1.29

Platform

Amazon Web Services

Scaler Details

MetricsAPI Scaler

Anything else?

No response

@jark-AB jark-AB added the bug Something isn't working label Feb 20, 2025
@jark-AB
Copy link
Author

jark-AB commented Feb 20, 2025

Appears to be related to this PR which was the only change to MetricsAPIScaler
#6078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

1 participant