# \[422\] API request client error with Shopify CLI

**URL:** <https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357>\
**Category:** Tools\
**Created:** [March 2, 2023, 11:02am UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357 "2023-03-02T11:02:04Z")\
**Posts on this page:** 8\
**Page:** 1

## AI-generated summary

Issue: After logging in with “shopify theme dev --store {store}”, users on Shopify CLI 3.44.1 repeatedly receive “[422] API request client error,” despite seeing “✔ Logged in.” Logging out via “shopify auth logout” does not resolve it, and “shopify theme info” still shows they’re logged in and can push themes.

Context: Reported on macOS (darwin-arm64) with zsh, Node v19.7.0, Ruby 3.2.1. A screenshot indicates “Development Theme ID Not set,” suggesting no development theme is selected.

Resolution (confirmed by multiple users):
- Ensure a development theme exists and pass its ID explicitly: “shopify theme dev --store {store} --theme {theme-id}”.
- If you don’t have the ID, create/upload a theme first (e.g., “shopify theme push”) to obtain the theme ID, or upload via the Shopify admin, then rerun the dev command with --theme.
- One user referenced an external post with additional details.

Outcome: Setting/using a valid Development Theme ID resolves the 422 error for affected users. No official root cause or Shopify-side fix noted; the thread appears resolved by the workaround.

<div class="post-metadata">

**Author:** ![Soundsprinkler](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Soundsprinkler](https://community.shopify.com/u/Soundsprinkler)\
**Post date:** [March 2, 2023, 11:02am UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/1 "2023-03-02T11:02:04Z")

</div>

Hi,

I’ve installed the Shopify CLI, used this command to log in:

```css
shopify theme dev --store {store}

```

I log in via the browser and I get an answer saying:

```css
✔ Logged in

```

But then immediately after I get:

```css
[422] API request client error

```

That error keeps coming up if I run “shopify theme dev”. I’ve tried logging out and in again with “shopify auth logout”, no dice.

If I run:

```css
shopify theme info

```

It says I’m logged in, and I can push the theme to the store.

Shopify CLI version: 3.44.1

Anyone know why this is happening and how I can solve it?

---

<div class="post-metadata">

**Author:** ![ErSanjay](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@ErSanjay](https://community.shopify.com/u/ErSanjay)\
**Post date:** [March 2, 2023, 7:14pm UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/2 "2023-03-02T19:14:27Z")

</div>

@Soundsprinkler do you still facing the issue?  
which version of Shopify CLI client are you using?

---

<div class="post-metadata">

**Author:** ![jcs1](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jcs1](https://community.shopify.com/u/jcs1)\
**Post date:** [March 7, 2023, 6:45pm UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/3 "2023-03-07T18:45:24Z")

</div>

I have the same error here

Shopify CLI 3.44.1

OS darwin-arm64

Shell /bin/zsh

Node version v19.7.0

Ruby version 3.2.1

Trying to setup a new development store but everytime i tried ‘shopify theme dev’ command, i have the 422 API Error Message

---

<div class="post-metadata">

**Author:** ![jcs1](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jcs1](https://community.shopify.com/u/jcs1)\
**Post date:** [March 8, 2023, 8:35am UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/4 "2023-03-08T08:35:28Z")

</div>

I’ve managed to solve it this morning.

All details here : [https://community.shopify.com/post/1976188](https://community.shopify.com/post/1976188)

---

<div class="post-metadata">

**Author:** ![yojisekiya](https://avatars.discourse-cdn.com/v4/letter/y/8491ac/32.png) [@yojisekiya](https://community.shopify.com/u/yojisekiya)\
**Post date:** [March 10, 2023, 12:59pm UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/5 "2023-03-10T12:59:17Z")

</div>

Hi, any luck on this? My friend got exactly the same problem.

---

<div class="post-metadata">

**Author:** ![Soundsprinkler](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Soundsprinkler](https://community.shopify.com/u/Soundsprinkler)\
**Post date:** [March 10, 2023, 1:37pm UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/6 "2023-03-10T13:37:09Z")

</div>

Solved it by manually uploading the theme via the admin, logging out with the CLI and logging back in again but **with** the theme ID:

```markup
shopify theme dev --store {store} --theme {theme-id}

```

---

<div class="post-metadata">

**Author:** ![yojisekiya](https://avatars.discourse-cdn.com/v4/letter/y/8491ac/32.png) [@yojisekiya](https://community.shopify.com/u/yojisekiya)\
**Post date:** [March 11, 2023, 4:25pm UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/7 "2023-03-11T16:25:40Z")

</div>

Thank you so much, we tried your solution and it finally worked!

Your solution made a lot of sense because when we run

```auto
shopify theme info

```

we get

```auto
Development Theme ID Not set

```

which means we should set theme ID with

```auto
shopify theme dev

```

 ![224294944-37333721-6fbb-4d02-9756-0e1d029869ca.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/f/b/fb1c5ca35b86655037f166c2ad1ed2ef6ae835db.png)

---

<div class="post-metadata">

**Author:** ![elamtechllc](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@elamtechllc](https://community.shopify.com/u/elamtechllc)\
**Post date:** [March 19, 2023, 5:42pm UTC](https://community.shopify.com/t/422-api-request-client-error-with-shopify-cli/196357/8 "2023-03-19T17:42:47Z")

</div>

Brand new to shopify cli  
Its crazy I was trying to do this, even thought it was staring right at face.

I didnt know how to set theme id.  
Finally i did `shopify theme push` to get the theme id

And then I ran command by @Soundsprinkler  
Works now.
