Splunk AppDynamics

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

CommunityUser
Splunk Employee
Splunk Employee

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.

Labels (1)
0 Karma

Chitra_Lal
Contributor

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Chitra,

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

Regards

Akhilesh

0 Karma

Chitra_Lal
Contributor

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

0 Karma
Get Updates on the Splunk Community!

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...