Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cwray-tech's avatar

GraphiQl Explorer not Retrieving Documentation with Laravel Lighthouse

I just installed Laravel Lighthouse and the GraphiQl explorer today. One issue I have is that the Docs are not being retrieved. I get the error Error Fetching Schema.

Here is the stack:

"stack": "TypeError: Failed to fetch\n    at https://unpkg.com/graphiql/graphiql.min.js:65084:22\n    at Generator.next (<anonymous>)\n    at https://unpkg.com/graphiql/graphiql.min.js:65003:67\n    at new Promise (<anonymous>)\n    at __webpack_modules__.../../graphiql-toolkit/esm/create-fetcher/lib.js.__awaiter (https://unpkg.com/graphiql/graphiql.min.js:64985:10)\n    at https://unpkg.com/graphiql/graphiql.min.js:65083:85\n    at https://unpkg.com/graphiql/graphiql.min.js:64912:54\n    at fetchIntrospectionData (https://unpkg.com/graphiql/graphiql.min.js:58264:40)\n    at https://unpkg.com/graphiql/graphiql.min.js:58286:39\n    at https://unpkg.com/graphiql/graphiql.min.js:58298:5"

Has anyone run into this issue and know what to do to fix it?

Thanks!

0 likes
2 replies
Bogey's avatar

I've never worked with it, therefore what you have is not enough information. What is your implementation of it? Seems to me you either have the httpFetch or options wrong.

"stack": "TypeError: Failed to fetch
    at https://unpkg.com/graphiql/graphiql.min.js:65084:22
    at Generator.next (<anonymous>)
    at https://unpkg.com/graphiql/graphiql.min.js:65003:67
    at new Promise (<anonymous>)
    at __webpack_modules__.../../graphiql-toolkit/esm/create-fetcher/lib.js.__awaiter (https://unpkg.com/graphiql/graphiql.min.js:64985:10)
    at https://unpkg.com/graphiql/graphiql.min.js:65083:85
    at https://unpkg.com/graphiql/graphiql.min.js:64912:54
    at fetchIntrospectionData (https://unpkg.com/graphiql/graphiql.min.js:58264:40)
    at https://unpkg.com/graphiql/graphiql.min.js:58286:39
    at https://unpkg.com/graphiql/graphiql.min.js:58298:5"

Your stack error formatted properly also helps.

itsmeleo's avatar

"stack": "TypeError: Failed to fetch\n at https://unpkg.com/graphiql/graphiql.min.js:65084:22\n at Generator.next ()\n at https://unpkg.com/graphiql/graphiql.min.js:65003:67\n at new Promise ()\n at webpack_modules.../../graphiql-toolkit/esm/create-fetcher/lib.js.__awaiter (https://unpkg.com/graphiql/graphiql.min.js:64985:10)\n at https://unpkg.com/graphiql/graphiql.min.js:65083:85\n at https://unpkg.com/graphiql/graphiql.min.js:64912:54\n at fetchIntrospectionData (https://unpkg.com/graphiql/graphiql.min.js:58264:40)\n at https://unpkg.com/graphiql/graphiql.min.js:58286:39\n at https://unpkg.com/graphiql/graphiql.min.js:58298:5"

I am having the same error issue , installed lighthouse-php with graphiql endpoint and if I try to get the data, it's coming properly but yes definitely I'm seeing the same error as shown in first post by the post author

Please or to participate in this conversation.