How do I fix the error "DataStore - User is unauthorized"

1

React application when attempting to use any Datastore functions returns this warning in the console.

DataStore - subscriptionError Connection failed: com.amazonaws.deepdish.graphql.auth#UnauthorizedException DataStore - User is unauthorized to query syncFriendships with auth mode API_KEY. No data could be returned.

What is causing this error, how do I fix it, and get my app to where I can read and write data to the database? Note this backend works on a react native application. I have ran amplify pull and have all the changes locally. I am on day 7 of trying to fix this.

  • I have the same issue: My Expo project was working fine. After I installed TopTabNavigation my project got messed up. I started having issues with conflicting versions of dependencies specially for react-native-tab-view which I fixed with expo doctor --fix-dependencies, but then I got this error that I have not found in any forum yet: DataStore - User is unauthorized to query syncUsers with auth mode API_KEY. No data could be returned

    Can you help me? Thanks

質問済み 2年前159ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ