# \[Github Actions\] AxiosError - code 413

**URL:** <https://forum.ghost.org/t/github-actions-axioserror-code-413/43354>\
**Category:** Themes\
**Created:** [December 13, 2023, 2:52pm UTC](https://forum.ghost.org/t/github-actions-axioserror-code-413/43354 "2023-12-13T14:52:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satonotdead](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/satonotdead/32/33666_2.png) [@satonotdead](https://forum.ghost.org/u/satonotdead)\
**Post date:** [December 13, 2023, 2:52pm UTC](https://forum.ghost.org/t/github-actions-axioserror-code-413/43354/1 "2023-12-13T14:52:53Z")

</div>

I get this result when I try to deploy a Ghots forked theme on Github Actions:

```auto
  adding: custom-authors.hbs (deflated 58%)
  adding: archive.hbs (deflated 66%)
{
  "message": "Request failed with status code 413",
  "name": "AxiosError",
  "code": "ERR_BAD_REQUEST",
  "status": null
}

```

This is my code, copied from Ghost Github:

```auto
name: Deploy Theme
on:
  push:
    branches:
      - master
      - main
jobs:
  deploy:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v4
      - name: Deploy Ghost Theme
        uses: TryGhost/action-deploy-theme@v1.6.1
        with:
          api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
          api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}

```

What can be the cause of this issue?

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [December 13, 2023, 2:56pm UTC](https://forum.ghost.org/t/github-actions-axioserror-code-413/43354/2 "2023-12-13T14:56:28Z")

</div>

413 is “request too large”. So the theme you’re trying to upload is larger than the server will accept.

Assuming you’re uploading to a self-hosted instance, my first guess would be your max body size is too low on the server i.e. nginx.

If you can share more details about your setup, that would help with figuring out exactly what’s wrong.

---

<div class="post-metadata">

**Author:** ![satonotdead](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/satonotdead/32/33666_2.png) [@satonotdead](https://forum.ghost.org/u/satonotdead)\
**Post date:** [December 13, 2023, 5:36pm UTC](https://forum.ghost.org/t/github-actions-axioserror-code-413/43354/3 "2023-12-13T17:36:15Z")

</div>

Thanks Hanna, it did the trick.

On Nginx, for future references:

```auto
Syntax: client_max_body_size size;
Default: client_max_body_size 1m;
Context: http, server, location

```

### 🔗 [Module ngx\_http\_core\_module](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size)
