# 모든 API 호출에서 “요청한 리소스를 볼 권한이 없습니다” 오류 발생

**URL:** https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595
**Category:** Support
**Created:** [4월 11, 2020, 3:02오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595 "2020-04-11T03:02:46Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![depeters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/depeters/32/137579_2.png) [@depeters](https://meta.discourse.org/u/depeters)
#### Post date: [4월 11, 2020, 3:02오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/1 "2020-04-11T03:02:46Z")

</div>

저는 아무것도 변경하지 않았습니다. 그런데 갑자기 모든 API 호출에서 "요청한 리소스를 볼 권한이 없습니다"라는 API 오류가 발생하고 있습니다. API 키를 갱신하고 API 사용자에게 최대 권한을 부여해 두었는데도 왜 이런 일이 갑자기 일어나는 걸까요??

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [4월 11, 2020, 3:26오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/2 "2020-04-11T03:26:45Z")

</div>

> [@blake](#):
>
> ## ⚠ 비추천 경고!
> 
> _2020년 4월 6일, 일부 rss, 메일 수신기, ics 라우트를 제외하고 모든 HTTP 헤더 기반 인증이 아닌 방식에 대한 지원을 중단했습니다. 이는 요청의 쿼리 매개변수나 HTTP 본문에 `api_key`와 `api_username`이 포함된 API 요청이 곧 더 이상 작동하지 않게 된다는 뜻입니다. HTTP 헤더를 사용하여 인증하도록 API 요청을 업데이트하는 방법에 대해서는 아래 cURL 요청 예시를 참조하세요._

API 키에 HTTP 헤더를 사용 중이신가요?

---

<div class="post-metadata">

### Author: ![depeters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/depeters/32/137579_2.png) [@depeters](https://meta.discourse.org/u/depeters)
#### Post date: [4월 11, 2020, 3:29오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/3 "2020-04-11T03:29:54Z")

</div>

네, 방금 확인했어요. 그러면 제가 직접 호스팅하고 업데이트하지 않은 Discourse 인스턴스에도 영향을 미친다는 뜻인가요?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [4월 11, 2020, 3:31오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/4 "2020-04-11T03:31:34Z")

</div>

현재 실행 중인 정확한 버전은 무엇인가요?

---

<div class="post-metadata">

### Author: ![depeters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/depeters/32/137579_2.png) [@depeters](https://meta.discourse.org/u/depeters)
#### Post date: [4월 11, 2020, 3:33오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/5 "2020-04-11T03:33:39Z")

</div>

그 후 업데이트를 완료했습니다. 이전 버전 번호는 알지 못합니다. 거의 1년 전 버전이었거든요. 하지만 업데이트를 하기 전에 이미 오류가 발생하기 시작했습니다.

---

<div class="post-metadata">

### Author: ![depeters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/depeters/32/137579_2.png) [@depeters](https://meta.discourse.org/u/depeters)
#### Post date: [4월 11, 2020, 3:56오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/6 "2020-04-11T03:56:35Z")

</div>

이것이 어떻게 내 자가 호스팅되고 업데이트되지 않은 인스턴스에 영향을 미쳤다면 뭔가 수상합니다.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 11, 2020, 5:14오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/7 "2020-04-11T05:14:35Z")

</div>

해당 버전 번호를 포함한 더 자세한 정보가 없으면, 거의 판단하기 어렵습니다.

---

<div class="post-metadata">

### Author: ![depeters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/depeters/32/137579_2.png) [@depeters](https://meta.discourse.org/u/depeters)
#### Post date: [4월 11, 2020, 6:12오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/8 "2020-04-11T06:12:30Z")

</div>

외부 서비스와의 특정 통합으로 인해 완전히 독립적으로 자체 호스팅되는 인스턴스가 작동하지 않게 되는 상황을 만들 수 있다면, 그 사실을 언급하는 것은 쉬워야 합니다.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [4월 11, 2020, 1:27오후 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/9 "2020-04-11T13:27:14Z")

</div>

이처럼 업그레이드되지 않은 독립형 셀프호스트 설치 환경에는 영향을 미칠 수 있는 요소가 없습니다. 변경 사항을 이전 버전으로 백포트하더라도, 수동으로 설치를 업데이트하지 않는 한 해당 변경 사항을 받지 못할 것입니다. Discourse는 기본적으로 이메일이나 Google Analytics와 같이 직접 설정해야 하는 외부 서비스가 포함되지 않습니다.

---

<div class="post-metadata">

### Author: ![depeters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/depeters/32/137579_2.png) [@depeters](https://meta.discourse.org/u/depeters)
#### Post date: [4월 11, 2020, 7:52오후 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/11 "2020-04-11T19:52:47Z")

</div>

나는 아무것도 업데이트하지 않았는데, 모든 API 호출에서 403 오류가 발생하기 시작했습니다. 오류를 해결한 유일한 방법은 새 버전으로 업그레이드하고 요청 파라미터를 헤더로 변경하는 것이었습니다. API 변경 사항으로 인해 스탠드얼론으로 운영되고 자체 호스팅되며 명시적으로 업데이트되지 않는 경우에도 구버전이 깨지는 문제가 발생하는 것으로 보입니다.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 11, 2020, 8:08오후 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/12 "2020-04-11T20:08:00Z")

</div>

> [@depeters](#):
>
> API 변경 사항으로 인해 독립적으로 실행되고, 자체 호스팅되며, 명시적으로 업데이트되지 않은 상태에서도 구버전이 깨지는 문제가 발생하고 있습니다.

변화 없이는 변화가 일어나지 않습니다. 당신이 그 변화를 인지했든 아니든, 어딘가에서 무언가가 바뀌었습니다. 컨테이너 내부가 아니라면, 컨테이너 외부의 구성 요소 중 하나이거나 연결된 시스템 중 하나가 변경된 것입니다.

하지만 구체적인 것을 살펴볼 수 있는 상황이 아니라면, 이 모든 것은 그저 추측에 불과합니다.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [4월 11, 2020, 8:10오후 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/13 "2020-04-11T20:10:33Z")

</div>

음, 나도 잘 모르겠어. 나는 옛날 API 방식으로 동작하는 오래된 자체 호스팅 인스턴스가 하나 있어. 그래도 업데이트해서 잘 작동하게 만들어서 다행이야.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 12, 2020, 4:52오전 UTC](https://meta.discourse.org/t/all-api-calls-now-getting-you-are-not-permitted-to-view-the-requested-resource/147595/14 "2020-04-12T04:52:55Z")

</div>


