You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ebe682b
Browse filesBrowse the repository at this point in the historyBrowse files
|`DownloadInterrupted`| Download was interrupted | Not all files were downloaded successfully | Retry the download |
114
-
|`ResourceFetcherDownloadFailed`| Resource download failed | Network error, invalid URL, or server error | Check network connection and URL validity, retry with exponential backoff |
115
-
|`ResourceFetcherDownloadInProgress`| Download already in progress | Calling `fetch()` for same resource while downloading | Wait for current download to complete |
116
-
|`ResourceFetcherAlreadyPaused`| Download already paused | Calling `pauseFetching()` on already paused download | Check download state before pausing |
117
-
|`ResourceFetcherAlreadyOngoing`| Download already ongoing | Calling `resumeFetching()` on active download | No action needed, download is already running |
118
-
|`ResourceFetcherNotActive`| No active download found | Calling pause/resume/cancel on non-existent download | Verify download was started before trying to control it |
119
-
|`ResourceFetcherMissingUri`| Required URI information missing | Internal state error during download operations | Restart the download from beginning |
120
-
|`ResourceFetcherAdapterNotInitialized`| Resource fetcher not initialized | Trying to load resources without calling `initExecutorch()` first | Call `initExecutorch({ resourceFetcher: ... })` before loading models |
121
-
|`ResourceFetcherPlatformNotSupported`| Platform not supported by resource fetcher | Using a resource fetcher feature unavailable on the current platform | Use a platform-appropriate fetcher or avoid the unsupported operation |
111
+
| Error Code | Description | When It Occurs | How to Handle |
|`DownloadInterrupted`| Download was interrupted | Not all files were downloaded successfully | Retry the download |
114
+
|`ResourceFetcherDownloadFailed`| Resource download failed | Network error, invalid URL, or server error | Check network connection and URL validity, retry with exponential backoff |
115
+
|`ResourceFetcherDownloadInProgress`| Download already in progress | Calling `fetch()` for same resource while downloading | Wait for current download to complete |
116
+
|`ResourceFetcherAlreadyPaused`| Download already paused | Calling `pauseFetching()` on already paused download | Check download state before pausing |
117
+
|`ResourceFetcherAlreadyOngoing`| Download already ongoing | Calling `resumeFetching()` on active download | No action needed, download is already running |
118
+
|`ResourceFetcherNotActive`| No active download found | Calling pause/resume/cancel on non-existent download | Verify download was started before trying to control it |
119
+
|`ResourceFetcherMissingUri`| Required URI information missing | Internal state error during download operations | Restart the download from beginning |
120
+
|`ResourceFetcherAdapterNotInitialized`| Resource fetcher not initialized | Trying to load resources without calling `initExecutorch()` first | Call `initExecutorch({ resourceFetcher: ... })` before loading models |
121
+
|`ResourceFetcherPlatformNotSupported`| Platform not supported by resource fetcher | Using a resource fetcher feature unavailable on the current platform | Use a platform-appropriate fetcher or avoid the unsupported operation |
122
+
|`ResourceFetcherFileSystemApiUnavailable`| Expo FileSystem API is unavailable (occurs for ExpoResourceFetcher) | When importing a non-existing Expo FS module | If you're using Expo 54 and below, make sure to use `/legacy` import for ExpoResourceFetcher. |
Copy file name to clipboardExpand all lines: packages/react-native-executorch/common/rnexecutorch/ErrorCodes.h
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,13 @@ enum class RnExecutorchErrorCode : int32_t {
120
120
* Thrown when the platform does not support the resource fetching feature, which is required for downloading models and other resources in React Native ExecuTorch.
121
121
*/
122
122
ResourceFetcherPlatformNotSupported = 187,
123
+
/**
124
+
* Thrown when the Expo resource fetcher entry point is incompatible with the
125
+
* installed expo-file-system version. The default entry point requires the
126
+
* new Directory/File API (Expo SDK 54+); use the `/legacy` entry point on
* Thrown when the platform does not support the resource fetching feature, which is required for downloading models and other resources in React Native ExecuTorch.
115
115
*/
116
116
ResourceFetcherPlatformNotSupported=187,
117
+
/**
118
+
* Thrown when the Expo resource fetcher entry point is incompatible with the installed expo-file-system version. The default entry point requires the new Directory/File API (Expo SDK 54+); use the `/legacy` entry point on older SDKs.
* Thrown when the platform does not support the resource fetching feature, which is required for downloading models and other resources in React Native ExecuTorch.
126
126
*/
127
127
ResourceFetcherPlatformNotSupported: 0xbb,
128
+
/**
129
+
* Thrown when the Expo resource fetcher entry point is incompatible with the installed expo-file-system version. The default entry point requires the new Directory/File API (Expo SDK 54+); use the `/legacy` entry point on older SDKs.
0 commit comments