Back

Import failed Firebase

  • 0
  • Self Hosted
  • Web
elnur
23 Oct, 2023, 11:26

Hi! I've followed the migration guide to a tee, I've tried two different service accounts. One with full admin role and one with the permissions listed in the guide.

https://appwrite.io/docs/advanced/migrations/firebase#create-api-key

The importer seemed to complete when importing the database but it doesn't work with storage buckets or users.

Errors:

"errors": [ "UtopiaMigrationResourcesAuthUser::__construct(): Argument #11 ($disabled) must be of type bool, null given, called in /usr/src/code/vendor/utopia-php/migration/src/Migration/Sources/Firebase.php on line 217" ]

TL;DR
The user is experiencing an issue with importing Firebase into Appwrite. They have followed the migration guide and tried using different service accounts with full admin roles or the permissions listed in the guide. The importer appeared to complete when importing the database, but it is not working with storage buckets or users. The error message states that there is an issue with the 'disabled' field, which should be a boolean but is receiving null value. A solution mentioned is to add an isNull check for the field.
Drake
23 Oct, 2023, 13:36

Any chance you know the payload for what a user from firebase is?

bradleySchofield
24 Oct, 2023, 08:25

I'll add a isNull check here, We always expect google to send us the 'disabled' field but it appears in your case they are not

bradleySchofield
24 Oct, 2023, 08:26

Now I'm just concerned if there are any other fields they sometimes don't send πŸ€”

Drake
24 Oct, 2023, 12:46

Are you importing into Appwrite cloud?

elnur
24 Oct, 2023, 12:53

Yesterday I tried importing it through a self hosted instance of Appwrite on DigitalOcean one click droplet

elnur
24 Oct, 2023, 12:53

I have since tried to reimplement the database from scratch.

Drake
13 Nov, 2023, 19:42
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