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

[BUG] Error "can't parse page number with pageMetaDatastr" with my clippings.txt #263

Open
tiffena opened this issue Sep 20, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@tiffena
Copy link

tiffena commented Sep 20, 2023

Describe the bug

Error "can't parse page number with pageMetaDatastr" when trying to sync my clippings.txt for the first time

Method of syncing

  • [ x ] My Clippings file (please attach file that can be used to recreate issue)

To Reproduce

Steps to reproduce the behaviour:

  1. Go to 'Sync your kindle highlight'
  2. Click on 'Sync'
  3. Click "upload my clipping file", click "Sync now', browse to my clipping.txt file
  4. Errors from Developer Tools console :
    plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n
    eval @ plugin:obsidian-kindle-plugin:1
    plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt.
    Error: Can't parse page number from pageMetadataStr: 的书签
    startSync @ plugin:obsidian-kindle-plugin:303
    plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n
    eval @ plugin:obsidian-kindle-plugin:1
    plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt.
    Error: Can't parse page number from pageMetadataStr: 的书签
    startSync @ plugin:obsidian-kindle-plugin:303
    DevTools failed to load source map: Could not load content for app://obsidian.md/main.js.map: System error: net::ERR_FILE_NOT_FOUND
    plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n {titleLine: '完全失踪手冊', metadataLine: '- 您在第 4 页的书签 | 添加于 2015年3月31日星期二 下午2:25:19', contentLines: ''}
    eval @ plugin:obsidian-kindle-plugin:1
    t.parseRawBlocks @ plugin:obsidian-kindle-plugin:1
    t.readMyClippingsFile @ plugin:obsidian-kindle-plugin:1
    eval @ plugin:obsidian-kindle-plugin:301
    startSync @ plugin:obsidian-kindle-plugin:301
    await in startSync (async)
    onMyClippingsSync @ plugin:obsidian-kindle-plugin:303
    onClick @ plugin:obsidian-kindle-plugin:298
    eval @ plugin:obsidian-kindle-plugin:295
    plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt.
    Error: Can't parse page number from pageMetadataStr: 的书签

Expected behaviour

If unable to parse a particular entry, skip it and proceed to the next

Metadata

  • OS: [Windows]
  • Plugin version [e.g. 1.9.2]
  • Obsidian version [e.g. 1.4.13]
@tiffena tiffena added the bug Something isn't working label Sep 20, 2023
@LindiaC
Copy link

LindiaC commented Oct 10, 2023

I have the same issue. I figured out that if I switch the language to English, it works fine. So the problem may be that the parser cannot parse Chinese strings.

@LindiaC
Copy link

LindiaC commented Oct 11, 2023

I have the same issue. I figured out that if I switch the language to English, it works fine. So the problem may be that the parser cannot parse Chinese strings.

I can give a simple solution to this -- translate all the location and datetime info in My Clipping.txt to English by brute force.
See here for more.

@LindiaC
Copy link

LindiaC commented Dec 11, 2023 via email

@rotello
Copy link

rotello commented Dec 11, 2023

LindiaC you are super kind, but don't worry!
i will just copy paste the txt file into Obsisian. not a big problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants