# How to fix “request was received using an HTTP method that is not supported by the mapped resource”

**URL:** <https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614>\
**Category:** Appium\
**Created:** [23 July 2024 14:06 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614 "2024-07-23T14:06:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ps1logi](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ps1logi/32/4097_2.png) [@ps1logi](https://forum.robotframework.org/u/ps1logi)\
**Post date:** [23 July 2024 14:06 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/1 "2024-07-23T14:06:56Z")

</div>

When I ran the code below, i m observing the error as WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource

Code  
\*\*\* Settings \*\*\*  
Library AppiumLibrary  
\*\*\* Variables \*\*\*  
#Shared  
${newCommandTimeout} 120  
${eventTimings} true  
${printPageSourceOnFindFailure} true  
${appium\_host} [http://172.23.230.134:4723/](http://172.23.230.134:4723/)#port no to interact server mac

#Android

# App Info

${app\_Activity} com.logue.ui.activity.SplashActivity #app\_activity  
${app\_Package} com.logue

# Mobile and OS details

${platform\_Name\_Android} Android  
${Android\_OS} 14 #OS version  
${Pixel\_4a} R5CT126FWHA #Device Name  
${ANDROID\_AUTOMATION\_NAME} UIAutomator2

\*\*\* Keywords \*\*\*  
Open App Andriod  
Open Application ${appium\_host}  
… appActivity=${app\_Activity} appPackage=${app\_Package} platformName=${platform\_Name\_Android} platformVersion=${Android\_OS} newCommandTimeout=${newCommandTimeout} noReset=true automationName=${ANDROID\_AUTOMATION\_NAME}

\*\*\* Test Cases \*\*\*  
Test to open android  
Open App Andriod

System information  
Appium v2.6.0

- xcuitest@7.24.1 [installed (npm)]
- uiautomator2@3.7.4 [installed (npm)]
- Vscode 1.86.2

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [23 July 2024 14:11 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/2 "2024-07-23T14:11:09Z")

</div>

Is this a first time setup, or was it working before and some change made it stop working?

---

<div class="post-metadata">

**Author:** ![ps1logi](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ps1logi/32/4097_2.png) [@ps1logi](https://forum.robotframework.org/u/ps1logi)\
**Post date:** [23 July 2024 15:17 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/3 "2024-07-23T15:17:32Z")

</div>

this a first time setup

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [23 July 2024 16:25 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/4 "2024-07-23T16:25:11Z")

</div>

Appium server, needs the drivers installed. You mentioned installed with npm, but I don’t know if that is the correct way.

Note: Now I see your output is similar.

See my installed drivers (MacOS Catalina):

```python
$ appium driver list
✔ Listing available drivers
- uiautomator2@3.5.2 [installed (npm)]
- xcuitest@7.16.2 [installed (npm)]
- mac2 [not installed]
- espresso [not installed]
- safari [not installed]
- gecko [not installed]
- chromium [not installed]

```

Note: My appium is version 2.5.4, but should be the same process.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [23 July 2024 16:32 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/5 "2024-07-23T16:32:15Z")

</div>

Ýou did not pass the `deviceName=${Pixel_4a}`.

---

<div class="post-metadata">

**Author:** ![ps1logi](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ps1logi/32/4097_2.png) [@ps1logi](https://forum.robotframework.org/u/ps1logi)\
**Post date:** [24 July 2024 04:47 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/6 "2024-07-24T04:47:12Z")

</div>

> [@HelioGuilherme66](#):
>
> `appium driver list`

Please find below appium driver installed in my mac book  
✔ Listing available drivers

- xcuitest@7.24.1 [installed (npm)]

- uiautomator2@3.7.4 [installed (npm)]

- espresso [not installed]

- mac2 [not installed]

- windows [not installed]

- safari [not installed]

- gecko [not installed]

- chromium [not installed]

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [24 July 2024 10:13 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/7 "2024-07-24T10:13:27Z")

</div>

> [@HelioGuilherme66](#):
>
> Ýou did not pass the `deviceName=${Pixel_4a}`.

Did you experimented with this argument?

---

<div class="post-metadata">

**Author:** ![ps1logi](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ps1logi/32/4097_2.png) [@ps1logi](https://forum.robotframework.org/u/ps1logi)\
**Post date:** [31 July 2024 06:34 UTC](https://forum.robotframework.org/t/how-to-fix-request-was-received-using-an-http-method-that-is-not-supported-by-the-mapped-resource/7614/8 "2024-07-31T06:34:11Z")

</div>

@HelioGuilherme66 I did add it and still getting the same error
