theacodes / kicanvas

The KiCAD web viewer
https://kicanvas.org
Other
644 stars 33 forks source link

No error message + didn't load GH repo #57

Open LucianoHanna opened 1 year ago

LucianoHanna commented 1 year ago

I tried to load this github repo https://github.com/dilshan/12v-automatic-ups but nothing happen.

Maybe this GH repo have something broken or incompatible with kicanvas but should show an error message. I didn't know there was an error until I opened DevTools

DevTools console output:


kicanvas.js:971 GET https://api.github.com/repos/dilshan/12v-automatic-up/contents/?ref=HEAD 404 (Not Found)
request @ kicanvas.js:971
repos_contents @ kicanvas.js:971
fromURLs @ kicanvas.js:971
(anonymous) @ kicanvas.js:1783

kicanvas.js:971 Uncaught (in promise) NotFoundError: GitHubNotFoundError: https://api.github.com/repos/dilshan/12v-automatic-up/contents/?ref=HEAD: not found
    at s.handle_server_error (kicanvas.js:971:10375)
    at s.request (kicanvas.js:971:10077)
    at async s.repos_contents (kicanvas.js:971:10475)
    at async GitHubFileSystem.fromURLs (kicanvas.js:971:11702)
    at async HTMLInputElement.<anonymous> (kicanvas.js:1783:653)
handle_server_error @ kicanvas.js:971
request @ kicanvas.js:971

kicanvas.js:926 kicanvas:project: Loading project from GitHubFileSystem

kicanvas.js:926 kicanvas:project: Determining schematic hierarchy

kicanvas.js:1783 Error: Unable to find undefined
    at Wt.set_active_page (kicanvas.js:971:8453)
    at tt.setup_project (kicanvas.js:1783:905)
    at async HTMLInputElement.<anonymous> (kicanvas.js:1783:674)
setup_project @ kicanvas.js:1783
await in setup_project (async)
(anonymous) @ kicanvas.js:1783```