{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • General
    • Edge/API Management
    • Developer Portal
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • 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 /
  • General /
avatar image
0
Question by Rohit Monga · Jan 24 at 07:08 AM · 51 Views api proxytraceresponse

Apigee apis not returning valid response

Apigee apis sometimes are not returning valid response. My target api return 204 response. For this api apigee sometimes return 200 & sometimes 204 as response code and this api is being traced only when I get 204 response code. When I get 200 then api is not being traced in trace tool.

Comment
Add comment Show 2
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 Dino-at-Google ♦♦   · Jan 25 at 12:55 AM 0
Link

Hi, thanks for your comment.

Do you have a question?

If so, please be explicit and specific when you state the question.

And you'll need to provide some clear evidence; screenshots of the trace screen, etc.

avatar image Rohit Monga · Jan 25 at 05:25 AM 0
Link

Apigee should return 204 response and I am able to trace this in tracing tool. But sometime this api returns 200 response and at that time api is not being traced.

Please find attached snapshot for same

204response.png (46.6 kB)
apigeetrace.png (156.9 kB)
200response.png (49.5 kB)

Close

1 Answer

· Add your answer
  • Sort: 
avatar image
0

Answer by Dino-at-Google   · Feb 07 at 09:54 PM

Hi Thanks for the question and the screenshots.

I don't know what's happening - it's a puzzle. It's hard to know what is happening from the information you've given.

But, I can offer some observations, ideas, and questions.

  • Sometimes it takes some time for a transaction to appear in the Trace UI, after it has been executed. Your client may "see" the response before the Trace UI will display the transaction. Sometimes you may have to wait 3-5 seconds or more before the transaction appears. So, are you sure that the 200 response NEVER appears?
  • I have never seen the case in which the Apigee Edge trace UI does not capture transactions that are legitimately flowing through the traced Apigee Edge proxy. I'm not saying that it's impossible for a bug to have occurred within Apigee Edge to cause a transaction to be dropped from Trace even though it is being handled by the gateway; I am saying that it seems highly unlikely.
  • Are you sure that the proxy you are tracing will receive all requests that you send from Postman (or your rest client, whatever it is)? With Apigee Edge, it is possible to create multiple API proxies, that listen at various base paths. It is possible, then, for a proxy to listen at / , which would then intercept ALL inbound calls. That proxy could then... randomly forward some requests to the InspectionApi proxy, and not forward others. Is it possible that is happening here?
  • The postman client is showing 17 respond headers in one case, and 6 in the other. Why the difference?
  • Why does your service sometimes return 200 and sometimes 204? Are you TRYING to produce a service that does this? Is this expected and desired? Or is this just something you're trying in development? If the latter, are you saying that NO 200 response is EVER traced? That's extraordinary.

I'm interested in hearing more.

Comment
Add comment Show 1 · 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
avatar image Rohit Monga · Feb 08 at 05:55 AM 0
Link

I am just hitting same request multiple times. Sometimes I am getting 204 (which is expected response and this is also being traced) and sometimes I am getting 200 (which is not expected and this is not being traced) with response body same as request body.

I am not sure if header will make any difference. Below is list of headers.

For 204 postman is sending 6 header :

connection →keep-alive
content-length →0
content-type →application/json;charset=UTF-8
date →Fri, 08 Feb 2019 05:43:09 GMT
server →Apache
x-cub-hdr →{"result":"Successful","uid":"a980836f-aa37-460c-b779-4d01e67bd259"}

For 200 postman is sending 17 headers :

accept →*/*
accept-encoding →gzip, deflate, br
accept-language →en-GB,en-US;q=0.9,en;q=0.8
authorization →Basic d2ViOnBhc3N3b3Jk
cache-control →no-cache
connection →keep-alive
content-length →37
content-type →text/plain;charset=UTF-8
date →Fri, 08 Feb 2019 05:49:17 GMT
host →cubictrial-test.apigee.net
origin →chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
postman-token →2a7ff215-d92a-7c23-bdd2-3c832c75dd9c
user-agent →Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
x-cub-hdr →{"uid":"9cf73f39-2b8f-47cd-8b59-9abe8f1ef6ef","device":"NIS","appId":"NIS"}
x-forwarded-for →13.127.155.195
x-forwarded-port →443
x-forwarded-proto →https

Your answer

Hint: You can notify a user about this post by typing @username

Up to 5 attachments (including images) can be used with a maximum of 5.0 MB each and 25.0 MB total.

Follow this Question

Answers Answers and Comments

68 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 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

request.uri is not being evaluated in reports 1 Answer

ExtractVariables not shown in trace 2 Answers

How do I make an API joining a Web Service and an API? 1 Answer

How to dynamically set target URL? 2 Answers

how to install apigee api certificates in ubuntu,How to install apigee certificates in Ubuntu server 1 Answer

  • 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
  • General
  • Edge/API Management
  • Developer Portal
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • 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