bandantonio / obsidian-apple-books-highlights-plugin

Import highlights and notes from your Apple Books to Obsidian
https://obsidian.md/plugins?id=apple-books-import-highlights
MIT License
54 stars 1 forks source link

[Bug] ERR_CHILD_PROCESS_STDIO_MAXBUFFER error when trying to import highlights #11

Closed jun6lee closed 8 months ago

jun6lee commented 8 months ago

Description the bug A clear and concise description of what the bug is.

Also include the following details:

General information

To Reproduce Steps to reproduce the behavior:

  1. Go to '...' Apple Books - Import Highlights -- Single Book
  2. A blank popup appears, doesn't show my books
  3. See error

Expected behavior Highlights come through.

Screenshots

Screenshot 2024-03-15 at 16 53 36
bandantonio commented 8 months ago

@jun6lee I've updated your request according to the bug report template. Please fill in the required information. Thank you

jun6lee commented 8 months ago

Updated in original comment

jun6lee commented 8 months ago

Have tried this on a different machine and with a new vault. Same issue.


Tried another (inferior) plugin that does the same, (to isolate it's not my Apple Books data that's a problem) -- that works.


So I think it's some limitation exceeded within this one.

jun6lee commented 8 months ago

I think it's a node issue not handling my quantity? This is the error caught when trying to get the list of books:

Importing a single book > where it shows the popup where books would show, but unpopulated.

const captureLargerStackTrace = hideStackFrames(
  function captureLargerStackTrace(err) {
    const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
    if (stackTraceLimitIsWritable) {
      userStackTraceLimit = Error.stackTraceLimit;
      Error.stackTraceLimit = Infinity;
    }
    ErrorCaptureStackTrace(err);
    // Reset the limit
    if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit;

    return err;
  });
jun6lee commented 8 months ago

That said, it's how it's handled, as the plugin I was using prior still works: https://github.com/bingryan/obsidian-ibook-plugin

jun6lee commented 8 months ago

Do you have the bandwidth o help?

bandantonio commented 8 months ago

Hi. I'm a bit busy with some work stuff, but I hope to release a fix close to the end of the week.

There are also some strange bugs reported by users in the Obsidian's forum, I believe it worth fixing them as well.