standardnotes / forum

Support from other community members. For 1-on-1 help, please contact help@standardnotes.com.
https://forum.standardnotes.org
196 stars 9 forks source link

Offline subscription sometimes does not work with self-hosted backend + web app #1809

Closed PeterCxy closed 1 year ago

PeterCxy commented 2 years ago

2022-04-15T12:59:54,881532494-04:00 2022-04-15T12:53:48,124566093-04:00

There seems to be a sort of race condition in the code that verifies offline subscriptions. With a self-hosted backend and web app, the order in which the offline subscription api (https://api.standardnotes.com/v1/offline/features) and native roles / features api (/v1/users/<uuid>/features) returns determines whether subscription features are available in the UI, and this order seems somewhat random. In my case, the official offline subscription api ends up returning slightly faster the roles api most of the time, rendering subscription features unavailable.

moughxyz commented 2 years ago

So you have a paid "offline" subscription with a self-hosted backend—what role do you have on your server for your account? Just the basic role, or did you add other roles?

PeterCxy commented 2 years ago

Just the basic role.

myreli commented 1 year ago

It seems like this issue is unlikely to receive more interaction, so I'll close it.

(This is a community effort to triage older issues in the forum. If this was a mistake please feel free to re-open the issue.)