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

**URL:** <https://community.apollographql.com/t/any-known-cause-of-rover-lib-rs-line-43-unwap-on-a-none-crash/8950>\
**Category:** GraphOS\
**Created:** [April 21, 2025, 12:26pm UTC](https://community.apollographql.com/t/any-known-cause-of-rover-lib-rs-line-43-unwap-on-a-none-crash/8950 "2025-04-21T12:26:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aleksandar\_Susnjar](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/aleksandar_susnjar/32/5575_2.png) [@Aleksandar\_Susnjar](https://community.apollographql.com/u/Aleksandar_Susnjar)\
**Post date:** [April 21, 2025, 12:26pm UTC](https://community.apollographql.com/t/any-known-cause-of-rover-lib-rs-line-43-unwap-on-a-none-crash/8950/1 "2025-04-21T12:26:42Z")

</div>

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

```auto
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"""

```

---

<div class="post-metadata">

**Author:** ![shanemyrick](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/shanemyrick/32/5474_2.png) [@shanemyrick](https://community.apollographql.com/u/shanemyrick)\
**Post date:** [April 21, 2025, 8:57pm UTC](https://community.apollographql.com/t/any-known-cause-of-rover-lib-rs-line-43-unwap-on-a-none-crash/8950/2 "2025-04-21T20:57:30Z")

</div>

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/](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.

---

<div class="post-metadata">

**Author:** ![matthew.hawkins](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/matthew.hawkins/32/5537_2.png) [@matthew.hawkins](https://community.apollographql.com/u/matthew.hawkins)\
**Post date:** [April 22, 2025, 10:14pm UTC](https://community.apollographql.com/t/any-known-cause-of-rover-lib-rs-line-43-unwap-on-a-none-crash/8950/3 "2025-04-22T22:14:24Z")

</div>

We are working on a [fix for the crash](https://github.com/apollographql/rover/pull/2533), but the underlying issue is an invalid API key (for example in the APOLLO\_KEY environment variable or stored in your rover profile).

---

<div class="post-metadata">

**Author:** ![Aleksandar\_Susnjar](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/aleksandar_susnjar/32/5575_2.png) [@Aleksandar\_Susnjar](https://community.apollographql.com/u/Aleksandar_Susnjar)\
**Post date:** [April 22, 2025, 10:38pm UTC](https://community.apollographql.com/t/any-known-cause-of-rover-lib-rs-line-43-unwap-on-a-none-crash/8950/4 "2025-04-22T22:38:05Z")

</div>

Thank you very much! Passed this on.
