bioimage-io / bioimage-io-resources

Model repository for bioimage.io
16 stars 9 forks source link

website fails when referencing repo with new generated manifest.bioimage.io.json #44

Closed paulhfu closed 4 years ago

paulhfu commented 4 years ago

I compiled the manifest.bioimage.io.yaml with the attached compile_model_manifest.py. The branch was equal to the master branch. I noticed that during compiling some fetches were failing. When loading the website with https://bioimage.io/#/?repo=paulhfu%2Fbioimage-io-models%2Ftree%3D3D3dunet_nuclei i am greeted with Failed to fetch manifest file from the repo: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 4 of the JSON data. and the website stays empty.

oeway commented 4 years ago

Hi, I think that’s because the url format is incorrect. Remove /tree from your url works: https://bioimage.io/#/?repo=paulhfu%2Fbioimage-io-models%2F3dunet_nuclei

The correct format is ‘repo=user/repo/branch’.

On Sun 9 Aug 2020 at 21:14, paulhfu notifications@github.com wrote:

I compiled the manifest.bioimage.io.yaml with the attached compile_model_manifest.py. The branch was equal to the master branch. I noticed that during compiling some fetches were failing. When loading the website with https://bioimage.io/#/?repo=paulhfu%2Fbioimage-io-models%2Ftree%3D3D3dunet_nuclei i am greeted with Failed to fetch manifest file from the repo: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 4 of the JSON data. and the website stays empty.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bioimage-io/bioimage-io-models/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADU3S5E6EB4574O4R7W6BTR73YRNANCNFSM4PZKQ25Q .

paulhfu commented 4 years ago

Thanks @oeway . That was it.