#AppwriteException: general_unknown_origin, Invalid Origin

12 messages · Page 1 of 1 (latest)

muted slate
#

Hii all KannaWave I'm trying to build an simple signup page with dart/flutter and appwrite.. So I'm using Android Studio. Added my flutter app and the emulator as android app in the platforms in Appwrite .. updated my build.gradle and pubspec.yaml .. and I still get this error:

I/flutter ( 8232): Error signing up: AppwriteException: general_unknown_origin, Invalid Origin. Register your new client (com.example.blog_project_v2) as a new Android platform on your project console dashboard (403)

Idk what to do ..

hidden phoenix
#

for some reason the package name - com.example.blog_project_v2 doesn't seem to be marked as registered. is the same, exact name used on console? maybe try removing and adding it again?

muted slate
hidden phoenix
#

make sure the values are same in the build.gradle too.
make sure both applicationId and namespace (new, and if exists) have same values.

muted slate
#

it's the same

hidden phoenix
#

does the AndroidManifest have a package flag?

muted slate
#

yes it does

hidden phoenix
#

thats very strange. are you using the correct project id?

muted slate
#

yhhh .. it is!!!
and yes I do ..

hidden phoenix
#

hmm.. out of ideas now. apart from the fact that setSelfSigned is used (which shouldn't be for cloud). not sure if thats an issue. but other than that, outta ideas. sry 😢

muted slate
#

I removed the setSelfSigned and tried it but didnt work .. but thank you a lot for ur time!!!

weary sentinel