Graphite-Docs / graphite

Encrypted, secure, user-owned productivity suite
https://graphitedocs.com
GNU General Public License v3.0
591 stars 92 forks source link

Bug: If Pro account creation fails on post to server, no post should be made to Gaia #169

Open polluterofminds opened 5 years ago

polluterofminds commented 5 years ago

Currently, it's possible to get into a state where no data loads. If a user creates a new Graphite Pro account and that post to the Graphite server fails, the Gaia file with the account data is still posted. This file is used to indicate whether a call should be made to the server. So the presence of that file means that a call will be made to the server where no data will be returned.

That all is OK. But if the failure is somehow due to CORS, that call to the server will never return and the state will be stuck pending.