# Wp-json/wp/v2/media?\_locale=user \[HTTP/1.1 405 Not Allowed\]

**URL:** https://community.localwp.com/t/wp-json-wp-v2-media-locale-user-http-1-1-405-not-allowed/23014
**Category:** Support
**Tags:** mac-catalina
**Created:** [November 19, 2020, 4:26pm UTC](https://community.localwp.com/t/wp-json-wp-v2-media-locale-user-http-1-1-405-not-allowed/23014 "2020-11-19T16:26:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jshwlkr](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/jshwlkr/32/11413_2.png) [@jshwlkr](https://community.localwp.com/u/jshwlkr)
#### Post date: [November 19, 2020, 4:26pm UTC](https://community.localwp.com/t/wp-json-wp-v2-media-locale-user-http-1-1-405-not-allowed/23014/1 "2020-11-19T16:26:36Z")

</div>

### Issue Summary

Can’t seem to upload images, I get a “The response is not a valid JSON response.” error in WordPress, when uploading via a post, and a 405 error in the console. Similar things happen when I try uploading via the media library.

#### Troubleshooting Questions

- Happens for all sites.

- I can create a new site, has the same issue.

#### System Details

- 5.9.2+5056

- macOS Catalina

- Don’t seem to have logs.

#### Ugh

Swapped from site domain to localhost, seems to fix the issue.

---

<div class="post-metadata">

### Author: ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)
#### Post date: [February 17, 2021, 4:37pm UTC](https://community.localwp.com/t/wp-json-wp-v2-media-locale-user-http-1-1-405-not-allowed/23014/2 "2021-02-17T16:37:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
