Blank page when logging in from Discourse app on iPhone


(Freddie Haddad) #1

Since this might be the problem, I’ll start with this. I recently launched a new EC2 instance and restored a backup of my Discourse site to the instance and deleted the old one. After that, logging in from the Discourse app for my account doesn’t work.

I tried removing the site from the app and adding it back. I get to the authorize link after signing in and then I get a blank screen after clicking authorize. When I checked the logs, I see:

PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_user_api_keys_on_client_id" DETAIL: Key

I’m not sure what the cause is, but I’m thinking it has something to do with this device already being authorized on the previous site and a server restore?


(Freddie Haddad) #2

After uninstalling the Discourse app and reinstalling, everything is working. It might have been a cache issue, not sure.


#3