siyuan-note/siyuan · error
Conf.Language(46)
Error message
Conf.Language(46)
What it means
installBazaarPackage downloads and installs a marketplace package; when bazaar.InstallPackage fails (network error, repo clone failure, hash/ref not found, disk error), the underlying error is wrapped with localized message Conf.Language(46) plus the package name. The user-facing message hides the root cause, so inspect the wrapped %s portion.
Solutions
- Read the wrapped underlying error after the localized prefix to find the root cause
- Retry after confirming network access to the package's repo URL
- Verify repoHash/repoRef still exists in the source repository
- Free disk space / close processes locking the workspace install path, then retry the install
Example fix
// before: opaque install failure
if err := model.InstallBazaarPackage("plugins", repoURL, hash, ref, name, nil); err != nil { return err }
// after: surface the underlying cause
if err := model.InstallBazaarPackage("plugins", repoURL, hash, ref, name, nil); err != nil {
logging.LogErrorf("install %s failed: %v", name, err)
return err
} Defensive patterns
Strategy: try-catch
Validate before calling
// preflight: repo reachable
resp, err := http.Head(repoURL)
if err != nil || resp.StatusCode >= 400 { return fmt.Errorf("repo unreachable: %s", repoURL) } Try / catch
err := model.InstallBazaarPackage(pkgType, repoURL, hash, ref, name, nil)
if err != nil {
// err is Conf.Language(46) wrapped; log full error for the underlying cause
logging.LogErrorf("install %s: %v", name, err)
return retryWithBackoff(err)
} Prevention
- Check network/proxy access to github.com before bulk installs
- Validate repoHash/repoRef exist before installing pinned versions
- Ensure adequate disk space and no file locks in the workspace
When it happens
Trigger: InstallBazaarPackage or batch updatePackages flows when the GitHub repo URL is unreachable, repoHash/repoRef does not exist in the repo, the workspace disk is full or read-only, or the install path cannot be written because the theme/icon is currently in use.
Common situations: Corporate proxy/firewall blocking github.com; installing a pinned hash that was force-pushed away; antivirus or file locks on Windows holding the target directory; interrupted network mid-clone.
Understand the failure class
Background: 'Something went wrong' / 'Request failed (500)' / 'HTTP error! status: 404' — what failed HTTP requests actually mean and how to find the real cause — this error's family across 28 libraries.
Related errors
- bazaar is offline
- Conf.Language(47)
- Failed to install marketplace package
- get rhy result failed
- marketplace package already exists
AI-assisted analysis of siyuan-note/siyuan@9f775e8a12 (2026-09-19).
Data as JSON: /api/errors/7f2939b7aaedfc7a.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/model/bazaar.go:527
func GetBazaarPackageREADME(ctx context.Context, repoURL, repoHash, pkgType string) (ret string) {
ret = bazaar.GetBazaarPackageREADME(ctx, repoURL, repoHash, pkgType)
return
}
// installBazaarPackage 下载并安装集市包
func installBazaarPackage(pkgType, repoURL, repoHash, repoRef, packageName string) (meta installMeta, err error) {
installPath, jsonFileName, err := getPackageInstallPath(pkgType, packageName)
if err != nil {
return
}
installedPkg, parseErr := bazaar.ParsePackageJSON(filepath.Join(installPath, jsonFileName))
meta.update = parseErr == nil && installedPkg != nil && installedPkg.Name == packageName
err = bazaar.InstallPackage(repoURL, repoHash, repoRef, installPath, Conf.System.ID, pkgType, packageName, meta.update)
if err != nil {
err = fmt.Errorf(Conf.Language(46), packageName, err)
}
return
}
// finishInstall 集市包安装后的处理(刷新外观、推送插件重载等);批量更新时同类型只执行一次
//
// - themeOptions:仅在新安装主题(meta.update 为 false)时写入外观;批量覆盖更新不会用到
// - applyNewAppearance:控制新安装图标是否自动应用;本地安装不自动应用
func finishInstall(pkgType string, items []batchInstallItem, themeOptions *ThemeInstallOptions, applyNewAppearance bool) {
if 1 > len(items) {
return
}
switch pkgType {
case "plugins":
reloadPluginSet := hashset.New()
for _, item := range items {
if !item.meta.update {View on GitHub (pinned to 9f775e8a12)