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

Failed to add warp profile

Open NiREvil opened this issue 1 year ago • 3 comments

Search first

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

What Happened?

In the latest update, I was only able to add the following format to the program in version v0.15.4: warp://cleanip:port/?ifp=5-10 warp://cleanip:port/?ifp=5-10 (Android 6 & 13). I had added a long list of warp IPs and was using it. After updating the program, I was no longer able to add a config with this format. Today, after a lot of effort, I managed to add three rows, but then it didn't work again. It just gives an error. Can you please check and provide assistance with this issue? Thanks alot.

Reproduce the Bug

  1. Copy list of the warp://ip:port/?ifp=5-10
  2. Go to the home
  3. Click on + icon
  4. Click on add from clipboard
  5. and get error
  6. Error is: field to add profile, Invalid configs, warp § 0: [Warp] patch warp error: invalid character 'e' looking for beginning of value)

Expected Behavior

No response

Version

v.0.16.0

Platform/OS

Android

Additional Context

Screenshot_20240220-011051~01 Screenshot_20240220-013234~01

Relevant log output

01:35:13.483319 - [D] bootstrap: [preferences migration] initialized in 0ms
01:35:13.483976 - [D] Pref<bool, dynamic>: getting persisted preference [debug_mode](bool)
01:35:13.491830 - [D] bootstrap: [logs repository] initialized in 7ms
01:35:13.492167 - [D] bootstrap: [logger controller] initialized in 0ms
01:35:13.492257 - [I] bootstrap: Hiddify v0.16.0 (1600) [dev]
general release
android [AAW068]
01:35:13.494536 - [D] GeoAssetRepositoryImpl: initializing
01:35:13.495373 - [D] DioHttpClient: setting proxy port: [2334]
01:35:13.498215 - [D] bootstrap: [geo assets repository] initialized in 5ms
01:35:13.499930 - [D] bootstrap: [profile repository] initialized in 1ms
01:35:13.500247 - [D] PlatformSingboxService: initializing
01:35:13.514006 - [D] bootstrap: [sing-box] initialized in 13ms
01:35:13.514861 - [D] ActiveProfile: watching active profile
01:35:13.566664 - [D] bootstrap: [active profile] initialized in 52ms
01:35:13.578835 - [D] bootstrap: [deep link service] initialized in 11ms
01:35:13.629515 - [D] bootstrap: [android display mode] initialized in 50ms
01:35:13.629930 - [I] bootstrap: bootstrap took [585ms]
01:35:13.633418 - [D] Pref<bool, dynamic>: getting persisted preference [intro_completed](bool)
01:35:13.637166 - [D] ForegroundProfilesUpdateNotifier: intro done, starting
01:35:13.670182 - [D] Pref<bool, dynamic>: getting persisted preference [auto_check_ip](bool)
01:35:13.673958 - [D] RouterListenable: triggering listener
01:35:13.676537 - [I] ConnectionNotifier: connection status: DISCONNECTED
01:35:13.677317 - [D] ForegroundProfilesUpdateNotifier: cycle [0]
01:35:13.677570 - [D] ForegroundProfilesUpdateNotifier: too soon! previous run: [2024-02-20 01:24:08.471315]
01:35:15.445507 - [D] Pref<bool, dynamic>: getting persisted preference [started_by_user](bool)
01:35:15.446181 - [D] Pref<bool, dynamic>: updating preference [started_by_user](bool) to [true]
01:35:15.462793 - [D] Pref<bool, dynamic>: getting persisted preference [disable_memory_limit](bool)
01:35:15.479491 - [I] ConnectionRepositoryImpl: config options: {
  "execute-config-as-is": false,
  "log-level": "debug",
  "resolve-destination": false,
  "ipv6-mode": "ipv4_only",
  "remote-dns-address": "udp://1.1.1.1",
  "remote-dns-domain-strategy": "",
  "direct-dns-address": "1.1.1.1",
  "direct-dns-domain-strategy": "",
  "mixed-port": 2334,
  "local-dns-port": 6450,
  "tun-implementation": "mixed",
  "mtu": 9000,
  "strict-route": true,
  "connection-test-url": "http://cp.cloudflare.com/",
  "url-test-interval": 600,
  "enable-clash-api": true,
  "clash-api-port": 6756,
  "enable-tun": true,
  "enable-tun-service": false,
  "set-system-proxy": false,
  "bypass-lan": false,
  "allow-connection-from-lan": false,
  "enable-fake-dns": false,
  "enable-dns-routing": true,
  "independent-dns-cache": true,
  "enable-tls-fragment": false,
  "tls-fragment-size": "1-500",
  "tls-fragment-sleep": "0-500",
  "enable-tls-mixed-sni-case": false,
  "enable-tls-padding": false,
  "tls-padding-size": "1-1500",
  "enable-mux": false,
  "mux-padding": false,
  "mux-max-streams": 8,
  "mux-protocol": "h2mux",
  "enable-warp": false,
  "warp-detour-mode": "outbound",
  "warp-license-key": "",
  "warp-account-id": "",
  "warp-access-token": "",
  "warp-clean-ip": "auto",
  "warp-port": 0,
  "warp-noise": "",
  "geoip-path": "geo-assets/sagernet-sing-geoip-geoip.db",
  "geosite-path": "geo-assets/sagernet-sing-geosite-geosite.db",
  "rules": [
    {
      "domains": "domain:.ir,geosite:ir",
      "ip": "geoip:ir",
      "port": null,
      "protocol": null,
      "network": "",
      "outbound": "bypass"
    }
  ]
}
Memory Limit: true
01:35:15.480489 - [D] ConnectionRepositoryImpl: setting up singbox
01:35:15.482001 - [D] PlatformSingboxService: changing options
01:35:15.488903 - [D] PlatformSingboxService: starting
01:35:15.537282 - [I] ConnectionNotifier: connection status: DISCONNECTED
01:35:15.550246 - [I] ConnectionNotifier: connection status: CONNECTING
01:35:16.130410 - [I] ConnectionNotifier: connection status: CONNECTED
01:35:16.133563 - [D] IpInfoNotifier: disposing
01:35:16.134882 - [D] PlatformSingboxService: watching active groups
01:35:16.618809 - [D] PlatformSingboxService: watching stats
01:35:28.201007 - [D] Pref<bool, dynamic>: getting persisted preference [mark_new_profile_active](bool)
01:35:28.206063 - [D] AddProfile: adding profile, content
01:35:34.575991 - [W] AddProfile: failed to add profile
ProfileFailure.invalidConfig(message: WARP § 47: [Warp] patch warp error: invalid character 'e' looking for beginning of value)
01:35:36.868986 - [D] Pref<bool, dynamic>: updating preference [started_by_user](bool) to [false]
01:35:36.939066 - [D] PlatformSingboxService: stopping
01:35:36.973865 - [I] ConnectionNotifier: connection status: DISCONNECTING
01:35:36.976769 - [D] IpInfoNotifier: disposing
01:35:37.248430 - [I] ConnectionNotifier: connection status: DISCONNECTED
01:35:38.191462 - [D] Pref<bool, dynamic>: getting persisted preference [mark_new_profile_active](bool)
01:35:38.193612 - [D] AddProfile: adding profile, content
01:35:47.074897 - [W] AddProfile: failed to add profile
ProfileFailure.invalidConfig(message: WARP § 12: [Warp] patch warp error: invalid character 'e' looking for beginning of value)
01:35:50.200853 - [D] LogsOverviewNotifier: adding listeners
01:36:05.385520 - [D] UriUtils: sharing [/storage/emulated/0/Android/data/app.hiddify.com/files/app.log]

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!)

NiREvil avatar Feb 19 '24 22:02 NiREvil

it only accept 10 warp address at the same time

javadgh6 avatar Feb 21 '24 05:02 javadgh6

it only accept 10 warp address at the same time

Hello dude. Yes, that's right, but the Iranian who doesn't stay behind closed doors.😎 I converted to a singbox and entered the application 200 fuckin IP at the same time. 😂✋ Of course, I didn't have any practical goal, it was just out of curiosity because nobody really needs 200 IP addresses in a program.five is enough

NiREvil avatar Feb 21 '24 05:02 NiREvil

How did you do the conversion to json?

javadgh6 avatar Feb 21 '24 11:02 javadgh6

pls update to the latest version. It s fixed

lymanjre avatar Apr 28 '24 08:04 lymanjre