{ 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 /
  • General /
avatar image
1
Question by enriquev3000 · Dec 18, 2018 at 11:00 PM · 58 Views tracetracetool

¿Why the Trace tool error occurs with Status 401, and with Postman and CURL no ?

Greetings. I have configured a Proxy server and when testing it with the "Trace" tool, it does nothing - it does not show anything in "Transaction Map" - I do not see that it executes any step; and generates a Status 401. I have an APIKey configured which I am entering as a Header in "Filters" (left column), and right there in "Filters" I am also entering a Token that requires the application to which the proxy addresses. However, when I test the operation of the proxy using the cURL command in Linux, it works for me Ok - there I also enter the APIKey and the Token as headers. Likewise, Postman also works well for me. ¿Could someone please tell me what this is due to?, ¿What can I have wrongly configured in the proxy ? ¿How can I solve it?.

Comment
Add comment
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

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by Dino-at-Google   · Dec 18, 2018 at 11:44 PM

Hmmm, I'm sorry you're having troubles.

I don't quite understand what you're trying to do.

But let me say this:

The UI for the Trace tool is designed primarily to show you what Apigee edge is doing with requests it handles. There is a small piece of the UI that allows you to send a request, but this form is really quite limited in its capability.

  • it can send only GET requests
  • You cannot set HEADERS
  • You cannot send a payload (obviously, since it sends only GETs)

I think maybe you have misunderstood how the Trace page works. And that is not a great surprise. In my opinion, The UI for the Trace screen is confusing. It tries to do too many things. It lets you view transactions, and also it lets you send a very simple request. Why not eliminate that second function, which is very limited anyway?

Regarding the "Filters" fields - the purpose of the "Filters" field is to restrict the transactions that are collected and then shown in the Trace UI. Setting a header in the Filters area tells the Trace subsystem in Apigee Edge to only collect information for requests with the value you specify for the Header. If a request arrives and is handled by Apigee Edge but it lacks the filter value you specify, that request will not be traced.

The Filters fields do not send the specified values when you click the SEND button.

If you specify a Header like "Authorization: Bearer XXXX", then ... the Trace system will collect and allow you to see only those requests that have that header value. Eg, if you use curl or some other client to send in a request, the Trace tool will show it only if the header you send in, matches what you specified in the Filters.

My suggestion:

  • don't use the Trace UI to send requests
  • use curl or some other client. I like Postman. But there are lots of HTTP / REST clients out there. Any of them will be more suitable than the send button in the Trace UI.

Good luck!

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 enriquev3000 · Dec 19, 2018 at 04:37 PM 0
Link

Thanks for the clarification. I'll keep it in mind.

Follow this Question

Answers Answers and Comments

46 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

Related Questions

HTTP 504 and HTTP 502 error in APIGEE 2 Answers

When will the Trace Tool be updated to correctly handle Extract Variables with VariablePrefix? 1 Answer

error "Illegal repetition near index 14\n\/request\/[^\/]+\/{request_id}\n^" 0 Answers

ExtractVariables not shown in trace 2 Answers

Large chunk of time being spent on "Proxy Request Flow Started" 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
  • 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