{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Analytics /
avatar image
0
Question by Terry David · Oct 02, 2018 at 06:36 PM · 128 Views errorstats

Bad Request on .../stats call

I am making the call below and receiving a "Bad Request; Unknown Version" HTML response.

System is 4.18.0.5 Private Cloud.

Can someone tell me what is wrong with my request?

Request (crlfs added to avoid pasting problem):

curl -v "HOST/o/org/e /env/stats/traffic,response_status_code?select=sum(message_count),avg(total_response_time),tps&timeRange=09/25/2018 00:00~10/01/2018 23:59"

* Trying 10.10.53.21...

* Connected to <hostname> (10.10.53.21) port 8080 (#0)

* Server auth using Basic with user '<username>'

> Host: <hostname>:8080

> Authorization: Basic dGVycib<modified>G9jay5jb06JGt5cDFsMFQ=

> User-Agent: curl/7.47.0

> Accept: */*

Response:

< HTTP/1.1 400 Unknown Version

< Content-Type: text/html;charset=iso-8859-1

< Content-Length: 58

< Connection: close

< * Closing connection 0

<h1>Bad Message 400</h1><pre>reason: Unknown Version</pre>

[400]

Comment
Add comment Show 1
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image apigeeuser · Oct 18, 2018 at 06:41 PM 0
Link

I tried something similar

this too gives 400 unknown version error. but works w/o the filter

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by Dino-at-Google   · Oct 09, 2018 at 11:30 PM

It looks right to me.

Maybe you need to url-encode the time range. Try that?

curl -v "HOST/o/org/e /env/stats/traffic,response_status_code?select=sum(message_count),avg(total_response_time),tps&timeRange=09%2F25%2F2018%2000%3A00~10%2F01%2F2018%2023%3A59"
Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

45 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to trigger email alert when error occurred 1 Answer

Replication issue in Postgres Standby and UI doesn't show analytics data 0 Answers

Analytics timeout 2 Answers

Stats API & User Roles 2 Answers

Daily Analytics Report On Prem 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges