radio4000 / migrate-tool

A website for managing a Radio4000 channel migration, from firebase (realtime) to supabase
https://migrate.radio4000.com/
0 stars 0 forks source link

Can't import radio from Firebase #49

Closed oskarrough closed 2 years ago

oskarrough commented 2 years ago

It says success but...

image

there's an error

image

oskarrough commented 2 years ago

Works locally though. The API at https://api.radio4000.com/api/import/firebase-realtime throws 500:

[POST] /api/import/firebase-realtime
14:30:15:34
running
Error migrating Error: Called end on pool more than once
    at BoundPool.end (/var/task/node_modules/pg-pool/index.js:399:19)
    at migrate (/var/task/.next/server/chunks/648.js:79:107)

Potential quick fix https://github.com/radio4000/api/commit/1d7e565474aa6145308c9797e7f486a98a859555

oskarrough commented 2 years ago

Switched beta.radio4000.com to use the second "beta" Supabase instance. It's already set up to use Firebase prod, as the api.radio4000.com, as far as I can tell.

Still, now I'm getting Invalid token: signature is invalid', status: 401 from the firebase-realtime endpoint. Not sure which key is wrong..

oskarrough commented 2 years ago

Worked for me a couple of days ago