passbolt / passbolt_api

Passbolt Community Edition (CE) API. The JSON API for the open source password manager for teams!
https://passbolt.com
GNU Affero General Public License v3.0
4.73k stars 311 forks source link

Chrome Plugin always shows "failed to fetch" and does not function #482

Closed finsterwalder closed 1 year ago

finsterwalder commented 1 year ago

ISSUE NAME

What you did

I start the Chrome Browser on my MacBook. I click the Passbolt Extension Icon in the toolbar

What happened

I get a message saying "failed to fetch" (see screenshot). Screenshot 2023-03-27 at 15 57 24

What you expected to happen

A dialog where I can enter my password to log into my Passbolt account

I can then click on the Passbolt icon, which opens the passbolt website and starts a recovery (enter your email). When I then click on the Icon again, I get a login dialog.

Gamabunta57 commented 1 year ago

Hello @finsterwalder 👋 !

Sorry to hear that you encounter issues with Passbolt. So for information a "failed to fetch" error happens when a request to a server is done and fails somehow (for many possible reasons). I would like to know more about the situation so we can help better.

Also, if you still encounter this issue, I would be glad to have a look at the logs of the extension. Here's a procedure to get them if you want:

This will export all the messages displayed in this console in a file. If you can share it, it would help us a lot.

finsterwalder commented 1 year ago

I could share the log, but would not like to do it publicly. Is there a way how I can share it privately?

Gamabunta57 commented 1 year ago

You can send it to support@passbolt.com and we'll a look at it.

Gamabunta57 commented 1 year ago

Hey @finsterwalder

Thank you for sending us the logs. Apparently, according to what it is said, the browser is blocking the request due to CORS restriction. The error I see is that there are pre-flight requests made to ensure requests can be made, and on the server responses, there is no ACAO headers in it.

The thing is that there is no update on our side that should change that and I couldn't reproduce the issue as well.

Something could be set on your browser or machine that changes the behaviour. So I wonder, on your browser profile, do you have others extensions installed or do you have anti-viruses maybe ? Those can alter the browser behaviour and provokes that kind of errors (it could be something else of course, I'm still investigating on this one).

Gamabunta57 commented 1 year ago

Hey :wave:

Where you able to use Passbolt meanwhile, or are you still facing issues ?

finsterwalder commented 1 year ago

I'm using two plugins that could interfere with traffic (uBlock origin and I don't care about cookies), but passbolt.com is whitelisted in both of them. I still see the problem, when I click the passbolt icon on the toolbar. I then click passbolt, which opens the passbolt signup page. I then click the toolbar icon again and get a login form in the opened windows. Clicking the icon once again also gives me the login inside of the addon dialog. So for some reason the problem appears, when I try to access passbolt from an empty page or some other opened page. When I'm already on the cloud.passbolt.com page, it works. It's a little annoying, but usable...

Gamabunta57 commented 1 year ago

Hello @finsterwalder and sorry for the late answer.

I tried to reproduce the issue with the extensions installed. I couldn't. But, for the sake of making sure it's not them acting as a blocker, is it possible for you to try with these extension disabled (maybe you've already tried) and see if it behaves the same?

finsterwalder commented 1 year ago

Even when all plugins but Passbolt are disabled, it does not work.

garrettboone commented 1 year ago

@finsterwalder Does this behavior occur even after the extension is uninstalled and an account recovery (reinstall) is performed?

finsterwalder commented 1 year ago

Yes, I did that before (I think while plugins were enabled, though). I will try that without plugins and report back here...

Gamabunta57 commented 1 year ago

Hello 👋

Do you have any news about this topic by any chance?

finsterwalder commented 1 year ago

No update. I have my workaround and I'm currently not willing to invest any more time. If no other customers have this problem, then it may be something on my machine?!

Gamabunta57 commented 1 year ago

Ok. As there is no new users with this problem, I'll do as you said, closing the ticket. Feel free of course to re-open it if you have any new elements on that topic.