{"id":23291593,"url":"https://github.com/garyo/nuxt-bug-report1","last_synced_at":"2026-01-20T21:32:34.821Z","repository":{"id":267926913,"uuid":"822366056","full_name":"garyo/nuxt-bug-report1","owner":"garyo","description":"Bug report for Nuxt content mode","archived":false,"fork":false,"pushed_at":"2024-07-01T02:33:39.000Z","size":276,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T01:36:07.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-01T02:33:12.000Z","updated_at":"2024-07-01T02:33:42.000Z","dependencies_parsed_at":"2024-12-13T10:14:31.612Z","dependency_job_id":"5fb3aa7a-4dce-4d92-9abe-04ceec7db5e2","html_url":"https://github.com/garyo/nuxt-bug-report1","commit_stats":null,"previous_names":["garyo/nuxt-bug-report1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garyo/nuxt-bug-report1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyo%2Fnuxt-bug-report1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyo%2Fnuxt-bug-report1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyo%2Fnuxt-bug-report1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyo%2Fnuxt-bug-report1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garyo","download_url":"https://codeload.github.com/garyo/nuxt-bug-report1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyo%2Fnuxt-bug-report1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28614590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T05:18:56.551Z","updated_at":"2026-01-20T21:32:34.803Z","avatar_url":"https://github.com/garyo.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuxt Content Query Bug Report\n\nThis example shows a hard-to-debug issue with Nuxt content query and SSR static site generation.\n\nThe problem is that the dynamically generated `pages/articles/tags/[tag].vue` page slug, use the `NuxtLayout` default layout. That layout runs a content query in a script:\n\n```ts\nconst route = useRoute()\nconst { data: page } = await useAsyncData(`content-${route.path}-layout`,\n                                          () =\u003e queryContent().where({ _path: route.path}).findOne())\n\nconst parentPath = computed(\n  () =\u003e {\n    const pathArr = route.path.split('/') // e.g. [\"\", \"articles\", \"article1\"]\n    pathArr.pop() // remove last component\n    if (pathArr.length \u003c= 1)\n      return '/'\n    return pathArr.join('/')\n  }\n)\n```\n\nFor some reason, that script causes the prerender to fail silently, such that those dynamically rendered tags pages return 404s (or actually the pre-generated query results return 404s):\n```\nErrors prerendering:\n  ├─ /api/_content/query/SzZjDQLhN0.1719800696160.json (3ms)                                          nitro 10:25:00 PM\n  │ ├── Error: [404] Document not found!\n  │ └── Linked from /articles/tags/blog\n  ├─ /api/_content/query/qq4agTT8na.1719800696160.json (2ms)                                          nitro 10:25:00 PM\n  │ ├── Error: [404] Document not found!\n  │ └── Linked from /articles/tags\n  ├─ /api/_content/query/KhUI7un7Nu.1719800696160.json (0ms)                                          nitro 10:25:00 PM\n  │ ├── Error: [404] Document not found!\n  │ └── Linked from /articles\n```\n\nThe fix is to have the dyamic pages use a simpler layout that doesn't do this query. But the bug I'm reporting is that the failures during prerender are silent (except for the 404s reported above) so it is very nearly impossible to debug. Took me many hours to even find out it was the layout that was responsible. It seems likely the query is failing but the error is silently discarded; it would be much better if the actual failure were reported when it happens, so the developer can see what query failed with a pointer to their file \u0026 line number.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryo%2Fnuxt-bug-report1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaryo%2Fnuxt-bug-report1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryo%2Fnuxt-bug-report1/lists"}