{"record":{"id":"79a4fad4ab630042","repo":"bevyengine/bevy","slug":"asset-source-0-does-not-exist","errorCode":null,"errorMessage":"Asset Source '{0}' does not exist","messagePattern":"Asset Source '(.+?)' does not exist","errorType":"exception","errorClass":"MissingAssetSourceError","httpStatus":null,"severity":"error","filePath":"crates/bevy_asset/src/io/source.rs","lineNumber":652,"sourceCode":"    pub fn ids(&self) -> impl Iterator<Item = AssetSourceId<'static>> + '_ {\n        self.sources\n            .keys()\n            .map(|k| AssetSourceId::Name(k.clone_owned()))\n            .chain(Some(AssetSourceId::Default))\n    }\n\n    /// This will cause processed [`AssetReader`](crate::io::AssetReader) futures (such as [`AssetReader::read`](crate::io::AssetReader::read)) to wait until\n    /// the [`AssetProcessor`](crate::AssetProcessor) has finished processing the requested asset.\n    pub(crate) fn gate_on_processor(&mut self, processing_state: Arc<ProcessingState>) {\n        for source in self.iter_processed_mut() {\n            source.gate_on_processor(processing_state.clone());\n        }\n    }\n}\n\n/// An error returned when an [`AssetSource`] does not exist for a given id.\n#[derive(Error, Debug, Clone, PartialEq, Eq)]\n#[error(\"Asset Source '{0}' does not exist\")]\npub struct MissingAssetSourceError(AssetSourceId<'static>);\n\n/// An error returned when an [`AssetWriter`](crate::io::AssetWriter) does not exist for a given id.\n#[derive(Error, Debug, Clone)]\n#[error(\"Asset Source '{0}' does not have an AssetWriter.\")]\npub struct MissingAssetWriterError(AssetSourceId<'static>);\n\n/// An error returned when a processed [`AssetReader`](crate::io::AssetReader) does not exist for a given id.\n#[derive(Error, Debug, Clone, PartialEq, Eq)]\n#[error(\"Asset Source '{0}' does not have a processed AssetReader.\")]\npub struct MissingProcessedAssetReaderError(AssetSourceId<'static>);\n\n/// An error returned when a processed [`AssetWriter`](crate::io::AssetWriter) does not exist for a given id.\n#[derive(Error, Debug, Clone)]\n#[error(\"Asset Source '{0}' does not have a processed AssetWriter.\")]\npub struct MissingProcessedAssetWriterError(AssetSourceId<'static>);\n\nconst MISSING_DEFAULT_SOURCE: &str =","sourceCodeStart":634,"sourceCodeEnd":670,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_asset/src/io/source.rs#L634-L670","documentation":"MissingAssetSourceError: an operation referenced an asset source by id (e.g. 'my_source' via my_source://... paths) that was never registered with the AssetSourceBuilders / AssetSources collection. The lookup by AssetSourceId found no matching source.","triggerScenarios":"Thrown at crates/bevy_asset/src/io/source.rs:652 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the asset source with AssetPlugin::file_sources / source builders before using its id in paths","Check the source name in the asset path for typos (the part before ://)","Ensure the source is added on the same side (unprocessed/processed) the code is using"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}