From 7691ad7afe14cee5ee6d68afab57c164619a5d33 Mon Sep 17 00:00:00 2001 From: Rick Saccoccia Date: Mon, 4 Nov 2024 14:33:49 -0700 Subject: [PATCH] [service] fix FeatureQuerier response from request --- plugins/arcgis/service/src/FeatureQuerier.ts | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/arcgis/service/src/FeatureQuerier.ts b/plugins/arcgis/service/src/FeatureQuerier.ts index defc76698..cd657f086 100644 --- a/plugins/arcgis/service/src/FeatureQuerier.ts +++ b/plugins/arcgis/service/src/FeatureQuerier.ts @@ -63,12 +63,12 @@ export class FeatureQuerier { this._console.info('ArcGIS query: ' + queryUrl) const queryResponse = await request(queryUrl.toString(), { - authentication: this._identityManager + authentication: this._identityManager, + params: { f: 'json' } }); - this._console.info('ArcGIS response for ' + queryUrl + ' ' + queryResponse.toString) - const result = JSON.parse(queryResponse) as QueryObjectResult - response(result); + this._console.info('ArcGIS response for ' + queryUrl + ' ' + JSON.stringify(queryResponse, null, 2)) + response(queryResponse as QueryObjectResult) } /** @@ -90,9 +90,8 @@ export class FeatureQuerier { params: { f: 'json' } }); - this._console.info('ArcGIS response for ' + queryUrl + ' ' + queryResponse) - const result = JSON.parse(queryResponse) as QueryObjectResult - response(result) + this._console.info('ArcGIS response for ' + queryUrl + ' ' + JSON.stringify(queryResponse, null, 2)) + response(queryResponse as QueryObjectResult) } /** @@ -109,12 +108,13 @@ export class FeatureQuerier { this._console.info('ArcGIS query: ' + queryUrl) const queryResponse = await request(queryUrl.toString(), { - authentication: this._identityManager + authentication: this._identityManager, + params: { f: 'json' } }); - this._console.info('ArcGIS response for ' + queryUrl + ' ' + queryResponse) - const result = JSON.parse(queryResponse) as QueryObjectResult - response(result) + + this._console.info('ArcGIS response for ' + queryUrl + ' ' + JSON.stringify(queryResponse, null, 2)) + response(queryResponse as QueryObjectResult) } /**