# Error: Resource Not Found for /element/{elementId} Endpoint When Accessing Element Attributes

**URL:** <https://discuss.appium.io/t/error-resource-not-found-for-element-elementid-endpoint-when-accessing-element-attributes/41506>\
**Category:** Support\
**Created:** [January 30, 2024, 7:25am UTC](https://discuss.appium.io/t/error-resource-not-found-for-element-elementid-endpoint-when-accessing-element-attributes/41506 "2024-01-30T07:25:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sid.j.dev](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@sid.j.dev](https://discuss.appium.io/u/sid.j.dev)\
**Post date:** [January 30, 2024, 7:25am UTC](https://discuss.appium.io/t/error-resource-not-found-for-element-elementid-endpoint-when-accessing-element-attributes/41506/1 "2024-01-30T07:25:31Z")

</div>

While running my iOS automation tests using Appium, I am trying to retrieve attributes of a UI element (like `UID`, `accessibilityContainer`, `accessible`, `focused`, `frame`, `hittable`, `index`, `label`, `type`, `value`, `visible`). However, when I send a request to the endpoint `/wd/hub/session/{sessionId}/element/{elementId}/`, I receive the following error:

`The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource`

Appium version: 2.4.1  
Desktop OS/version used to run Appium: macOS Sonoma  
Mobile platform/version under test: iOS 17.2  
Real device or emulator/simulator: Simulator

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [January 30, 2024, 7:37am UTC](https://discuss.appium.io/t/error-resource-not-found-for-element-elementid-endpoint-when-accessing-element-attributes/41506/2 "2024-01-30T07:37:33Z")

</div>

Please provide the full server log

---

<div class="post-metadata">

**Author:** ![sid.j.dev](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@sid.j.dev](https://discuss.appium.io/u/sid.j.dev)\
**Post date:** [January 30, 2024, 7:46am UTC](https://discuss.appium.io/t/error-resource-not-found-for-element-elementid-endpoint-when-accessing-element-attributes/41506/3 "2024-01-30T07:46:50Z")

</div>

[Terminal Log](https://gist.github.com/sidjdev/1fff0fbefa341e888ac2b0734ec4ffbe)

Would this be sufficient?

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [January 30, 2024, 2:03pm UTC](https://discuss.appium.io/t/error-resource-not-found-for-element-elementid-endpoint-when-accessing-element-attributes/41506/4 "2024-01-30T14:03:02Z")

</div>

Some endpoints from these in the log don’t exist in the [spec](https://www.w3.org/TR/webdriver2/)  
Make sure your client uses proper APIs
