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

Can get API Token #413

Open
FredK27 opened this issue Dec 9, 2024 · 28 comments
Open

Can get API Token #413

FredK27 opened this issue Dec 9, 2024 · 28 comments

Comments

@FredK27
Copy link

FredK27 commented Dec 9, 2024

Wallabager

I am running Wallabag in a docker container. I've gotten the Wallabag iPhone app to use my Client ID, Client Secret, Login and Password to access my saved pages successfully.

I cannot get the Wallbagger Chrome extension to generate an API token. I've tried disabling all of the other extensions that I am running in Chrome and I still can't get an API token.

I am running Wallabag in a docker container and I am using it with traefik. Access to wallabag via https works fine to view my saved pages and to generate the Client ID and Client secret.

I really like this app would would appreciate some help to get the Chrome extension to work. I am running Chrome on the latest version of macOS.

@Simounet
Copy link
Member

Hi there,
Could you open the console (press F12) before clicking on the "Get token" button and let me know if any request from the Network tab returns a code other than 200.
Do you have any error in the Console tab?

@curtosis
Copy link

Maybe helpful in troubleshooting; I'm getting an invalid grant error on v2.5.4 behind Yunohost -- wallabag is returning HTTP 400.

@newillusions
Copy link

I'm seeing the same here, too.

@jnobbe
Copy link

jnobbe commented Dec 26, 2024

+1

I'm getting, Uncaught Error: Attempting to use a disconnected port object at OptionsController.getAppTokenClick (options.js:255:23) and options.js:160 Uncaught Error: Attempting to use a disconnected port object at OptionsController.allowExistCheckClick (options.js:160:23).

I'm trying it on Vivaldi 7.0.3495.26 (Stable channel) stable (64-bit)

@daviddelven
Copy link

Same here (Firefox and also Arc Browser (chromium based)).

@Daviddj13
Copy link

Same here, I´m trying with Edge Navigator.

@Daviddj13
Copy link

Here the message
Issue

@mrpeverill
Copy link

mrpeverill commented Jan 6, 2025

I'm getting the same 'uncaught error: attempting to use a disconnected port object. I've tried Chrome and Vivaldi. Trying to use with app.Wallabag.it

@Daviddj13
Copy link

I finally get it. Try today.

@mrpeverill
Copy link

It worked for me on Chrome. Thanks!

@gregeeh
Copy link

gregeeh commented Jan 8, 2025

I'm getting the same 'uncaught error: attempting to use a disconnected port object. I've tried Chrome and Brave. Any ideas on how to solve would be appreciated.

@Simounet
Copy link
Member

Simounet commented Jan 8, 2025

Hi there, was it a fresh install for all of you?

@gregeeh
Copy link

gregeeh commented Jan 8, 2025

Hi there, was it a fresh install for all of you?

Fresh install of what? Docker install was untouched. Installed the Chrome Extension on different PC's and getting the same error. Continues to work on PC's that had the Extension previously installed.

Hope that answers your question.

@Simounet
Copy link
Member

Simounet commented Jan 8, 2025

Fresh install of the wallabagger addon.

@gregeeh
Copy link

gregeeh commented Jan 8, 2025

Fresh install of the wallabagger addon.

Yes, fresh install of Wallabagger Extension.

@Simounet
Copy link
Member

Simounet commented Jan 8, 2025

For everyone on this topic, could you give me:

  • the OS you're using
  • browser name
  • browser version
  • wallabag API version

@gregeeh
Copy link

gregeeh commented Jan 8, 2025

For everyone on this topic, could you give me:

  • the OS you're using
  • browser name
  • browser version
  • wallabag API version

Windows 11 and Linux Mint
Brave Release Notes v1.73.104 (Dec 19, 2024) and Chrome Version 131.0.6778.205 (Official Build) (64-bit)
API 2.6.10

@jnobbe
Copy link

jnobbe commented Jan 9, 2025

@Simounet , I just tried and got:

Uncaught Error: Attempting to use a disconnected port object
    at OptionsController.getAppTokenClick (options.js:255:23)

Operating System: EndeavourOS
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Vivaldi 7.0.3495.27 (Stable channel) stable (64-bit), revision f9c950389d095d05cf6a3b76e495eb65dfb0cf85
Wallabag: 2.6.10

@Rurik19
Copy link
Collaborator

Rurik19 commented Jan 9, 2025

temporary solution = save setup to file, refresh setup page, load from file, this time error doesn't appear. (don't forget press "checkUrl" again to accept permission request). Checked on Chromium, Vivaldi on Windows 11, (on FF cannot get this error)

@jnobbe
Copy link

jnobbe commented Jan 9, 2025

@Rurik19 's workaround did not work for me. I'm not getting anything in the console now but it is still showing wallabag API token as "Not granted" and highlighting the fields as invalid (I generated a new set of client tokens as well).

@jnobbe
Copy link

jnobbe commented Jan 14, 2025

@Simounet , this may be a minor detail but I want to add that even when I create a new client and just after I release the mouse button from clicking "Get token", the "wallabag API token" message will say "Expired" briefly before changing to "Not granted".

@gregeeh
Copy link

gregeeh commented Jan 15, 2025

temporary solution = save setup to file, refresh setup page, load from file, this time error doesn't appear. (don't forget press "checkUrl" again to accept permission request). Checked on Chromium, Vivaldi on Windows 11, (on FF cannot get this error)

This worked for me. Thanks.

@FredK27
Copy link
Author

FredK27 commented Jan 16, 2025

I tried this again this morning and successfully got the token. The page indicates that the token expires in 59 minutes. Is that normal, and will I need to keep renewing the token every 60 minutes?

@HolgerAusB
Copy link
Contributor

60 minutes is standard and wallabagger should renew it automaticallly

@jnobbe
Copy link

jnobbe commented Jan 20, 2025

Adding this screenshot to the conversation.

I've tried on Windows 11 now as well with the same result. I tried the workaround method as well, still no dice on my end.

This is after opening Options and clicking "Get token", and also "Check URL/Get token". The fields are validating but the token is showing as expired.

Image

@mobilestack
Copy link

still have the same problem for chrome

@mobilestack
Copy link

temporary solution = save setup to file, refresh setup page, load from file, this time error doesn't appear. (don't forget press "checkUrl" again to accept permission request). Checked on Chromium, Vivaldi on Windows 11, (on FF cannot get this error)

after trying this more times, it works now

@ihcbbs
Copy link

ihcbbs commented Feb 24, 2025

经过测试,需要在扩展管理中授权“允许访问文件 URL”
After testing, it is necessary to authorize “Allow access to file URLs” in Extension Manager.

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

No branches or pull requests