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

Unhandled Runtime Error - please, help out #20

Open
the3rdWorlder opened this issue Feb 14, 2022 · 1 comment
Open

Unhandled Runtime Error - please, help out #20

the3rdWorlder opened this issue Feb 14, 2022 · 1 comment

Comments

@the3rdWorlder
Copy link

the3rdWorlder commented Feb 14, 2022

Error: [line: 8] field 'featureImage' is not defined in 'Post': {"response":{"errors":[{"message":"[line: 8] field 'featureImage' is not defined in 'Post'"}],"data":null,"extensions":{"requestId":"ckzmminzk338p0b31so1l8s7k"},"status":400,"headers":{"map":{"cache-control":"private, no-store","content-length":"149","content-type":"application/json"}}},"request":{"query":"\n query GetPostDetails() {\n posts(\n orderBy: createdAt_ASC\n last: 3\n ) {\n title\n featureImage {\n url\n }\n createAt\n slug\n }\n }\n "}}

I'm facing this error whenever i go to the website.. although it still working
and this is what it shows in the browser's inspect mode..

Uncaught (in promise) Error: [line: 8] field 'featureImage' is not defined in 'Post': {"response":{"errors":[{"message":"[line: 8] field 'featureImage' is not defined in 'Post'"}],"data":null,"extensions":{"requestId":"ckzmminzk338p0b31so1l8s7k"},"status":400,"headers":{"map":{"cache-control":"private, no-store","content-length":"149","content-type":"application/json"}}},"request":{"query":"\n query GetPostDetails() {\n posts(\n orderBy: createdAt_ASC\n last: 3\n ) {\n title\n featureImage {\n url\n }\n createAt\n slug\n }\n }\n "}} ClientError types.js:27 makeRequest index.js:352 step index.js:63 verb index.js:44 fulfilled index.js:35

@the3rdWorlder
Copy link
Author

Oh sorry, I have found the error, it puzzeled me for hours.
Essentially it was a misspelling in the words 'featuredImage' and 'createdAt'.

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

1 participant