NetlifyCMSの記事公開時のエラー対応


![「NetlifyCMSの記事公開時のエラー対応」のアイキャッチ画像](/images/tmb/netlifycms-publisherror.jpg)

久しぶりに新しいサイトにNetlifyCMSを導入し、記事公開時にこのようなエラーが出たのでメモ。

{{< bg >}}

`API_ERROR: Although you appear to have the correct authorization credentials, the organization name organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/`

{{< bg-end >}}

### GithubのThird-party accessを変更

Organization の設定を開き、サイドバーからThird-party accessにアクセス、Remove restrictionsで書き込み権限を与えます。

![](/images/netlifycms-publisherror-1.jpg)

確認アラートが出るので、`Yes`。

![](/images/netlifycms-publisherror-2.jpg)

`Policy: No restrictions` になっていることを確認し、これで解決しました。

![](/images/netlifycms-publisherror-3.jpg)

***

詳しい手順は公式ドキュメントに書いてありました。

https://docs.github.cthub/setting-up-and-managing-organizations-and-teams/enabling-oauth-app-access-restrictions-for-your-organization


コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です