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

Plugin gatsby-source-cockpit returned an error #9

Open
Hypothesis-github opened this issue Feb 14, 2019 · 1 comment
Open

Plugin gatsby-source-cockpit returned an error #9

Hypothesis-github opened this issue Feb 14, 2019 · 1 comment

Comments

@Hypothesis-github
Copy link

I have 2 types of error first is generated with

host: "http://domain.com/cockpit",

and is

info Fetching list of assets
error Plugin gatsby-source-cockpit returned an error


  TypeError: Cannot read property 'length' of undefined

  - gatsby-node.js:43 Object.exports.sourceNodes
    [gatsby-cockpit]/[gatsby-source-cockpit]/gatsby-node.js:43:53

second one I change the URL and I add a / at the end

host: "http://domain.com/cockpit/",

and it turns into

FetchError: invalid json response body at http://hfp.co.ir/cockpit/auth/login reason: Unexpected token < in JSON at position 0

please guide me.

@mpartipilo
Copy link
Owner

mpartipilo commented Feb 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants