I don't understand why you use functions async way, but there is an example in the documentation. [HitTest sample][1] ``` view.on("pointer-down", eventHandler); function eventHandler(event) { view.hitTest(event).then(function (response) { if (response.results.length) { const graphic = response.results[0].graphic; const attributes = graphic.attributes; console.log(attributes); } }); } ``` [1]: https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/