lc0rp / KeepSidian

MIT License
5 stars 1 forks source link

Cannot retrieve token #1

Open ms3056 opened 2 weeks ago

ms3056 commented 2 weeks ago

I am getting this error in the console when I try to retrieve my token.

<html>
<body>
<!--StartFragment--><div aria-expanded="true" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; outline-width: 0px; flex: 0 0 auto; color: rgb(227, 227, 227); font-family: monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(78, 53, 52); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span class="source-code" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--source-code-font-family); white-space: pre-wrap; font-size: var(--source-code-font-size) !important; line-height: 1.2;"><span class="console-message-anchor" style="box-sizing: border-box; min-width: 0px; min-height: 0px; float: right; text-align: right; max-width: 100%; margin-left: 4px;"><button class="devtools-link text-button link-style invalid-link" tabindex="-1" title="app://obsidian.md/plugin:keepsidian:157378" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; color: var(--text-disabled); background: none; flex: 0 0 auto; white-space: nowrap; text-decoration: none; outline-offset: 2px; outline: none; cursor: pointer;"><br class="Apple-interchange-newline">plugin:keepsidian:157378</button> </span><span class="console-message-text" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-error-text-color) !important;"><span class="object-value-error source-code" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--source-code-font-family); white-space: pre-wrap; font-size: var(--source-code-font-size) !important; line-height: 1.2;">Executable doesn't exist at C:\Users\m3n7qv\AppData\Local\ms-playwright\chromium-1124\chrome-win\chrome.exe
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     npx playwright install                                              ║
║                                                                         ║
║ &lt;3 Playwright Team                                                      ║
╚═════════════════════════════════════════════════════════════════════════╝
    at captureRawStack (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:112733:21)
    at captureLibraryStackTrace (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:112739:21)
    at BrowserType._wrapApiCall (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:149701:69)
    at BrowserType.launch (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:155112:27)
    at eval (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:157411:42)
    at eval (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:157456:9)
    at KeepToObsidianPlugin.getOAuthToken (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:157408:12)
    at async KeepToObsidianPlugin.retrieveToken (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:157361:26)
    at async eval (C:\Users\username\AppData\Local\Obsidian\plugin:keepsidian:157482:7)</span></span></span></div><div class="" role="group" style="box-sizing: border-box; min-width: 0px; min-height: 0px; flex: 0 0 auto; color: rgb(227, 227, 227); font-family: monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(78, 53, 52); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span class="monospace stack-preview-container width-constrained" style="display: inline-block; --monospace-font-size: 12px; --monospace-font-family: monospace; --source-code-font-size: 12px; --source-code-font-family: monospace; width: 550px; box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--monospace-font-family); font-size: var(--monospace-font-size) !important;">
  | retrieveToken | @ | plugin:keepsidian:157378
-- | -- | -- | --

</span></div><!--EndFragment-->
</body>
</html>
ms3056 commented 2 weeks ago

I believe this is spam - please remove those two links - I have seen the same comments in other projects where issues are posted.

lc0rp commented 2 weeks ago

What two links?

Regarding the original issue, please clarify the following so I can try to reproduce the issue and respond

  1. What OS are you using?
  2. What browser do you usually use?

Thanks

lc0rp commented 1 week ago

Checking in again.

I guess you saw some links on your end that you ultimately deleted? I only see your original question and your comment about spam.

Were you able to retrieve the token?

cashea commented 1 week ago

Cannot retrieve token.

Chrome opens, but it does not appear to be my version of Chrome, more like Chromium.

Opens a "Could not sign you in page"

"This browser or app may not be secure. Try using a different browser. If you're already using a supported browser, you can try again to sign in."

ms3056 commented 1 week ago

Hi - the reference to the two links was two spam links in this thread - it seems GitHub removed them - not related to your plugin.

Windows 11.

I tried again, and after clicking the Retrieve button I waited a while and it then opens a Chromium Browser, even though Chrome is my default.

I copied the link over, and opened it in Chrome, and this happens forever after I enter my credentials:

image

ms3056 commented 1 week ago

It opens a Chromium browser and this is what I see:

image

stark1tty commented 6 days ago

I am also having the insecure browser issue and can not retrieve the token, we also cannot manually put in an API token which is a bit of a pain. I am using Firefox as default browser on Linux (Ubuntu 24). However, when I click on the get tokem button it forces ungoogled chromium to pop up. I also tried to set Chrome briefly as default and it ignored that.