Take into acount a proxy for the Edge componant

Hello,


We have set up our proxy in the MP componant as describe here.

But when we try to create our first API Proxy we have an error after a timout : "Error using OpenAPI: Internal Server Error".


The OpenAPI Json file is exposed on the Internet.


Moreover when doing a simple wget on the Edge machine, we can get the json file because the request pass through our entreprise proxy.

Is it possible that the Edge management server doesn't take into account our proxy declaration in message-processor.properties ?


Rds,

Thibault

1 7 298
7 REPLIES 7

Not applicable

I think the issue that you are seeing is on the Edge UI. Can your UI access the files on Internet?
Can you try with this (https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/yaml/petstore-expan...) and let me know if it works? @TIGEON Thibault

FYI Recently I ran into the same issue but for the spec that is hosted internally and this helped http://docs.apigee.com/private-cloud/latest/allowing-trace-tool-access-local-ip-addresses

Yes, UI must be configured to be able to pull files from Internet. Look at the official documentation for configuration. I'll try to look for the page and share it later today.

Here's the link you will need: http://docs.apigee.com/private-cloud/latest/allowing-trace-tool-access-local-ip-addresses

Specifically, you want to set the base_apigee.feature.enableopenapiforinternaladdresses property.

I don't think this will help because the need is to call an external IP (not local) through a proxy.

Your solution seems to work only in the case of local network calls.

The real solution imo is to be able to tell the Edge Management Server to use proxy for certain calls. Like it's done for the Message Processor.

Ah, I see what you're referring to. You can try applying the same proxy properties to the management server using /opt/apigee/customer/application/management-server.properties if you are required to pass through a forward proxy for external access.

Hi Paul and thank you for your answer.

We tried with this:
vi /opt/apigee/customer/application/management-server.properties

conf_http_HTTPClient.use.proxy=true
conf_http_HTTPClient.use.tunneling=false
conf/http.properties+HTTPClient.proxy.type=HTTP
conf/http.properties+HTTPClient.proxy.host=[MY-PROXY]
conf/http.properties+HTTPClient.proxy.port=3128

without succes 😞

Thibault