Error: failed to unmarshal response: invalid character '<' looking for beginning of value
reinhard-brandstaedter opened this issue · 6 comments
Describe the bug
Monaco fails to handle response upon config download and is not persisting any configuration entities
How to reproduce
Steps to reproduce the behavior:
manifest:
manifestVersion: 1.0
projects:
- name: general
path: general
environmentGroups:
- name: prod
environments:
- name: xxxl-prod
url:
type: value
value: https://jtx55583.live.dynatrace.com
auth:
token:
name: MONACO_API_TOKEN
oAuth:
clientId:
name: MONACO_OAUTH_CLIENT_ID
clientSecret:
name: MONACO_OAUTH_CLIENT_SECRET
executing:
monaco download -e xxxl-prod
Expected behavior
Expecting configurations to be downloaded and stored in the project folder, fetching settings schemas and download settings
Log output
2024-02-22T17:26:12+01:00 debug Default soft memory limit set: 2.1 GB
2024-02-22T17:26:12+01:00 info Loading manifest "manifest.yaml". Restrictions: groups=[], environments=["xxxl-prod"]
2024-02-22T17:26:12+01:00 debug skipping loading of environment "xxxl-stage"
2024-02-22T17:26:13+01:00 debug Found classic environment URL based on Platform URL: https://jtx55583.live.dynatrace.com
2024-02-22T17:26:13+01:00 debug Found classic environment URL based on Platform URL: https://jtx55583.live.dynatrace.com
2024-02-22T17:26:13+01:00 warn Unable to determine server version "https://jtx55583.live.dynatrace.com": failed to query version of Dynatrace environment: (HTTP 403) Response was: {"error":{"code":403,"message":"OAuth token is missing required scope. Use one of: [environment-api:cluster-version:read]"}} (HTTP 403): {"error":{"code":403,"message":"OAuth token is missing required scope. Use one of: [environment-api:cluster-version:read]"}}
2024-02-22T17:26:13+01:00 debug Concurrent Request Limit: 5, 'MONACO_CONCURRENT_REQUESTS' environment variable is NOT set, using default value
2024-02-22T17:26:13+01:00 debug Found classic environment URL based on Platform URL: https://jtx55583.live.dynatrace.com
2024-02-22T17:26:13+01:00 debug Found classic environment URL based on Platform URL: https://jtx55583.live.dynatrace.com
2024-02-22T17:26:13+01:00 info API can not be downloaded and needs manual creation: 'credential-vault'.
2024-02-22T17:26:13+01:00 info API can not be downloaded and needs manual creation: 'kubernetes-credentials'.
2024-02-22T17:26:13+01:00 info API can not be downloaded and needs manual creation: 'azure-credentials'.
2024-02-22T17:26:13+01:00 info API can not be downloaded and needs manual creation: 'aws-credentials'.
2024-02-22T17:26:13+01:00 info API can not be downloaded and needs manual creation: 'extension'.
2024-02-22T17:26:13+01:00 info Downloading from environment 'https://jtx55583.live.dynatrace.com' into project 'project_xxxl-prod'
2024-02-22T17:26:13+01:00 debug APIs to download:
- calculated-metrics-application-mobile
- synthetic-monitor
- reports
- slo
- conditional-naming-processgroup
- extension-elasticsearch
- service-resource-naming
- application-web
- custom-service-nodejs
- custom-service-dotnet
- application-mobile
- conditional-naming-service
- conditional-naming-host
- dashboard
- calculated-metrics-application-web
- request-attributes
- calculated-metrics-log
- custom-service-java
- network-zone
- synthetic-location
- custom-service-go
- calculated-metrics-service
- calculated-metrics-synthetic
- custom-service-php
- request-naming-service
2024-02-22T17:26:13+01:00 debug Fetching configs to download
2024-02-22T17:26:13+01:00 debug Started all downloads
2024-02-22T17:26:13+01:00 debug Fetching all 'conditional-naming-host' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'application-web' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'application-mobile' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'request-attributes' configs
2024-02-22T17:26:13+01:00 debug Fetching singleton-configuration 'service-resource-naming'
2024-02-22T17:26:13+01:00 debug Fetching all 'conditional-naming-service' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'reports' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'synthetic-location' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'network-zone' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'conditional-naming-processgroup' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'slo' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'calculated-metrics-service' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'calculated-metrics-application-web' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'custom-service-php' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'calculated-metrics-synthetic' configs
2024-02-22T17:26:13+01:00 debug Found 1 configs of type "service-resource-naming" to download
2024-02-22T17:26:13+01:00 debug Fetching all 'custom-service-nodejs' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'request-naming-service' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'calculated-metrics-application-mobile' configs
2024-02-22T17:26:13+01:00 debug Fetching singleton-configuration 'extension-elasticsearch'
2024-02-22T17:26:13+01:00 debug Fetching all 'custom-service-go' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'synthetic-monitor' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'calculated-metrics-log' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'custom-service-java' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'dashboard' configs
2024-02-22T17:26:13+01:00 debug Fetching all 'custom-service-dotnet' configs
2024-02-22T17:26:14+01:00 debug Found 1 configs of type "extension-elasticsearch" to download
2024-02-22T17:26:14+01:00 debug Found 90 configs of type "synthetic-location" to download
2024-02-22T17:26:14+01:00 debug Found 11 configs of type "conditional-naming-service" to download
2024-02-22T17:26:14+01:00 debug Found 10 configs of type "application-web" to download
2024-02-22T17:26:14+01:00 debug Found 74 configs of type "request-attributes" to download
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'network-zone', name missing. Using id as name. Invalid json: {"alternativeZones":[],"description":"Conova","fallbackMode":"ANY_ACTIVE_GATE","id":"conova","numOfConfiguredActiveGates":2,"numOfConfiguredOneAgents":108,"numOfOneAgentsFromOtherZones":0,"numOfOneAgentsUsing":100}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'network-zone', name missing. Using id as name. Invalid json: {"alternativeZones":[],"description":"The default network zone. This is the network zone for OneAgents or ActiveGates that do not have any network zone configured.","fallbackMode":"ANY_ACTIVE_GATE","id":"default","numOfConfiguredActiveGates":0,"numOfConfiguredOneAgents":185,"numOfOneAgentsFromOtherZones":9,"numOfOneAgentsUsing":18}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'network-zone', name missing. Using id as name. Invalid json: {"alternativeZones":[],"description":"GCP","fallbackMode":"ANY_ACTIVE_GATE","id":"gcp","numOfConfiguredActiveGates":1,"numOfConfiguredOneAgents":0,"numOfOneAgentsFromOtherZones":39,"numOfOneAgentsUsing":39}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'network-zone', name missing. Using id as name. Invalid json: {"alternativeZones":[],"description":"XXXLutz","fallbackMode":"ANY_ACTIVE_GATE","id":"xxxlutz","numOfConfiguredActiveGates":1,"numOfConfiguredOneAgents":21,"numOfOneAgentsFromOtherZones":143,"numOfOneAgentsUsing":161}
2024-02-22T17:26:14+01:00 debug Skipping download of config 'default' of API 'network-zone'
2024-02-22T17:26:14+01:00 debug Found 3 configs of type "network-zone" to download
2024-02-22T17:26:14+01:00 debug Found 2 configs of type "application-mobile" to download
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'reports', name missing. Using dashboardId as name. Invalid json: {"dashboardId":"a448285d-bf9f-4868-919d-aac6af26b52a","id":"3dd06b4f-166a-4501-ae80-60a8becb07cb","type":"DASHBOARD"}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'reports', name missing. Using dashboardId as name. Invalid json: {"dashboardId":"0afb6f1c-e960-4d6a-95e1-16e5bcf28b09","id":"0a7280ca-8e6c-4212-aa2b-c4cae888bf9c","type":"DASHBOARD"}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'reports', name missing. Using dashboardId as name. Invalid json: {"dashboardId":"badd45d1-0413-45aa-a905-cde1fe35e2be","id":"30200527-a4e2-4a4d-b352-2de51c6995cb","type":"DASHBOARD"}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'reports', name missing. Using dashboardId as name. Invalid json: {"dashboardId":"5c252b34-77dc-4e30-9132-942b7f7973fd","id":"f6a505c0-aa18-4d29-ad52-5c5314d0cb38","type":"DASHBOARD"}
2024-02-22T17:26:14+01:00 debug Rewriting response of config-type 'reports', name missing. Using dashboardId as name. Invalid json: {"dashboardId":"12ff808e-8537-45ef-85eb-fe53a4916fbb","id":"593fbe27-dc5b-4f97-9fbc-7ffbc969f05b","type":"DASHBOARD"}
2024-02-22T17:26:14+01:00 debug Found 5 configs of type "reports" to download
2024-02-22T17:26:14+01:00 debug Found 2 configs of type "conditional-naming-host" to download
2024-02-22T17:26:14+01:00 debug Found 11 configs of type "conditional-naming-processgroup" to download
2024-02-22T17:26:14+01:00 debug Found 11 configs of type "calculated-metrics-application-web" to download
2024-02-22T17:26:14+01:00 debug No configs of type 'calculated-metrics-synthetic' to download
2024-02-22T17:26:14+01:00 debug No configs of type 'custom-service-php' to download
2024-02-22T17:26:14+01:00 debug Found 47 configs of type "calculated-metrics-service" to download
2024-02-22T17:26:14+01:00 debug No configs of type 'custom-service-nodejs' to download
2024-02-22T17:26:14+01:00 debug Found 2 configs of type "calculated-metrics-application-mobile" to download
2024-02-22T17:26:14+01:00 debug No configs of type 'custom-service-go' to download
2024-02-22T17:26:14+01:00 error Failed to fetch configs of type 'calculated-metrics-log', skipping download of this type. Reason: Failed to get existing configs for API calculated-metrics-log (HTTP 400)!
Response was: {"error":{"code":400,"message":"You are using the new log monitoring solution. Old API endpoints are disabled."}} (HTTP 400): {"error":{"code":400,"message":"You are using the new log monitoring solution. Old API endpoints are disabled."}}
2024-02-22T17:26:14+01:00 debug Found 41 configs of type "custom-service-java" to download
2024-02-22T17:26:14+01:00 debug Found 10 configs of type "request-naming-service" to download
2024-02-22T17:26:14+01:00 debug Skipping download of config 'eb3bf8d8-8266-1e96-41c4-e4b1cb32457a' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '21f94f40-9209-5859-7d9b-69d33f4e0158' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'c704bd72-92e9-452a-b40e-73e6f4df9f08' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'f4917e90-45ac-3fff-0ac7-e3d021be3df7' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'c1332960-ee42-f734-6608-f447c2279bba' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'ecc00b16-f9ec-b435-2888-6fa92ded6448' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '7ff92125-3168-3c95-cc06-17c4c4083ac2' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '6b38732e-609c-44e2-b34d-0286717ecdab' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'b6fc0160-9332-454f-a7bc-7217b2ae540c' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '3b9c20e2-dc58-4a91-8dcb-f6217dc869ac' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'c4644591-ee8d-4bc2-8e50-d921344fe255' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'c15f39a8-7d74-4b97-af28-0b17a20dc711' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '33026358-80b4-6cdf-5123-8af95dec3c77' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '6b38732e-8c5c-4b32-80a1-7053ec8f37e1' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '454c38df-035c-cd04-e954-e3022673f6fe' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '22471a3e-4bb3-11ed-bdc3-0242ac120002' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config 'ea953fd7-2be5-f01d-fc31-3ced7b942150' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Skipping download of config '6b38732e-d26b-45c7-b107-ed85e87ff288' of API 'dashboard'
2024-02-22T17:26:14+01:00 debug Found 84 configs of type "dashboard" to download
2024-02-22T17:26:14+01:00 debug Found 11 configs of type "custom-service-dotnet" to download
2024-02-22T17:26:14+01:00 debug Found 47 configs of type "synthetic-monitor" to download
2024-02-22T17:26:14+01:00 debug Found 118 configs of type "slo" to download
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-08B2F38AF2C7BDA6 (Sydney) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-B1B096907F0E9A8C (Canberra) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-4C40D4C0456E7A41 (New South Wales) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-2FD31C834DE4D601 (Sydney) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-C1C5636EE98E4C83 (Victoria) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-D8F2F06B2E95DBD0 (Osaka) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-A437CC152B23F30C (Beijing) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-8770D8AE567930D2 (Hohhot) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-E2315994C8AC1C0B (Busan) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-741FF3927B22AC0D (Zhangjiakou) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-33C3867FE4786725 (Hangzhou) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-5A0650BC11D5F20E (Hong Kong) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-BE95C51F5283BBE5 (Hong Kong) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-43BA84CAB24D7950 (Hong Kong) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-2376024A0B244B6C (Seoul) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-398A1CED91190B56 (Qingdao) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-7F39AED31559436D (Tokyo) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-5CFB19F054837D6C (Shenzhen) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-DC08A8CB3E191A64 (Seoul) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-952194DF303FF380 (Taiwan) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-AC34A068CFF69605 (Shanghai) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-F6E28FCE5BD5A55A (Tokyo) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-DBDE1FDFF560E601 (Warsaw) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-2340C2C253B92657 (Chicago) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-07EF89165771349F (Cheyenne) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-4075870747983F26 (Des Moines) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-0DEA3F9E4DBF123E (Montreal) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-AFA64B6F15E92015 (Montreal) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-E632D7F0FABC058C (Oregon) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-5B3CDE358F4D4B31 (Las Vegas) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-9999453BE4BDB3CD (N. Virginia) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-146A961B8F1400EE (Los Angeles) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-490B6966420E218F (N. California) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-716844F67F8B2CA0 (Ohio) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-205F1808D1AD69A1 (San Jose) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-F1DDD2B371612F65 (Iowa) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-6FB4250ED2BFDCDF (Tokyo) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-D81C8437B77CB825 (Oregon) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-68BF6B6D8F1A5E0A (Salt Lake City) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-5BD7AEF63C63DA02 (Quebec City) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-8018A462D66A9804 (Silicon Valley) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-C7F68DB3A7DCB40E (Seattle) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-3484C4AEE903624D (Cardiff) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-21A12C256CF533B1 (Virginia) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-4DBE735F24F26BD5 (Virginia) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-3E5C618F168F83BD (Texas) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-195845BAEB760941 (Dublin) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-A65079A417EA8B42 (South Carolina) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-DDAA176627F5667A (Dublin) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-D6501AD71492DD8C (Toronto) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-3EDACE25AFA8E41B (Oslo) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-B1B2BD3880EFB6AE (Finland South) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-777C8DF8516DAD08 (Stavanger) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-DEA69DE32CE4FA9C (Stockholm) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-6833BE4BFF93F46D (Jakarta) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-6AC760AD57D43C1F (Jakarta) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-191EF52906549983 (Singapore) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-924D253001531722 (São Paulo) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-57F63BAD1C6A415C (Cape Town) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-635E708B828A7881 (Kuala Lumpur) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-5123CC219E23E539 (São Paulo) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-03E96F97A389F96A (Cape Town) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-B4B9167CAAA88F6A (Johannesburg) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-B8D793BCA914E0AF (Mumbai) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-5633CF91F30F65FD (Madrid) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-8888B6EC387C46E6 (Mumbai) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-3E92FA6A6564DB91 (Pune) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-3AD5E90F668DDAFA (Abu Dhabi) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-265448C0C0EDF205 (Dubai) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-E0172065991D29C8 (Dubai) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-838FA89C5C0ECCE7 (Bahrain) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-C196364332B5D8E2 (Chennai) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-A1C0898A90CD8FC7 (Singapore) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-F59A28910188754C (Belgium West) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-CDE930EDA979853F (Berlin) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-49E2F2BFBEAA9C71 (Frankfurt) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-8CE0B526122F75AB (Frankfurt) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-D3F66706B8A0D641 (Milan) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-BFBE4475785D7DB7 (Singapore) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-8A751DADED5D705A (Marseille) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-F15152A6A059C277 (London) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-45AB48D9D6925ECC (Frankfurt) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-871416B95457AB88 (London) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-E266126A762728A2 (Paris) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-23ED2D8533B74344 (Paris) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-CFA479BB38E4A52B (Zürich) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-F3E06A526BE3B4C4 (London) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-1BABC564D6C6FF29 (Zürich) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-E7F41460B2A0E4B3 (Amsterdam) in API synthetic-location
2024-02-22T17:26:15+01:00 debug Skipping persisting config GEOLOCATION-2A90D19543B5871E (Groningen) in API synthetic-location
2024-02-22T17:26:22+01:00 debug Finished fetching all configs in 8s
2024-02-22T17:26:22+01:00 info Downloading settings objects
2024-02-22T17:26:22+01:00 debug Fetching all schemas to download
2024-02-22T17:26:22+01:00 error Failed to fetch all known schemas. Skipping settings download. Reason: failed to unmarshal response: invalid character '<' looking for beginning of value
2024-02-22T17:26:22+01:00 error Error: failed to unmarshal response: invalid character '<' looking for beginning of value
2024-02-22T17:26:22+01:00 error error logs written to .logs/20240222-172612-errors.log
Environment (please complete the following information):
- macOs
- monaco version 2.10.1
Additional context
The documentation is missing information on the OAuth Client permissions for determining server version, also the mentioned policy is missing: [environment-api:cluster-version:read]
Narrowing this further down:
As per the log below the OAuth Client should need this policy: environment-api:cluster-version:read
However this policy - although it exists, and my user is member of a group with this policy - is not assignable to the OAuth Client.
From the unmarshalling error I assume the call to get schema objects fails and returns html code instead of JSON.
monaco download --only-settings -e xxxl-prod -o .
2024-02-22T21:23:40+01:00 info Loading manifest "manifest.yaml". Restrictions: groups=[], environments=["xxxl-prod"]
2024-02-22T21:23:41+01:00 warn Unable to determine server version "https://jtx55583.live.dynatrace.com": failed to query version of Dynatrace environment: (HTTP 403) Response was: {"error":{"code":403,"message":"OAuth token is missing required scope. Use one of: [environment-api:cluster-version:read]"}} (HTTP 403): {"error":{"code":403,"message":"OAuth token is missing required scope. Use one of: [environment-api:cluster-version:read]"}}
2024-02-22T21:23:42+01:00 info Downloading from environment 'https://jtx55583.live.dynatrace.com' into project 'project_xxxl-prod'
2024-02-22T21:23:42+01:00 info Downloading settings objects
2024-02-22T21:23:42+01:00 error Failed to fetch all known schemas. Skipping settings download. Reason: failed to unmarshal response: invalid character '<' looking for beginning of value
2024-02-22T21:23:42+01:00 error Error: failed to unmarshal response: invalid character '<' looking for beginning of value
2024-02-22T21:23:42+01:00 error error logs written to .logs/20240222-212340-errors.log
Hi @reinhard-brandstaedter,
That looks strange, I don't think that the warning is related to the issue.
Can you repeat the command with the --support-archive
flag set?
It will create a zip file containing two files, "-req.log" and "-resp.log".
In the first file search for "environment-api/v2/settings/schemas" and copy the Request-ID. Then search for the request-ID in the second file.
Maybe we can find out more about what's wrong with that API call. :)
thx
hey @reinhard-brandstaedter again,
I took a closer look at you issue.
Can you please try to replace the .live.
part of the dynatrace URL with .apps.
in your "manifest.yaml" file and see if you still run into that issue? thanks
hi @reinhard-brandstaedter, from testing this further, we determined that the issue was caused by your configuration of a 'classic' URL with oAuth permissions for a platform envirnment. The linked PR re-adds a check and clearer error message we had in the past for this.
This will be available with the next release of Monaco.
Should replacing .live.
with .apps.
as @warber suggested above not have resolved your issue, please let us know and reopen this issue.
Yes, changing from .live. to .apps. resolved this behavior. Interesting though that the classic APIs also work with the .apps. url.
Thanks!
Interesting though that the classic APIs also work with the .apps. URL.
If you have configured a platform environment in your manifest (added oAuth credentials), Monaco will resolve the URL at which the classic APIs can be reached automatically.
A recent improvement to that, is actually how we lost an error message about misconfiguration, which you would have otherwise received. In version 2.11.0, which we released today, Monaco will once again present an error message in this case.