-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection gets immediately revoked after authorisation #1182
Comments
Could you add a little bit more context, and ideally link example source code, where this happens? Thanks. |
I'm not at the point of trying to do anything with it yet, Just following the getting started guide and got to here (https://remotestoragejs.readthedocs.io/en/latest/getting-started/connect-widget.html) and saw errors instead of the instant gratification I was hoping for. =) My code looks like:
This is running in a create-react-app running on http://localhost:3000 |
Hi. I think it's because of the line
That will trigger sync requests to the root directory, which the app doesn't have access for, because it only claimed access to the Try |
Maybe the library should give a proper error message when trying to enable caching for a category that hasn't been claimed access for. That way it wouldn't even make the network requests that result in a 401 response in the first place. |
Thanks @galfert ! You were correct, it's working now. A better error would definitely be useful. Also when I read the documentation (https://remotestoragejs.readthedocs.io/en/latest/getting-started/initialize-and-configure.html#configuring-caching) when it talked about paths I assumed it was talking about the path in the url for the page, similar to how cookies can be set for sub-paths. I'm sure the difference is obvious for people familiar with remote storage, but others like me who are looking at it for the first time may be similarly confused. Really interesting project though, I'm keen to see what I can do with it! Regards, |
I'm using the remotestorage-widget. Auth appears to work but then I get an expired or revoked message.
These are the logs:
The text was updated successfully, but these errors were encountered: