Coder Social home page Coder Social logo

Comments (5)

gatsbot avatar gatsbot commented on June 12, 2024
Fails
🚫

Danger failed to run /app/peril-downloaded-gatsbyjs/gatsby@peril/rules/emptybody.ts.

Error TypeError

Cannot read property 'trim' of null
TypeError: Cannot read property 'trim' of null
    at Object.exports.emptybody (/app/peril-downloaded-gatsbyjs/gatsby@peril/rules/emptybody.ts:12:14)
    at Object.exports.default (/app/peril-downloaded-gatsbyjs/gatsby@peril/rules/emptybody.ts:17:13)
    at Object.<anonymous> (/app/node_modules/danger/distribution/runner/runners/inline.js:147:60)
    at step (/app/node_modules/danger/distribution/runner/runners/inline.js:32:23)
    at Object.next (/app/node_modules/danger/distribution/runner/runners/inline.js:13:53)
    at /app/node_modules/danger/distribution/runner/runners/inline.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/app/node_modules/danger/distribution/runner/runners/inline.js:3:12)
    at Object.exports.runDangerfileEnvironment (/app/node_modules/danger/distribution/runner/runners/inline.js:105:136)
    at runDangerAgainstFileInline (/app/out/danger/danger_runner.js:56:37)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Dangerfile

 7| maintainers resolve your issue.\
 8| `
 9| 
10| export const emptybody = () => {
11|   const {
----------------^
12|     user: { login: username },
13|     body,
14|   } = danger.github.issue as any
15| 

Generated by 🚫 dangerJS

from gatsby-graphql-toolkit.

delasign avatar delasign commented on June 12, 2024

I am happy to provide more information and might not be using the right terminology but the gatsby-source-craft fails to gather all the entries - it gathers all but one on two of the LIST queries.

The query gatsby-source-craft fetches, when ran through the GraphQL on my CraftCMS returns the right amount of entries, but the plugin - which uses gatsby-graphql-toolkit - fails to return all the entries.

Any suggestions ?

from gatsby-graphql-toolkit.

delasign avatar delasign commented on June 12, 2024

Please note that I removed. the "offset" and "limit" from the LIST query and fixed the issue.

from gatsby-graphql-toolkit.

delasign avatar delasign commented on June 12, 2024

Incase it helps to understand the quantities Im playing with, here's the nodes and types

 CraftAPI_about_default_Entry: 1,
CraftAPI_about_founderLetter_Entry: 1,
CraftAPI_about_outcomes_Entry: 1, CraftAPI_about_process_Entry: 1,
CraftAPI_apply_apply_Entry: 1, CraftAPI_blog_blog_Entry: 1,
CraftAPI_blog_post_Entry: 211, CraftAPI_blog_postv2_Entry: 268,
CraftAPI_blog_postv3_Entry: 39, CraftAPI_breakpointData_GlobalSet:
1, CraftAPI_careerRatings_rating_Entry: 5,
CraftAPI_careers_careerPath_Entry: 6,
CraftAPI_careers_careers_Entry: 1,
CraftAPI_clientdata_default_Entry: 20,
CraftAPI_clients_clients_Entry: 1, CraftAPI_colors_css_Entry: 13,
CraftAPI_contact_contact_Entry: 1, CraftAPI_customColors_css_Entry:
 10, CraftAPI_externalLinks_mvp_Entry: 478,
CraftAPI_fonts_font_Entry: 1, CraftAPI_footer_GlobalSet: 1,
CraftAPI_headshots_Asset: 4, CraftAPI_home_home_Entry: 1,
CraftAPI_images_Asset: 3395, CraftAPI_images_image_Entry: 3042,
CraftAPI_legal_default_Entry: 5, CraftAPI_lexicon_definition_Entry:
 71, CraftAPI_lexicon_lexicon_Entry: 1, CraftAPI_logos_Asset: 114,
CraftAPI_navigationBar_GlobalSet: 1,
CraftAPI_onlineVideos_vimeo_Entry: 3,
CraftAPI_onlineVideos_youtube_Entry: 46,
CraftAPI_projects_mvp_Entry: 31, CraftAPI_search_search_Entry: 1,
CraftAPI_seoImages_Asset: 653, CraftAPI_seo_seoImage_Entry: 549,
CraftAPI_services_serviceOffering_Entry: 1,
CraftAPI_services_service_Entry: 4, CraftAPI_styles_style_Entry: 8,
 CraftAPI_subscribe_subscribe_Entry: 1, CraftAPI_threeD_Asset: 54,
CraftAPI_threeD_mrTryOut_Entry: 23,
CraftAPI_typography_typographicSet_Entry: 18,
CraftAPI_unsubscribe_unsubscribe_Entry: 1, CraftAPI_videos_Asset:
13, CraftAPI_videos_video_Entry: 12,
CraftAPI_waysOfWorking_way_Entry: 5,
CraftAPI_workOutcomes_heroOutcome_Entry: 3,
CraftAPI_workOutcomes_textOutcome_Entry: 12,
CraftAPI_work_work_Entry: 1, Site: 1, SiteBuildMetadata: 1,
SitePage: 653, SitePlugin: 40```

from gatsby-graphql-toolkit.

delasign avatar delasign commented on June 12, 2024

Found the bug in the package I was using.
PR coming in soon for gatsby-source-craft.

from gatsby-graphql-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.