callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.74k stars 2.08k forks source link

Getting error when running example project: ApiV2Error: Entity Not Authorized. #4473

Open mrpmohiburrahman opened 1 month ago

mrpmohiburrahman commented 1 month ago

Current behaviour

When trying to run the example project according to do the docs

it's giving me the following error

ApiV2Error: Entity Not Authorized.

Expected behaviour

It should run the app on expo-go without any issue.

How to reproduce?

If we follow the docs on Running the example section, this error can be reproduced.

Preview

Here is a video of current error

https://github.com/user-attachments/assets/138511ef-42a6-4977-932d-6891894830d3

What have you tried so far?

According to this answer in StackOverflow, this issue is generating because of "owner" field on app.json.

We can use the following command to resolve the issue according to this answer

npx expo start --offline

This will run expo without internet connection which will ensure, that owner field won't affect running the example project on expo-go

Your Environment

software version
ios 17.2
android x
react-native 0.71.8
react-native-paper 5.12.5
node 20.16.0
npm or yarn 10.8.1
expo sdk ~48.0.18
mrpmohiburrahman commented 1 month ago

I have made changes and contributed to the doc in this pull requests https://github.com/callstack/react-native-paper/pull/4474