Any known cause of rover lib.rs line 43 (unwap() on a None) crash?

Experiencing this crash. Can’t share schemas but this shouldn’t be happening…

toml
name = "rover"
operating_system = "unix:OSX"
crate_version = "0.28.1"
explanation = """
Panic occurred in file 'crates/rover-graphql/src/lib.rs' at line 43
"""
cause = "called `Option::unwrap()` on a `None` value"
method = "Panic"
backtrace = """

   0: 0x10197d8a8 - _rust_begin_unwind
   1: 0x1019def44 - core::panicking::panic_fmt::hd4003258f6ab7b29
   2: 0x1019defb4 - core::panicking::panic::h86f2c7562f835270
   3: 0x1019deedc - core::option::unwrap_failed::h36089c7b3b3b33af
   4: 0x1015e2060 - <rover_graphql::SimplifiedErrorList as core::convert::From<&alloc::vec::Vec<graphql_client::Error>>>::from::haefaf7605caef8fb
   5: 0x10126f5d8 - <rover_graphql::GraphQLService<S> as tower_service::Service<rover_graphql::GraphQLRequest<Q>>>::call::{{closure}}::hfb36cf2b9c66c2cf
   6: 0x1011cee40 - <rover_client::operations::subgraph::fetch::service::SubgraphFetch<S> as tower_service::Service<rover_client::operations::subgraph::fetch::service::SubgraphFetchRequest>>::call::{{closure}}::h935811f5bf7076a4
   7: 0x101216cc4 - <rover::composition::supergraph::config::resolver::fetch_remote_subgraph::FetchRemoteSubgraph<S> as tower_service::Service<rover::composition::supergraph::config::resolver::fetch_remote_subgraph::FetchRemoteSubgraphRequest>>::call::{{closure}}::hd534871bb472261b
   8: 0x1010a19fc - <rover::composition::supergraph::config::full::subgraph::remote::ResolveRemoteSubgraph<S> as tower_service::Service<()>>::call::{{closure}}::hf59d022839363777
   9: 0x10101f884 - <futures_util::stream::futures_unordered::FuturesUnordered<Fut> as futures_core::stream::Stream>::poll_next::h6099e9ed8492d3ac
  10: 0x101072854 - <futures_util::stream::stream::buffer_unordered::BufferUnordered<St> as futures_core::stream::Stream>::poll_next::h6979ab5181e04b15
  11: 0x100fee920 - <futures_util::stream::stream::collect::Collect<St,C> as core::future::future::Future>::poll::hd6ab557d4b723776
  12: 0x100ed7d9c - rover::composition::supergraph::config::resolver::SupergraphConfigResolver<rover::composition::supergraph::config::resolver::state::ResolveSubgraphs>::fully_resolve_subgraphs::{{closure}}::h03545e7172921af7
  13: 0x100edcdf0 - rover::composition::pipeline::CompositionPipeline<rover::composition::pipeline::state::ResolveFederationVersion>::resolve_federation_version::{{closure}}::h9fff0c2f6753fc98
  14: 0x100eec6d4 - rover::command::supergraph::compose::do_compose::Compose::run::{{closure}}::h17d29ef29d4aa365
  15: 0x100edf474 - rover::cli::Rover::execute_command::{{closure}}::h3a34549608ee579d
  16: 0x100f2a71c - tokio::runtime::park::CachedParkThread::block_on::h1263822df2919388
  17: 0x1010fae18 - tokio::runtime::context::runtime::enter_runtime::he70b05501a8337fd
  18: 0x10113051c - tokio::runtime::runtime::Runtime::block_on::h477ca5ff497a94a6
  19: 0x10109306c - rover::main::h7dab12e02f822f7e
  20: 0x1010deebc - std::sys::backtrace::__rust_begin_short_backtrace::h36dd98e44132558b
  21: 0x101139a58 - std::rt::lang_start::{{closure}}::hb44dd61ab6d7dbd4
  22: 0x10196efc4 - std::rt::lang_start_internal::h5f91760815528aa2
  23: 0x101093248 - _main"""

Hello @Aleksandar_Susnjar, if you are a customer and need to share sensitive information like your schemas you can do so by opening a support ticket: https://support.apollographql.com/

It appears though from your stacktrace that the error is because we are doing a compose but fetching the schema source remotely from GraphOS.

You might have luck also reproducing this running rover subgraph fetch on the subgraph causing issues which could narrow down how to debug for our support team if you open a ticket there.

We are working on a fix for the crash, but the underlying issue is an invalid API key (for example in the APOLLO_KEY environment variable or stored in your rover profile).

1 Like

Thank you very much! Passed this on.