-
Notifications
You must be signed in to change notification settings - Fork 108
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
Apigee Network call error #161
Comments
@srinivasmurari - Looks like the machine where this is running is not able to access apigee.googleapis.com |
we can access apigee.googleapis.com from the same machine (we are tested a management API from the machine we have created a target server) |
Can you share the contents of your settings.xml? Hope you are using "https". Thats the only supported protocol. If the proxy is setup correctly, you should see something like this in your console output. Can you check your console to see if anything similar is logged? By the way the latest version is v2.4.3 |
Hi @ssvaidyanathan , Kindly do the needful, currently, we are blocked at this point. if you need more info let us know. |
@srinivasmurari - I am assuming you have actual proxy host and port in your settings.xml and thats what the log is showing? If thats true, thats the extent I can help you with. I know other customers using this plugin with the proxy settings and its working for them without issues. |
Yes, we are using an actual proxy only. But when we are trying to use the plugin we are facing issues with the same proxy. |
Are you trying the maven call from the same machine where you tested the Mgmt API? |
Yes we have tested from the same machine where we are running the maven call |
Just noticed that your proxy settings doesn't have any username password fields? Is that correct? Can you check your machine config to see if the proxy requires any authentication? |
Yeah, it does not have a username and password. As we can make management calls from the same machine without authentication that can also conform in 100% that there is no authentication for proxy. |
Are you running the direct Mgmt API calls from your machine and the same machine is failing when called via Maven? Or is it from a build server? |
Yes we are running mgmnt API calls from the same machine and when called via maven it is failing on the same machine |
You already answered that - My question is - are you trying it in your laptop? If yes, then probably your machine ldap is being passed when you make the direct API call to the proxy from your machine settings. Can you check? I might have found something in the code but want to be sure before I make that change. |
No, I am not trying it on my laptop or any personal server. We are trying all the management calls and maven calls in the same Jenkins server. |
I've just released a new version with a fix (v2.4.4) |
Were you able to try? |
Not yet, as the Jenkins server has no internet connectivity and is hosted in a private network we need to request the required team to get us the plugin's latest version for testing it might take some time but once we can deploy we will let you know |
@ssvaidyanathan , after installing plugin(config maven plugin :2.4.4, apigee edge maven plugin : 2.3.5 ) in jenkins server we are facing below issue |
For the deploy plugin - can you update your pom to 2.3.4 and try? |
I just tried the deploy plugin (v2.3.5) and it worked for me. The httpclient jar dependency for this plugin is coming from com.google.http-client:google-http-client-apache:jar:2.0.0 |
am not sure - the same error comes with earlier config plugin version? Lets say you use v2.3.0? Did you see it? |
No with earlier config plugin version we have not seen the same we saw the different error in config plugin version 2.3.0(Apigee network call error) |
There were few releases after that v2,3.0 thst included few fixes, features and also updates to dependency due to vulnerability.Cn you try each version released after 2.3.0 and see which version its starting to cause the issue. Unfortunately thats the only way I can think of |
@ssvaidyanathan we are able to deploy target servers and api proxy using Bearer Token maven config plugin : 2.4.4 maven deploy plugin : 2.3.5 |
So if it worked with the token, it means the proxy issue is fixed with the change? Does it work with the previous version as well? That is using v2.3.4 and passing token, did it work or did the proxy issue return a timeout? I will look into the issue you reported. But please respond to the above question. |
I just tried deploying the sample sharedflow from the repo using a service account. It worked as expected. I am using
|
yes, proxy issue is fixed with the change. No, We tried with 2.3.4 and by passing a token but the proxy issue returned a timeout |
ok, we will try to pass the token into the mvn command, meanwhile can you please check, As per our analysis, we are thinking that the plugin is not supporting the proxy, if possible can you add one more if else condition for the below which supports the proxy. |
I'll take a look. Its quite possible |
@srinivasmurari - I have just released a |
@ssvaidyanathan after using the latest release v2.4.5-rc1 with proxy we are facing the below issue and we have tried with the edge plugin(v2.3.5). |
@srinivasmurari - am not sure why thats coming on your end. That class is available in org/apache/httpcomponents/httpclient/4.5.5 and its a dependency coming from com.google.http-client:google-http-client-apache:jar:2.0.0 which is part of the config plugin pom.xml When I run
By any chance - in your Maven repo that you are pointing to, is this jar not availabe? Or by any change do you have an |
@ssvaidyanathan we are not sure all the dependencies are available in the local .m2 repository while using 2.4.4 we are getting time out and while using the 2.4.5-rc1 we are getting http- client related issue. |
Probably try adding this to your pom under dependencies <dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency> |
currently, in our pom.xml under dependencies, we have that httpclient-4.5.5, but we are facing the same error. |
Can you try <dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency> |
after adding the dependency 4.5.13 also we are facing the same above error. |
@srinivasmurari - as one last attempt, I just released |
any luck? |
no luck, we have used 2.4.5-rc2 also we are unable to generate the token. |
this is not a plugin issue from what I see. Its a network issue. |
as of now, it may not be possible to try from my laptop with the same proxy configuration that we have in our client environment. |
ok.. in that case, I am going to close this issue |
ok, you can close the issue, thanks for your help. |
@srinivasmurari - if I push a new change (version), will you be able to test it for me pls? |
I just released "v2.4.6-rc1", can you test if you are able to generate the token by just passing the service account file with your Maven proxy setup |
Hi @ssvaidyanathan , |
Any update? |
@srinivasmurari - do you have any updates on this? |
Hi @ssvaidyanathan, sorry for the delay in responding, We have completed the setup in the client environment and we have delivered to the client with previous version. now we have explained to them regarding this updated version plugin use as you suggested and we have requested them to provide access to modify the files with an updated version plugin, Currently, we have requested client but the approval is pending. |
@srinivasmurari - I have re-implemented the token generation code and released a version v2.4.6-rc3 Please try using this if you can |
@ssvaidyanathan : one of my customers is facing this issue with 2.5.0 , and they are using http proxy |
@anaik91 - can you please share more details? like logs, the command they are passing. Version used, pom.xml etc Just mentioning "facing issues", will not be of any help unfortunately. |
hi,
when we tried to deploy API proxies using the cicd pipeline we are not able to deploy and got Apigee Network to call error and connection timed out issue,we need to connect via proxy to do any deployments from cicd server we had added proxy in our seetings.xml file and using 2.3.0 maven deploy plugin.
we have tested sample management APIs using bearer token we can make post & get from the same cicd server, but using the plugin we are getting the below-attached issue
deploy command used
mvn clean install -phybrid-apiproxy -Dorg=orgname -Denv=envname -Dbearer=token
The text was updated successfully, but these errors were encountered: