30 Mar 2021 05:22 AM - last edited on 30 Aug 2022 12:44 PM by MaciejNeumann
Hi I am using dynatrace SAAS and getting below error while downloading configuration using the monaco cli.
CLI version - 1.4.0
Command:
NEW_CLI=1 monaco download -e environments.yaml
Error:
--- GETTING CONFIGS for application-web
ERROR Cannot unmarshal API response for existing objects: invalid character '<' looking for beginning of value
ERROR error getting client list from api application-web invalid character '<' looking for beginning of value
ERROR error getting configs from API application-web %!v(MISSING)
17 Jun 2021 10:06 PM
@nakb are you still running into download issues? What did you have to do to correct this?
11 Aug 2023 11:48 PM
Hi,
Have you try it with Monaco V2?
Best regards
12 Aug 2023 01:05 PM
@AntonPineiro
Maybe because v1 is still default and hardcoded in docs)
So everyone who wants just to try - will download the old version.
https://dynatrace.github.io/dynatrace-configuration-as-code/Get-started/installation
12 Aug 2023 05:58 PM
Hi,
I use Monaco V2 normally I have never got similar issue.
Best regards
17 Nov 2023 10:38 AM
Hello @AntonPineiro I am using Monaco v2.9.2 but still getting error when deploying configuration:
Error we got in the logs is below (Environment Name is hidden on purpose as its client information😞
2023-11-16T16:35:40+01:00 info Loading manifest "/learn-monaco-auto-tag/manifest.yaml". Restrictions: groups=[], environments=[]
2023-11-16T16:35:41+01:00 error Could not connect to environment "development-environment" (https://{environmentid}.live.dynatrace.com😞 failed to query version of Dynatrace environment: HTTP request failed: Get "https://{environmentid}/live.dynatrace.com/api/v1/config/clusterversion" data-saferedirecturl="https://{environmentid}/live.dynatrace.com/api/v1/config/clusterversion&source=gmail&ust=1700302975691000&usg=AOvVaw2HOyOiXPcGuJZpFAUGtV21" target=_blank>live.dynatrace.com/api/v1/config/clusterversion": proxyconnect tcp: dial tcp: lookup http on 0.0.0.0:53: no such host (0.0.0.0 is replaced IP as original one is client DNS IP)
2023-11-16T16:35:41+01:00 error Please verify that this environment is a Dynatrace Classic environment.
2023-11-16T16:35:41+01:00 error Error: unable to verify Dynatrace environment generation
17 Nov 2023 04:53 PM
Hi,
You need to change placeholder "{environmentid}" for your tenant id.
Best regards
20 Nov 2023 06:58 AM
I already did that, I did not paste environment ID here due to security reasons. But its still failing with same error.
Since the server where we are deploying Monaco is in client network so do we need additional ports/URLs which needs to be opened for this to work?
20 Nov 2023 05:44 PM
Hi,
You should be able to reach Dynatrace tenant APIs.
Looks like you cannot reach it.
Best regards
22 Nov 2023 07:33 AM
Yes we are able to reach Dynatrace tenant APIs when we use curl but I dont know why Monaco is sending this error.
We have raised case which vendor has moved from P2 to P3 and its been 2 days since we received a reply. Dont know how to proceed with this now.
22 Nov 2023 08:25 AM
@Raj are you sure your URL is correct? I see some extra slash there:
https://{environmentid}/live.dynatrace.com/api/v1/config/clusterversion
Also are you using HTTP proxy? If so, is there any chance your proxy is blocking some requests?
22 Nov 2023 08:50 AM
Yes @Julius_Loman we have double checked and its correct. The extra slash pasted due to hiding the environment tenant name while pasting here. The error URL which Monaco gave - we used same to hit a curl and it was successful.
We are using HTTP proxy and exported it as well as tried to pass proxy in same command line while trying to deploy configuration but everytime it gives same error
"proxyconnect tcp: dial tcp: lookup http on 0.0.0.0:53: no such host (0.0.0.0 is replaced IP as original one is client DNS IP)
2023-11-16T16:35:41+01:00 error Please verify that this environment is a Dynatrace Classic environment.
2023-11-16T16:35:41+01:00 error Error: unable to verify Dynatrace environment generation"
22 Nov 2023 10:46 AM
Does your proxy require authentication?
22 Nov 2023 11:17 AM
Yes it does and credentials are passed as well during command run. 😑
22 Nov 2023 11:30 AM
Try to encode any special character in your username and password in the exported HTTPS_PROXY using url encoding.