Page MenuHomeSoftware Heritage

Web UI: fail to render some repositories with 500 error "'NoneType' object is not subscriptable"
Closed, MigratedEdits Locked

Description

The following repositories (I've other examples if needed) fail to be rendered by the Web UI with error message 'NoneType' object is not subscriptable:

I haven't checked what we have actually archived for them, but they've been visited recently and the corresponding GitHub repos seem to be in good shape.

If something is wrong with archival we need a better error message. If they've been archived properly we need to render what we have archived.

Event Timeline

zack renamed this task from Web UI: fail to render some repositories with error "'NoneType' object is not subscriptable" to Web UI: fail to render some repositories with 500 error "'NoneType' object is not subscriptable".Nov 2 2018, 9:12 PM
zack triaged this task as High priority.
zack created this task.

This seems due to releases pointing to missing revisions in the archive, see for instance https://archive.softwareheritage.org/api/1/release/21d03ad29cfa315d8b7e5d7577964fbc21797f74/

This seems due to releases pointing to missing revisions in the archive, see for instance http://localhost:5004/api/1/release/21d03ad29cfa315d8b7e5d7577964fbc21797f74/

Interesting.

We should be able to render something anyway, and error out only when the user tries to visit the missing object.

This raises an additional question though. This is a freshly ingested repository, it's kinda weird that a release object is missing. Unless the archived repo was corrupted, maybe? @olasd can you have a look at this part? TIA

thanks! can you ping me when this fix (T1304) is deployed?