Back

[SOLVED] account.create() not working in production(react-native assembleRelease)

  • 0
  • Android
  • Accounts
  • Web
sivagowda
26 Jun, 2023, 06:21

I developed a android app(using react-native). here I am creating new user by account.create() method. It works well during development(npx react-native run-android. this will run the app in emulator). But account.create() not working in production(i,e ./gradlew assembleRelease this will create a unsigned apk). All other appwrite queries are working like account.createEmailSession etc accept account.create(). What would be the reason?

TL;DR
The issue was resolved and it was not related to Appwrite. The problem was with using a UUID for generating a unique ID for a new user. The user suggests wrapping the code in try/catch to get the error message. The user also mentions using the web SDK and developing an Android app with React Native. The issue occurs specifically when using the account.create() method in production, but it works fine during development. There is no specific solution provided in the thread.
sivagowda
26 Jun, 2023, 06:22

I am using web sdk

Meldiron
26 Jun, 2023, 08:16

Hey 👋 Very very very hard to tell without having any error message 😬 Could you wrap the code in try/catch, and show the error message on the screen? That would help a lot 🙏

Meldiron
26 Jun, 2023, 08:17

Considering other methods work, I don't have any guess what might be wrong. If it was issue with creating session (login), I would guess it's cookie/localStorage issue. But I cant see readon why register logic should fail.

sivagowda
26 Jun, 2023, 15:13

The issue got resolved. That's actually not a appwrite problem. Its due to uuid which I was using for generating unique id for new user.

sivagowda
26 Jun, 2023, 15:13

Thank YOu

Drake
26 Jun, 2023, 18:43

[SOLVED] account.create() not working in production(react-native assembleRelease)

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