You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error Plugin @fika/gatsby-source-cockpit returned an error
Error: Token config parameter is invalid
- CockpitService.js:45 CockpitService.validateToken
[gatsby-cockpit]/[@fika]/gatsby-source-cockpit/src/CockpitService.js:45:13
second one I change the URL and I add a / at the end
baseUrl:: "http://domain.com/cockpit/",
and it turns into
error Plugin @fika/gatsby-source-cockpit returned an error
TypeError: names.filter is not a function
- CockpitService.js:91 CockpitService.getCollections
[gatsby-cockpit]/[@fika]/gatsby-source-cockpit/src/CockpitService.js:91:10
please guide me.
The text was updated successfully, but these errors were encountered:
The baseUrl you should set in your plugin configuration is: http://hfp.co.ir/cockpit, with no / at the end. Did you tried that ? If so, what was the output ?
If it tells you that error: Error: Token config parameter is invalid, it's because you have not properly set your Master API Key in the token configuration parameter. The Master API Key can be generated and found in Cockpit under the Settings > API Access page. :)
We should add a check if names is an array and not empty here and either ignore it (no collections might happen once we support singletons) or throw a more appropriate error if we can detect that there is no Cockpit Instance available at that URL..
I have 2 types of error first is generated with
baseUrl:: "http://domain.com/cockpit",
and is
second one I change the URL and I add a / at the end
baseUrl:: "http://domain.com/cockpit/",
and it turns into
please guide me.
The text was updated successfully, but these errors were encountered: