pln-planning-tools / Starmap

Roadmap Planning Tool
https://starmap.site
Other
20 stars 8 forks source link

Roadmaps are not loading (error msg: `error parsing issue`) #324

Closed AlexxNica closed 1 year ago

AlexxNica commented 1 year ago

Roadmaps are not loading. It seems to be an error with the parser. Probably a regression from #315?

Tested on https://starmap.site/roadmap/github.com/filecoin-station/roadmap/issues/1

Response from the API:

https://starmap.site/api/roadmap?owner=filecoin-station&repo=roadmap&issue_number=1

{"errors":[{"issueUrl":"https://starmap.site/roadmap/github.com/filecoin-station/roadmap/issues/1","issueTitle":"https://starmap.site/roadmap/github.com/filecoin-station/roadmap/issues/1","errors":[{"userGuideUrl":"https://github.com/pln-planning-tools/Starmap/blob/main/User%20Guide.md#children","title":"Error parsing issue","message":"Unsupported URL: https://starmap.site/roadmap/github.com/filecoin-station/roadmap/issues/1"}]},{"issueUrl":"https://github.com/filecoin-station/roadmap/issues/1","issueTitle":"Filecoin Station 2023 Roadmap","errors":[{"userGuideUrl":"https://github.com/pln-planning-tools/Starmap/blob/main/User%20Guide.md#children","title":"Error resolving children","message":"No children found, is this a root issue?"}]}],"data":{"labels":["roadmap"],"completion_rate":0,"due_date":"2023-12-31","html_url":"https://github.com/filecoin-station/roadmap/issues/1","group":"root","title":"Filecoin Station 2023 Roadmap","state":"open","node_id":"I_kwDOIUF5GM5U5JPE","parent":{"completion_rate":0,"due_date":""},"children":[]},"pendingChildren":[]}

Screenshot

image
whizzzkid commented 1 year ago

That's weird, other roadmaps seem to be working well. e.g.:

AlexxNica commented 1 year ago

I think we need to revert that PR until we figure out what's causing the error.

cc @SgtPooki

AlexxNica commented 1 year ago

Deployment from the previous commit is working fine: https://starmaps-ccad3vayi-ipfs-ignite.vercel.app/roadmap/github.com/filecoin-station/roadmap/issues/1

Deployment from the PR is not working: https://starmaps-o358kbppd-ipfs-ignite.vercel.app/roadmap/github.com/filecoin-station/roadmap/issues/1

I'll go ahead and revert that PR while we fix whatever is causing the issue.

SgtPooki commented 1 year ago

Opened WIP PR https://github.com/pln-planning-tools/Starmap/pull/333 to address this

SgtPooki commented 1 year ago

error reproduced locally:

error: Error: Error resolving children: Error: Unsupported URL: https://starmap.site/roadmap/github.com/filecoin-station/roadmap/issues/1
    at resolveChildren (webpack-internal:///(api)/./lib/backend/resolveChildren.ts:30:11)
    at async resolveChildrenWithDepth (webpack-internal:///(api)/./lib/backend/resolveChildrenWithDepth.ts:14:20)
    at async handler (webpack-internal:///(api)/./pages/api/roadmap.ts:60:20)
    at async Object.apiResolver (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/api-utils/node.js:366:9)
    at async DevServer.runApi (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/next-server.js:481:9)
    at async Object.fn (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/next-server.js:741:37)
    at async Router.execute (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/router.js:252:36)
    at async DevServer.run (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/base-server.js:365:29)
    at async DevServer.run (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/dev/next-dev-server.js:709:20)
    at async DevServer.handleRequest (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/base-server.js:303:20)
Error: No children found, is this a root issue?
    at handler (webpack-internal:///(api)/./pages/api/roadmap.ts:63:17)
    at async Object.apiResolver (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/api-utils/node.js:366:9)
    at async DevServer.runApi (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/next-server.js:481:9)
    at async Object.fn (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/next-server.js:741:37)
    at async Router.execute (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/router.js:252:36)
    at async DevServer.run (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/base-server.js:365:29)
    at async DevServer.run (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/dev/next-dev-server.js:709:20)
    at async DevServer.handleRequest (/Users/sgtpooki/code/work/protocol.ai/pln-planning-tools/Starmaps/node_modules/next/dist/server/base-server.js:303:20)