cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Appdynamics Android gradle plugin not able to upload mapping.txt through proxy

Hello

I'm an android developer and I am trying to use appdynamics-gradle-plugin 2.0 to automatically upload the mapping.txt through gradle build.

Unfortunately I get the following error all the time.

Error uploading proguard mapping fileorg.apache.http.conn.HttpHostConnectException: Connection to https://api.eum-appdynamics.com refused

 

it looks like appdynamics-gradle-plugin 2.0 doesnt work well with proxy. Even thought the proxy is configured through systemProp, it seems to be ignoring the proxy and trying to make direct connection to api-eum-appdynamics.com.

I have checked the connection directly through brower and connection goes through, so it looks like gradle plugin is not considering the proxy settings.

Could someone confirm if there are any parameters that need to be configured in the appdynamics plugin or is this is a known issue?

is there any solution.

 

3 REPLIES 3

Chitra.Lal
AppDynamics Team

Hello Hari,

 

Before we make any suggestions we would like some clarity on the following queries:

Is that you are only not able to upload thisproguard mapping file if proxy is in use but rest of everything is fine?

OR EUM at all is not working for you? 

Also if there is no proxy, are you able to upload this same file successfully?

 

Because if that is the case you are hitting a feature deficiency here and which is already being worked upon by the Eng teams. But for now in order to get this resolved, you have following options to opt from:

 

1) You can try uploading the file manually from UI as mentioned here: https://docs.appdynamics.com/display/PRO43/Manually+Upload+the+ProGuard+Mapping+File

 

 

2) Or As a workaround you can use a curl (or similar) command in your CI/CD process. This is documented here - https://docs.appdynamics.com/display/PRO43/Manually+Upload+the+ProGuard+Mapping+File#ManuallyUploadt....

Note: The rest API does not work with a proxy.  But the curl command should:

curl -v -H Content-Type:text/plain --upload-file mapping.txt --user Example+account:Example-License-Key-4e8ec2ae6cfe https://api.eum-appdynamics.com/v2/account/Example+account/com.example.networklogger/1/proguard-mapping 

 

Let me know in case you have any questions. 


Thank You,

Chitra

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hi Chitra,

 

Is there any update on this? We are facing the same issue.

 

Regards

Akhilesh

Hi Akhilesh,

 

This is a feature deficiency; the plugin does not consider the proxy definitions in System Properties. Though Eng is actively working on the fix but as of now the only way ahead would be to use the below workaround. 

 

You can use a curl (or similar) command in your CI/CD process as documented here to upload the file manually:

https://docs.appdynamics.com/display/PRO45/Manually+Upload+the+ProGuard+Mapping+File#ManuallyUploadt...

 

The rest API does not work with a proxy.  But the curl command should:

curl -v -H Content-Type:text/plain --upload-file mapping.txt --user Example+account:Example-License-Key-xxxxxxxxxx https://api.eum-appdynamics.com/v2/account/Example+account/com.example.networklogger/1/proguard-mapping  

 

 

 

Thank You,

Chitra



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.