omnivore-app / logseq-omnivore

Logseq plugin to fetch articles and highlights from Omnivore
MIT License
298 stars 34 forks source link

cannot read properties of null (reading uuid) #4

Closed trashhalo closed 2 years ago

trashhalo commented 2 years ago

Button doesnt seem to work for me. I can tell auth is right cause I the graphql requests are going through in the network panel. But no highlights are created and an error dialog comes up that says "cannot read properties of null (reading uuid)" I tried to create a screenshot but it was too fast.

Not sure if it is helpful but here is the response of the last graphql call before it errors.


  query GetArticle(
    $username: String!
    $slug: String!
    $includeFriendsHighlights: Boolean
  ) {
    article(username: $username, slug: $slug) {
      ... on ArticleSuccess {
        article {
          ...ArticleFields
          content
          highlights(input: { includeFriends: $includeFriendsHighlights }) {
            ...HighlightFields
          }
          labels {
            ...LabelFields
          }
        }
      }
      ... on ArticleError {
        errorCodes
      }
    }
  }

  fragment ArticleFields on Article {
    id
    title
    url
    author
    image
    savedAt
    createdAt
    publishedAt
    contentReader
    originalArticleUrl
    readingProgressPercent
    readingProgressAnchorIndex
    slug
    isArchived
    description
    linkId
    state
  }

  fragment HighlightFields on Highlight {
    id
    shortId
    quote
    prefix
    suffix
    patch
    annotation
    createdByMe
    updatedAt
    sharedAt
  }

  fragment LabelFields on Label {
    id
    name
    color
    description
    createdAt
  }
{"data":{"article":{"article":{"id":"7301a587-ea52-4be9-9904-bb71347ef222","title":"This creative exercise turns disorganized thoughts into gold","url":"https://www.fastcompany.com/90755854/this-creative-exercise-turns-disorganized-thoughts-into-gold?s=09","author":"Diana Shi","image":"https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/wp-cms/uploads/2022/06/p-1-this-creative-exercise-turns-disorganized-thoughts-into-gold.jpg","savedAt":"2022-06-21T09:36:50.224Z","createdAt":"2022-06-21T09:36:50.224Z","publishedAt":"2022-06-09T13:00:45.000Z","contentReader":"WEB","originalArticleUrl":"https://www.fastcompany.com/90755854/this-creative-exercise-turns-disorganized-thoughts-into-gold?s=09","readingProgressPercent":19.539462706490905,"readingProgressAnchorIndex":12,"slug":"this-creative-exercise-turns-disorganized-thoughts-into-gold-181859f2c30","isArchived":false,"description":"This method can help you untangle your to-do list from your big, passionate ideas.","linkId":"7301a587-ea52-4be9-9904-bb71347ef222","state":"SUCCEEDED","content":"<DIV class=\"page\" id=\"readability-page-1\"> <section role=\"main\"><div id=\"post__wrapper-90755854\" data-id=\"90755854\" data-slug=\"this-creative-exercise-turns-disorganized-thoughts-into-gold\"><article><p>Do you have days where you’re facing a huge stack of assignments, but you find yourself unable to get rid of all the thoughts buzzing around in your brain? It might be time to try a brain dump.</p><div><p>A brain dump is when you gather all your disorganized thoughts and, appropriately, <i>dump </i>them onto a blank canvas. This exercise allows you to clear your mind and pave the way for new, creative ideas. You let all your thoughts tumble onto paper, and see what you come up with after the process.</p><p>To try it yourself, start with a completely blank slate, like a piece of paper or a new memo note on your phone.</p><p>Start recording everything—from your nagging to-do list, to budding creative ideas for your business—onto the paper or screen. You might write down a partial grocery list, or ideas you have for redesigning your house. Then, once you have a list of all the brain clutter spilled out in front of you, take a moment to double-check if there are any lurking thoughts you forgot to include. Maybe there is an upcoming but low-priority deadline you forgot about, or a networking follow-up you dropped the ball on.</p></div><div><p>Once everything is written down, start to rank each idea or task by priority and category. You might try organizing work and personal tasks, and indicating if they’re long-term or short-term projects. Finally, start to consider which part of your brain dump can be assigned to yourself at this very moment, to other people, or to tackle yourself at a later point.</p><p><a href=\"https://littlecoffeefox.com/brain-dump/\" target=\"_blank\" rel=\"noopener noreferrer\">Some productivity bloggers</a> have described the exercise as a “release valve.” <a href=\"https://www.linkedin.com/pulse/how-create-brain-dump-creative-projects-michelle-e-farley/\" target=\"_blank\" rel=\"noopener noreferrer\">Others</a> emphasize that a brain dump should be a free-flowing and nonjudgmental process. So try to refrain from editing. Instead think of it as a way to generate creative material for later.</p><p>Here are three reasons why this practice can be so effective.</p></div><div><h2><strong>1. Brain dumps stoke creativity</strong></h2><p>Contributor Aytekin Tank says he uses brain dumps as a means to tap into his creativity, as leader and founder of a company. “The truth is, our mind isn’t at its best or at its most creative when it’s being held under the weight of thousands of tasks and projects,” he <a href=\"https://www.fastcompany.com/90713365/a-brain-dump-may-be-trick-you-need-to-quiet-that-chattering-mind\" target=\"_blank\" rel=\"noopener noreferrer\">writes.</a></p><p>Doing a brain dump can free up mental real estate by helping address <a href=\"https://www.fastcompany.com/90537226/believing-these-3-myths-about-multitasking-may-be-ruining-your-productivity\" target=\"_blank\" rel=\"noopener noreferrer\">attention residue</a>, or leftover preoccupations from your most recent and unfinished task.”Keeping these ongoing mental lists leaves little room for the spark of new ideas to flourish,” Tank points out.</p><p>The act of writing thoughts down in a space outside your temporary mental archives, makes it easier to see the bigger picture. Research shows that just <i>attempting </i>to multitask can be harmful. Author and computer science professor Cal Newport <a href=\"https://www.fastcompany.com/3057192/these-are-the-long-term-effects-of-multitasking\" target=\"_blank\" rel=\"noopener noreferrer\">told <i>Fast Company</i></a> in 2016 about how without putting aside dedicated time for focused work, people convince themselves “shallow tasks” are real work. “Many people have convinced themselves that it’s crucial that they are always connected, both professionally and socially, but the reality is that this requirement is self-imposed,” he explains.</p></div><div><p>In Newport’s book <a href=\"https://bookshop.org/books/deep-work-rules-for-focused-success-in-a-distracted-world/9781455586691\" target=\"_blank\" rel=\"noopener noreferrer\"><i>Deep Work</i></a><i>, </i>he discusses how when you hop from one task to the other, you can weaken your focus, making it increasingly more difficult to jump into deep-work projects over time. Doing a brain dump can be a first step at making sense of the busy rush of tasks that fill our lives.</p><h2><strong>2. Brain dumps help us make sense of complicated feelings</strong></h2><p>Ultimately, the method has done its job when it helps you to organize your confused thoughts. Think of your tangled thoughts as a ball of yarn. If you don’t have time to untangle them at the current moment, you can do a brain dump instead, and throw the tangled mess into a separate receptacle for safekeeping.</p><p>Research into similar activities—like filling out a diary—suggests these endeavors help people cope with traumatic events. A study from the <a href=\"https://www.researchgate.net/publication/253937612_Expressive_Writing_Emotional_Upheavals_and_Health\" target=\"_blank\" rel=\"noopener noreferrer\">University of Texas</a> with North Carolina State University suggested individuals who have experienced trauma can use expressive writing to tamp down distracting thoughts, as well avoid unhealthy behaviors.</p></div><div><h2>3. Brain dumps help us reconnect with our passions</h2><p>When your mind is given leeway to calm down after a “brain dump,” the extra mental space can be great for focusing on what you love. Work and its constantly growing demands can make it extremely hard to break out of a cycle of busyness. And when we’re too overloaded with tasks, it can lead to burnout, not to mention <a href=\"https://www.fastcompany.com/90586725/why-doing-too-much-is-killing-your-passion-for-work\" target=\"_blank\" rel=\"noopener noreferrer\">a disconnection from your true passions</a>.</p><p>Burnout is <a href=\"https://www.mayoclinic.org/healthy-lifestyle/adult-health/in-depth/burnout/art-20046642\" target=\"_blank\" rel=\"noopener noreferrer\">linked with symptoms</a> such as lowered productivity and feelings of losing your identity. Moreover, a worker who feels burnt out may feel disillusioned in their job or feel like even meeting their goals is no accomplishment. These sentiments make it easier to lose sight of why you took on a certain role, or why you feel empowered doing a certain project. By trying a brain dump, you can more clearly visualize what’s standing in the way of doing what you love.</p></div></article></div></section> <section role=\"main\"><div id=\"post__wrapper-90755854\" data-id=\"90755854\" data-slug=\"this-creative-exercise-turns-disorganized-thoughts-into-gold\"><div><p><cite><a href=\"https://www.fastcompany.com/user/dshi\">By <!-- -->Diana Shi</a></cite><span>4 minute<!-- --> Read</span></p></div><article><p>Do you have days where you’re facing a huge stack of assignments, but you find yourself unable to get rid of all the thoughts buzzing around in your brain? It might be time to try a brain dump.</p><div><p>A brain dump is when you gather all your disorganized thoughts and, appropriately, <i>dump </i>them onto a blank canvas. This exercise allows you to clear your mind and pave the way for new, creative ideas. You let all your thoughts tumble onto paper, and see what you come up with after the process.</p><p>To try it yourself, start with a completely blank slate, like a piece of paper or a new memo note on your phone.</p><p>Start recording everything—from your nagging to-do list, to budding creative ideas for your business—onto the paper or screen. You might write down a partial grocery list, or ideas you have for redesigning your house. Then, once you have a list of all the brain clutter spilled out in front of you, take a moment to double-check if there are any lurking thoughts you forgot to include. Maybe there is an upcoming but low-priority deadline you forgot about, or a networking follow-up you dropped the ball on.</p></div><div><p>Once everything is written down, start to rank each idea or task by priority and category. You might try organizing work and personal tasks, and indicating if they’re long-term or short-term projects. Finally, start to consider which part of your brain dump can be assigned to yourself at this very moment, to other people, or to tackle yourself at a later point.</p><p><a href=\"https://littlecoffeefox.com/brain-dump/\" target=\"_blank\" rel=\"noopener noreferrer\">Some productivity bloggers</a> have described the exercise as a “release valve.” <a href=\"https://www.linkedin.com/pulse/how-create-brain-dump-creative-projects-michelle-e-farley/\" target=\"_blank\" rel=\"noopener noreferrer\">Others</a> emphasize that a brain dump should be a free-flowing and nonjudgmental process. So try to refrain from editing. Instead think of it as a way to generate creative material for later.</p><p>Here are three reasons why this practice can be so effective.</p></div><div><h2><strong>1. Brain dumps stoke creativity</strong></h2><p>Contributor Aytekin Tank says he uses brain dumps as a means to tap into his creativity, as leader and founder of a company. “The truth is, our mind isn’t at its best or at its most creative when it’s being held under the weight of thousands of tasks and projects,” he <a href=\"https://www.fastcompany.com/90713365/a-brain-dump-may-be-trick-you-need-to-quiet-that-chattering-mind\" target=\"_blank\" rel=\"noopener noreferrer\">writes.</a></p><p>Doing a brain dump can free up mental real estate by helping address <a href=\"https://www.fastcompany.com/90537226/believing-these-3-myths-about-multitasking-may-be-ruining-your-productivity\" target=\"_blank\" rel=\"noopener noreferrer\">attention residue</a>, or leftover preoccupations from your most recent and unfinished task.”Keeping these ongoing mental lists leaves little room for the spark of new ideas to flourish,” Tank points out.</p><p>The act of writing thoughts down in a space outside your temporary mental archives, makes it easier to see the bigger picture. Research shows that just <i>attempting </i>to multitask can be harmful. Author and computer science professor Cal Newport <a href=\"https://www.fastcompany.com/3057192/these-are-the-long-term-effects-of-multitasking\" target=\"_blank\" rel=\"noopener noreferrer\">told <i>Fast Company</i></a> in 2016 about how without putting aside dedicated time for focused work, people convince themselves “shallow tasks” are real work. “Many people have convinced themselves that it’s crucial that they are always connected, both professionally and socially, but the reality is that this requirement is self-imposed,” he explains.</p></div><div><p>In Newport’s book <a href=\"https://bookshop.org/books/deep-work-rules-for-focused-success-in-a-distracted-world/9781455586691\" target=\"_blank\" rel=\"noopener noreferrer\"><i>Deep Work</i></a><i>, </i>he discusses how when you hop from one task to the other, you can weaken your focus, making it increasingly more difficult to jump into deep-work projects over time. Doing a brain dump can be a first step at making sense of the busy rush of tasks that fill our lives.</p><h2><strong>2. Brain dumps help us make sense of complicated feelings</strong></h2><p>Ultimately, the method has done its job when it helps you to organize your confused thoughts. Think of your tangled thoughts as a ball of yarn. If you don’t have time to untangle them at the current moment, you can do a brain dump instead, and throw the tangled mess into a separate receptacle for safekeeping.</p><p>Research into similar activities—like filling out a diary—suggests these endeavors help people cope with traumatic events. A study from the <a href=\"https://www.researchgate.net/publication/253937612_Expressive_Writing_Emotional_Upheavals_and_Health\" target=\"_blank\" rel=\"noopener noreferrer\">University of Texas</a> with North Carolina State University suggested individuals who have experienced trauma can use expressive writing to tamp down distracting thoughts, as well avoid unhealthy behaviors.</p></div><div><h2>3. Brain dumps help us reconnect with our passions</h2><p>When your mind is given leeway to calm down after a “brain dump,” the extra mental space can be great for focusing on what you love. Work and its constantly growing demands can make it extremely hard to break out of a cycle of busyness. And when we’re too overloaded with tasks, it can lead to burnout, not to mention <a href=\"https://www.fastcompany.com/90586725/why-doing-too-much-is-killing-your-passion-for-work\" target=\"_blank\" rel=\"noopener noreferrer\">a disconnection from your true passions</a>.</p><p>Burnout is <a href=\"https://www.mayoclinic.org/healthy-lifestyle/adult-health/in-depth/burnout/art-20046642\" target=\"_blank\" rel=\"noopener noreferrer\">linked with symptoms</a> such as lowered productivity and feelings of losing your identity. Moreover, a worker who feels burnt out may feel disillusioned in their job or feel like even meeting their goals is no accomplishment. These sentiments make it easier to lose sight of why you took on a certain role, or why you feel empowered doing a certain project. By trying a brain dump, you can more clearly visualize what’s standing in the way of doing what you love.</p></div></article></div><div id=\"MyQ2uJQ0\"><p>Sorry, the video player failed to load.<span></span>(Error&nbsp;Code:&nbsp;104153)</p></div></section>\n \n<!-- fastcompany.com --> \n</DIV>","highlights":[{"id":"8961caf8-f332-475e-a4b1-570d7308c992","shortId":"Brqf9EXv","quote":"A brain dump is when you gather all your disorganized thoughts and, appropriately, dump them onto a blank canvas. This exercise allows you to clear your mind and pave the way for new, creative ideas. You let all your thoughts tumble onto paper, and see what you come up with after the process.","prefix":"","suffix":"To try it yourself, start with a completely blank slate, like a piece of paper or a new memo note on your phone.","patch":"@@ -304,32 +304,52 @@\n ry a brain dump.\n+%3Comnivore_highlight%3E\n A brain dump is \n@@ -617,32 +617,53 @@\n ter the process.\n+%3C/omnivore_highlight%3E\n To try it yourse\n","annotation":null,"createdByMe":true,"updatedAt":"2022-06-21T17:11:20.085Z","sharedAt":null}],"labels":null}}}}
pararang commented 2 years ago

I'm also experiencing the same issue. Logseq v0.7.5, MacOS Monterey v12.3.1 (Apple M1)

ghost commented 2 years ago

hey! Thanks for the plugin. Tried 2 different API's, in Omnivore.app they're showing as being accessed but also get the same error: TypeError: Cannot read properties of null (reading 'uuid') Logseq = 0.7.5 macOS = 12.4

wingy3181 commented 2 years ago

I noticed the following in the README.md https://github.com/omnivore-app/logseq-omnivore#i-got-typeerror-cannot-read-properties-of-null-readinguuid-when-trying-to-fetch-articles Did you guys try that?

trashhalo commented 2 years ago

I noticed the following in the README.md https://github.com/omnivore-app/logseq-omnivore#i-got-typeerror-cannot-read-properties-of-null-readinguuid-when-trying-to-fetch-articles Did you guys try that?

Was version 1.3.0. Upgraded to 1.4.0 confirmed it fixed my issue.

pararang commented 2 years ago

https://github.com/omnivore-app/logseq-omnivore#i-got-typeerror-cannot-read-properties-of-null-readinguuid-when-trying-to-fetch-articles

cool, it solves. thank you @wingy3181