Skip to content

Instantly share code, notes, and snippets.

@pranavkulkarni
Last active September 13, 2017 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranavkulkarni/83dc606d585f29ebcb012a8aa7e41711 to your computer and use it in GitHub Desktop.
Save pranavkulkarni/83dc606d585f29ebcb012a8aa7e41711 to your computer and use it in GitHub Desktop.
Node native error in compose step: the-duke-compose-step-fail-example-1
{
"composeStatus": {
"pass": false,
"erroneousFields": {
"layers": {
"state": "rejected",
"reason": {
"name": "FetchError",
"message": "invalid json response body at https://www.fws.gov/wetlands/arcgis/services/Wetlands/MapServer/WMSServer/layers?f=json reason: Unexpected token < in JSON at position 0",
"type": "invalid-json"
}
},
"server": {
"state": "rejected",
"reason": {
"name": "FetchError",
"message": "invalid json response body at https://www.fws.gov/wetlands/arcgis/services/Wetlands/MapServer/WMSServer?f=json reason: Unexpected token < in JSON at position 0",
"type": "invalid-json"
}
}
}
},
"item": {
"id": "bcee4cd31c9049b894ddabc6a2c8c498",
"owner": "slove_usnsdi",
"orgId": "QQGMu3AgoCvivmaQ",
"created": 1500916145000,
"modified": 1504531364000,
"guid": null,
"name": null,
"title": "National Wetlands Inventory - Wetlands (WMS)",
"type": "WMS",
"typeKeywords": [
"Data",
"OGC",
"Service",
"Web Map Service"
],
"description": "<div>The <a href='https://www.fws.gov/wetlands/index.html' target='_blank'>National Wetlands Inventory</a>, found in the  A-16 <a href='https://www.fgdc.gov/initiatives/ngda-management-plan' target='_blank'>National Geospatial Data Asset</a> Portfolio, represents the extent, approximate location and type of wetlands and deep water habitats in the United States and its Territories. These data delineate the areal extent of wetlands and surface waters. Certain wetland habitats are excluded from the national mapping program because of the limitations of aerial imagery as the primary data source used to detect wetlands. These habitats include seagrasses or submerged aquatic vegetation that are found in the intertidal and subtidal zones of estuaries and near shore coastal waters. Some deep water reef communities (coral or tuberficid worm reefs) have also been excluded from the inventory.</div><div><br /></div><div>This Web Map Service (WMS) displays wetlands such as rivers, lakes and estuaries. The Open Geospatial Consortium, WMS specification is an international specification for serving and consuming dynamic maps on the web. WMS services are useful for making maps available online in an open, recognized way across different platforms and clients. Any client built to support the WMS specification can view and work with this service.<br /></div><div><i><br /></i></div><div><i>Thumbnail source image courtesy of: <a href='https://creativecommons.org/licenses/by-sa/2.0/' target='_blank'>LivingLandscapeArchitecture</a></i><br /></div>",
"tags": [
"A16",
"FWS",
"Fish and Wildlife Service",
"NGDA",
"National Geospatial Data Asset",
"National Wetlands Inventory",
"NWI",
"Wetlands",
"Hydrography",
"Open Geospatial Consortium",
"OGC",
"Deepwater habitats"
],
"snippet": "The National Wetlands Inventory (NWI), found in the A-16 National Geospatial Data Asset (NGDA) Portfolio, represents the extent, approximate location and type of wetlands and deep water habitats in the United States and its Territories. ",
"thumbnail": "thumbnail/thumbnail.png",
"documentation": null,
"extent": [
[
-125.695,
24.326
],
[
-65.93,
49.695
]
],
"categories": [],
"spatialReference": null,
"accessInformation": "U.S. Fish and Wildlife Service (FWS)",
"licenseInfo": null,
"culture": "en-us",
"properties": null,
"url": "https://www.fws.gov/wetlands/arcgis/services/Wetlands/MapServer/WMSServer",
"proxyFilter": null,
"access": "public",
"size": 924,
"appCategories": [],
"industries": [],
"languages": [],
"largeThumbnail": null,
"banner": null,
"screenshots": [],
"listed": false,
"commentsEnabled": true,
"numComments": 0,
"numRatings": 0,
"avgRating": 0,
"numViews": 36
},
"metadata": {
"message": "400 Bad Request http://www.arcgis.com/sharing/rest/content/items/bcee4cd31c9049b894ddabc6a2c8c498/info/metadata/metadata.xml",
"url": "http://www.arcgis.com/sharing/rest/content/items/bcee4cd31c9049b894ddabc6a2c8c498/info/metadata/metadata.xml",
"statusCode": 400
},
"groups": {
"admin": [],
"member": [],
"other": [
{
"id": "16bc0ed727944e818fade5cafb64eefe",
"title": "A16 - Climate and Weather",
"isOrganization": false,
"isPublic": true,
"isInvitationOnly": false,
"owner": "amartin_usnsdi",
"description": null,
"snippet": null,
"tags": [
"climate",
"weather",
"Federal Geographic Data Committee",
"National Spatial Data Infrastructure",
"National Geospatial Data Asset",
"FGDC",
"NSDI",
"NGDA",
"A16",
"A-16"
],
"phone": null,
"sortField": null,
"sortOrder": null,
"isViewOnly": false,
"isFav": false,
"isOpenData": true,
"featuredItemsId": null,
"thumbnail": "thumbnail.png",
"created": 1499712703000,
"modified": 1505216380000,
"provider": null,
"providerGroupName": null,
"isReadOnly": false,
"access": "public",
"capabilities": [],
"protected": false,
"autoJoin": false
},
{
"id": "72cf6ae1bae54157841adc7406bd5546",
"title": "A16 - Water - Inland",
"isOrganization": false,
"isPublic": true,
"isInvitationOnly": false,
"owner": "amartin_usnsdi",
"description": null,
"snippet": null,
"tags": [
"water",
"inland",
"Federal Geographic Data Committee",
"National Spatial Data Infrastructure",
"National Geospatial Data Asset",
"FGDC",
"NSDI",
"NGDA",
"A16",
"A-16"
],
"phone": null,
"sortField": null,
"sortOrder": null,
"isViewOnly": false,
"isFav": false,
"isOpenData": true,
"featuredItemsId": null,
"thumbnail": "thumbnail.png",
"created": 1499713504000,
"modified": 1505216411000,
"provider": null,
"providerGroupName": null,
"isReadOnly": false,
"access": "public",
"capabilities": [],
"protected": false,
"autoJoin": false
}
]
},
"layers": {
"name": "FetchError",
"message": "invalid json response body at https://www.fws.gov/wetlands/arcgis/services/Wetlands/MapServer/WMSServer/layers?f=json reason: Unexpected token < in JSON at position 0",
"type": "invalid-json"
},
"server": {
"name": "FetchError",
"message": "invalid json response body at https://www.fws.gov/wetlands/arcgis/services/Wetlands/MapServer/WMSServer?f=json reason: Unexpected token < in JSON at position 0",
"type": "invalid-json"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment