question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error - 'source-google-docs: undefined'

See original GitHub issue

I am attempting to implement the latest v2.0.0-beta.1 version. I have the options set as below in the gatsby-config.js

{
      resolve: 'gatsby-source-google-docs',
      options: {
        folders: [
          process.env.FOLDER_ID_SHOWS,
          process.env.FOLDER_ID_NEWS,
          process.env.FOLDER_ID_ARTISTS,
          process.env.FOLDER_ID_ARTWORKS,
        ],
        fields: ['ownedByMe', 'shared'],
        fieldsMapper: { createdTime: 'date' },
        fieldsDefault: { draft: false },
        replaceGoogleImages: true,
        debug: true,
      },
    },
    {
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: ['gatsby-remark-images'],
      },
    },

I have paired down my gatsby-node.js to as basic as your “page” example, yet when I run develop I get this error:

_object: {
    context: { sourceMessage: 'source-google-docs:  undefined' },
    error: 'failed to process https://lh3.googleusercontent.com/UeJWtsJkT0NjS2TV5hSLhyLtkC25mZXbbHg1t_qK4-XalvYiCa9nC0NhTEz_WYn-nrPN2aXFKVn8niORzmvymbN0IGMX5JPHL-1k6brje763FsrEhftd6bQVzN95LcNmRYfXbX-raOTyuj9iMg\n' +
      'Error: C:\\Projects\\loch\\.cache\\gatsby-source-filesystem\\17e4e820615e428840ed66621b0c6d7d\\GoogleDocsImage-https:\\lh3.googleusercontent.com contains invalid WIN32 path characters.',
    text: 'source-google-docs:  undefined',
    level: 'ERROR',
    stack: [],
    docsUrl: 'https://gatsby.dev/issue-how-to'
  },

I assume that when replaceGoogleImages: true, is set that the remote images can not use Gatsby Img component using GatsbyImageSharp* though when I use this setting I can query all the data “without remark ecosystem” from my Google Docs and the source URLs for the images without any errors.

I am not sure how to proceed. Thank you for any help. Something I may be missing?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cedricdelpouxcommented, Feb 26, 2020

I close this issue. Please comment and reopen an other if you need it 😃

1reaction
cedricdelpouxcommented, Feb 19, 2020

I will investigate

Read more comments on GitHub >

github_iconTop Results From Across the Web

stacktraces from async functions break error reporting #24863
Description Error while processing an error generated by a source plugin. Gatsby tries to open an invalid filename from the stack trace.
Read more >
TypeError cannot read property undefined - Gatsby
I am trying to create pages from a JSON file. I keep getting this error. TypeError: Cannot read property 'Layout' of undefined.
Read more >
Untitled
Asphalt cowboys gestorben, Life problem solving quotes, 2012 range rover for sale, ... Background color null css, Record xmlelement undefined.
Read more >
How do I replace text in a spreadsheet with Google Apps Script?
[SOURCE] Google Docs: Inserting Text Boxes and Shapes - GCFLearnFree ... What does "TypeError: Cannot read property '1' of undefined" mean (JavaScript, ...
Read more >
16 Best Administrative Tools For Your Business - MarketSplash
These tools also help eliminate some degree of human error that may occur without an AI-based platform ... Image Source: Google Docs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found