Skip to content

Commit

Permalink
[service] fix FeatureQuerier response from request
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Saccoccia committed Nov 4, 2024
1 parent e66b6de commit 7691ad7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions plugins/arcgis/service/src/FeatureQuerier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

/**
Expand All @@ -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)
}

/**
Expand All @@ -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)
}

/**
Expand Down

0 comments on commit 7691ad7

Please sign in to comment.