Back

Invalid Origin Error while using realtime in react native

  • 0
  • Android
  • Web
Pratham
2 Oct, 2023, 12:21

ERROR {"code": 1008, "message": "Invalid Origin. Register your new client (cloud.appwrite.io) as a new Web platform on your project console dashboard"}

TL;DR
The user is experiencing an "Invalid Origin" error while using realtime in react native. They mention that the Appwrite web-sdk is not compatible with React Native. They provide a link to a possible solution but encounter another error regarding 'getItem'. The error suggests registering the new client on the project console dashboard as a new web platform.
Binyamin
2 Oct, 2023, 13:50

Have you added the current web host to your project platforms?

Pratham
2 Oct, 2023, 15:11

Oh thanks but get another error ERROR [TypeError: Cannot read property 'getItem' of undefined]

Pratham
2 Oct, 2023, 15:11
Binyamin
2 Oct, 2023, 15:31

That's is the part that Appwrite web-sdk isn't compatible with ReactNative Check this to see if it could help you

Binyamin
2 Oct, 2023, 15:31

You will need to implement some way to persist the data.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more