hiddify-next icon indicating copy to clipboard operation
hiddify-next copied to clipboard

Clash subscription link fails to import

Open hulluacen opened this issue 9 months ago • 5 comments

Search first

  • [x] I searched and no similar issues were found

Platform/OS

Android

OS version

Android 16

Hiddify Version

v4.0.4

What Happened?

Failed to import using the Clash subscription link, with the error message “Unable to determine config format.” However, subscriptions work normally in Clash Meta, FlClash, and other software.

Minimal Reproducible Example (MRE)

  1. Tap the “+” icon in the top-right corner

  2. Tap “Manual +”

  3. Enter the Clash subscription link

  4. Wait a moment; a failure prompt will appear

Expected Behavior

According to the GitHub documentation, Clash/Clash Meta should be able to subscribe normally, but currently it is not working. Several links have been tried and all failed. Therefore, I would like to request a check to see if the kernel supports Clash/ClashMeta.

Additional Context

Picture

Application Config Options

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • [x] I'm willing to submit a PR (Thank you!)

hulluacen avatar Feb 20 '26 02:02 hulluacen

Me too.

mmfdsfsd avatar Feb 20 '26 03:02 mmfdsfsd

Yes; Same error after update. It was working in previous version

alexivanelli avatar Feb 23 '26 08:02 alexivanelli

same. are there any updates from the devs? or do i have to use an older version?

wx8z avatar Mar 01 '26 04:03 wx8z

我也是

ppp2020 avatar Mar 01 '26 13:03 ppp2020

ot cause found: In lib/features/profile/data/profile_parser.dart line 204, expandRemoteLinesInParallel uses line.trim() which strips YAML indentation, destroying Clash config structure.

Fix: Change line.trim() to line.trimRight()

mrqmy avatar Apr 17 '26 08:04 mrqmy