v2rayA/v2rayA · error

unknown config input type

Error message

unknown config input type

What it means

Sentinel error from the config-building switch statement: the config source's Go type is neither a file list nor an io.Reader, so the loader cannot process it — an internal programming/type error, not user input.

Source

Thrown at core/hint/conf/loader.go:517

				}
				if e.MultiObservatory != nil {
					injectMultiObservatory(coreConfig, e.MultiObservatory)
				} else if e.BurstObservatory != nil {
					injectBurstObservatoryAsMulti(coreConfig, e.BurstObservatory)
				}
				injectCompatService(coreConfig)
				reorderAppsForAPIReadiness(coreConfig)
				if len(customs) > 0 {
					customOutbounds, err := buildCustomOutbounds(customs)
					if err != nil {
						return nil, err
					}
					coreConfig.Outbound = append(coreConfig.Outbound, customOutbounds...)
				}
				return coreConfig, nil

			default:
				return nil, errors.New("unknown config input type")
			}
		},
	}))
}

View on GitHub (pinned to 71e5442fc5)

Solutions

  1. Ensure only supported config source types ([]*core.ConfigSource or io.Reader) are passed
  2. Fix the caller that constructed the config source
  3. Report as a bug if triggered by normal use
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at core/hint/conf/loader.go:517 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of v2rayA/v2rayA@71e5442fc5 (2026-09-05). Data as JSON: /api/errors/2207ce20c910bb16. Report an issue: GitHub.