Skip to content

panic when releases.files is NULL #517

Closed
@jyn514

Description

@jyn514

Caught this from looking through the logs on the build server: https://docs.rs/crate/rips/0.2.0/source/ gives a 500 when you visit it. The build for rips failed, maybe that's why the files are NULL?

Backtrace:

web_1  | thread '<unnamed>' panicked at 'error retrieving column 5: Error(Conversion(WasNull))', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/postgres-0.15.2/src/rows.rs:201:31
web_1  | stack backtrace:
web_1  |   13: postgres::rows::Row::get
web_1  |   14: cratesfyi::web::source::source_browser_handler
web_1  |   15: <F as iron::middleware::Handler>::handle
web_1  |   16: <alloc::boxed::Box<dyn iron::middleware::Handler> as iron::middleware::Handler>::handle
web_1  |   17: router::router::Router::handle_method
web_1  |   18: <router::router::Router as iron::middleware::Handler>::handle
web_1  |   19: iron::middleware::Chain::continue_from_handler
web_1  |   20: <iron::middleware::Chain as iron::middleware::Handler>::handle
web_1  |   21: <alloc::boxed::Box<dyn iron::middleware::Handler> as iron::middleware::Handler>::handle
web_1  |   22: <cratesfyi::web::CratesfyiHandler as iron::middleware::Handler>::handle
web_1  |   23: <iron::iron::RawHandler<H> as hyper::server::Handler>::handle
web_1  |   24: hyper::server::Worker<H>::handle_connection
web_1  |   25: hyper::server::listener::spawn_with::{{closure}}

Note for maintainers: to find other crates with this issue, run this psql command on the server:

SELECT releases.target_name, releases.version FROM releases WHERE releases.files IS NULL;

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions