Bug: Import file detected as subscription link instead of profiles · Issue #1128 · MatsuriDayo/NekoBoxForAndroid · GitHub
Skip to content

Bug: Import file detected as subscription link instead of profiles #1128

Open

Description

@alien-devb

Title: Bug: Import file detected as subscription link instead of profiles

Description:
When importing a file containing both configs and URLs (e.g., Telegram links), the app treats it as a subscription link instead of importing the configs directly.

Steps to Reproduce:

  1. Open Import -> From File.
  2. Select a file containing configs mixed with URLs.
  3. App prompts to "Add New Subscription".
  4. Confirm import.

Expected Behavior:
Configs from the file are added to the list.

Actual Behavior:
Subscription is added/prompted, but the config list remains empty.

Note:
This often happens with free config files that include promo links inside the text.

Logs:

2026/02/21 18:52:39 [Debug] [FormatsKt] Try parse http link: https://t.me/test
2026/02/21 18:52:39 [Warning] [FormatsKt] java.lang.IllegalStateException: Not http proxy
	at io.nekohasekai.sagernet.fmt.http.HttpFmtKt.parseHttp(SourceFile:97)
	at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies$parseLink(SourceFile:130)
	at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies(SourceFile:128)
	at io.nekohasekai.sagernet.group.RawUpdater.parseRaw(SourceFile:369)
	at io.nekohasekai.sagernet.group.RawUpdater.parseRaw$default(SourceFile:7)
	at io.nekohasekai.sagernet.group.RawUpdater.doUpdate(SourceFile:22)
	at io.nekohasekai.sagernet.group.GroupUpdater$Companion$executeUpdate$2.invokeSuspend(SourceFile:261)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:6)
	at kotlinx.coroutines.DispatchedTask.run(SourceFile:110)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92)

2026/02/21 18:52:39 [Warning] [GroupUpdater$Companion$executeUpdate$2] io.nekohasekai.sagernet.ktx.SubscriptionFoundException
	at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies$parseLink(SourceFile:199)
	at io.nekohasekai.sagernet.ktx.FormatsKt.parseProxies(SourceFile:128)
	at io.nekohasekai.sagernet.group.RawUpdater.parseRaw(SourceFile:369)
	...

Environment:

  • App Version: 1.4.2
  • OS: Android 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions