Skip to content
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

Error: Unable to save: failed to fetch #257

Open
emekaokoye opened this issue Nov 8, 2018 · 6 comments
Open

Error: Unable to save: failed to fetch #257

emekaokoye opened this issue Nov 8, 2018 · 6 comments

Comments

@emekaokoye
Copy link

After signing in with my WebID from solid.community, I tried to "Save As" a web page but got an error: Unable to save: failed to fetch.

My dokieli version is 03.21 and the web browser is chrome.

I also cleared old credentials from my browser and repeated the steps but the error still persists.

What should I do?
dokieli-error

@csarven
Copy link
Member

csarven commented Nov 8, 2018

@emekaokoye, thanks for reporting! I presume you're using the dokieli extension (from Chrome store) and not just a webpage with existing dokieli embedded.

When you say you sign in with your WebID, did you mean that you entered the URI in the Sign in dialog or did you go through the OpenID Connection authentication process (and selected your identity provider)?

Besides the authentication issue, you probably already have a folder with name public and one possible issue with what you're attempting to do is that, it is trying to create a file with the same name. AFAIK, that will not succeed that way. We can come back to this point.. so, for the time being just test with something like https://.... /public/foo

@kidehen, you mentioned that you had to logout/in again to make it work. Can you elaborate? I haven't experienced this issue. Is the session being cleared somehow between states? When is the exact moment that it is gone?

I certainly would like to replicate the issue.

@kidehen
Copy link

kidehen commented Nov 8, 2018

@csarven ,
Scenario to leads to the save failure on my end:

  1. Interact with some doc via dokie.li extension
  2. Go about my normal business
  3. Stumble across a new doc of interest
  4. Click on dokie.li extension icon
  5. Attempt "Save As"
  6. Failure happens here
  7. Logout
  8. Login
  9. Repeat "Save As" attempt
  10. Works

Note this happens from:
Google Chrome is up to date
Version 71.0.3578.30 (Official Build) beta (64-bit)

/cc @smalinin @emekaokoye

@emekaokoye
Copy link
Author

emekaokoye commented Nov 8, 2018 via email

@emekaokoye
Copy link
Author

emekaokoye commented Nov 9, 2018 via email

@csarven
Copy link
Member

csarven commented Nov 11, 2018

@emekaokoye Thanks for the check. I meant that public is your directory and foo is a file that you want to save to. So, it souldn't be a directory. Simply just make sure that the destination it wants to save to should be a file and not a directory (double check to see if it ends with a slash). Maybe there is a bug somewhere here but let's iron this bit out. Try saving to public/bar - don't need to do anything in addition to that.

@csarven
Copy link
Member

csarven commented Nov 11, 2018

@kidehen re:

Go about my normal business

I need to confirm this but what I highly suspect that's happening is that the OIDC token is no longer valid but dokieli makes you think that you're still signed in eg. showing your avatar/name in the menu. I'll look into reissuing auth and updating the UI to reflect the 'real' state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants