weichenw/obsidian-hypothesis-plugin

Plugin no longer syncing Hypothesis Account

Closed this issue · 6 comments

Hello,

This plugin is no longer syncing my Hypothes.is account, quite randomly. Things I have tried:

  • Reinstalling the plugin
  • Resetting the plugin
  • Manually syncing
  • Automatic sync with restarting
  • Refreshing the API token.

I am using the latest version of the app on Obsidian v.0.12.19.

Any help would be fantastic!

Thanks.

Hi, any errors in the console? I have just tried deleting all the files, then resetting and resyncing. No issues on my end

I have tried on two separate PCs now, on Windows, Linux, and made a new vault, and still no luck.

Console output:

<div tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; outline-width: 0px; flex: 0 0 auto; color: rgb(189, 198, 207); font-family: &quot;dejavu sans mono&quot;, monospace; font-size: 11px; 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(41, 0, 0); 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;"><span class="devtools-link" role="link" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(171, 171, 171); text-decoration: underline; cursor: pointer; word-break: break-all;"><br class="Apple-interchange-newline">parseSyncResponse.ts:30</span> </span><span class="console-message-text" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--error-text-color)  !important;">Uncaught (in promise) <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;"><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">TypeError: Cannot read property '0' of undefined
    at eval (<span class="devtools-link" role="link" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(171, 171, 171); text-decoration: underline; cursor: pointer; word-break: break-all;">VM240 parseSyncResponse.ts:30</span>)
    at Array.reduce (&lt;anonymous&gt;)
    at parseSyncResponse (<span class="devtools-link" role="link" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(171, 171, 171); text-decoration: underline; cursor: pointer; word-break: break-all;">VM240 parseSyncResponse.ts:22</span>)
    at SyncHypothesis.startSync (<span class="devtools-link" role="link" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(171, 171, 171); text-decoration: underline; cursor: pointer; word-break: break-all;">VM239 syncHypothesis.ts:25</span>)
    at async HypothesisPlugin.startSync (<span class="devtools-link" role="link" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(171, 171, 171); text-decoration: underline; cursor: pointer; word-break: break-all;">VM208 main.ts:81</span>)</span></span></span></span></div><div class="" style="box-sizing: border-box; min-width: 0px; min-height: 0px; flex: 0 0 auto; color: rgb(189, 198, 207); font-family: &quot;dejavu sans mono&quot;, monospace; font-size: 11px; 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(41, 0, 0); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span class="monospace" style="display: inline-block; --monospace-font-size: 11px; --monospace-font-family: dejavu sans mono, monospace; --source-code-font-size: 11px; --source-code-font-family: dejavu sans mono, monospace; box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--monospace-font-family); font-size: var(--monospace-font-size)  !important;">

  | eval | @ | parseSyncResponse.ts:30
-- | -- | -- | --
  | parseSyncResponse | @ | parseSyncResponse.ts:22
  | startSync | @ | syncHypothesis.ts:25
  | async function (async) |   |  
  | startSync | @ | main.ts:81
  | eval | @ | main.ts:34

</span></div>�

I have tried on two separate PCs now, on Windows, Linux, and made a new vault, and still no luck.

Based on the console log you provided. It appears that one of your highlights was saved without a title. Hence it was unable to work out what the filename to use to create

@nshilobod Please upgrade to 0.1.12

Please note, if hypothesis highlights without a title will be dropped.

Worked like a charm!! Bless, this tool is great. Thank you for the help!