Hiddify-Manager icon indicating copy to clipboard operation
Hiddify-Manager copied to clipboard

Bug with user creation

Open volend0r opened this issue 11 months ago • 4 comments

Describe the bug Hello, I'm facing a bug in Hiddify-manager: some users that are created manually via WebUI panel or via “Create a user” API are not working - hiddify app shows “Timeout” and there are no obvious errors in Logs.

It happens with random frequency, sometimes several times in a row and sometimes once every 30 users.

And what is strange, it is fixed in such a way: you need to “update” the user, for example, through WebUI panel by changing the name or description of the user, or API requests “Update a user” with exactly the same configuration, without changing anything. Only then the user connects to the server.

I have 4 Hiddify-manager servers in different regions and in different providers, everywhere this error is present. I have also tried reinstalling and changing versions, from 10.80.7 to 10.80.11.

I'm also attaching logs from the server that may be of interest, but they don't quite match the timing of when the non-working users were created. The closest timings are ~19:30. I also removed repeated errors from the logs to reduce the size since I can't fully upload them here. hiddify_panel.err.log

Can you tell me if anyone has encountered this and where to dig to solve this problem?

Additional context From proxies I use Vless+Reality+TCP.

volend0r avatar Dec 27 '24 11:12 volend0r

we will look into it please be patient

litoosh13 avatar Dec 27 '24 15:12 litoosh13

we will look into it please be patient

Ok, thank you very much. I can offer my help as this bug is sometimes hard to reproduce, it can take a lot of tries, so I could take a separate server and create a user on it that is bugged and give you access to the server.

volend0r avatar Dec 27 '24 18:12 volend0r

Hello @volend0r,

Thank you for your support.

Could you please send me the full request details for the CreateUser and UpdateUser API calls you’re using? This will help me assist you more effectively.

Looking forward to your response!

Best, Tes

tesilaaliset avatar Feb 05 '25 09:02 tesilaaliset

Hi @tesilaaliset, This is how I create it:

Url "https://example.com/some_proxy_path/api/v2/admin/user/"
Type "POST"
Headers {
  "Accept: application/json"
  "Content-Type: application/json"
  "Hiddify-API-Key: SOME_API_KEY"
}
Post {
  ["added_by_uuid"]=>
  string(36) "SOME_UUID"
  ["comment"]=>
  string(29) "Test User"
  ["current_usage_GB"]=>
  int(0)
  ["ed25519_private_key"]=>
  NULL
  ["ed25519_public_key"]=>
  NULL
  ["enable"]=>
  bool(true)
  ["is_active"]=>
  bool(true)
  ["lang"]=>
  string(2) "en"
  ["last_online"]=>
  NULL
  ["last_reset_time"]=>
  NULL
  ["mode"]=>
  string(7) "monthly"
  ["name"]=>
  string(14) "[email protected]"
  ["package_days"]=>
  int(1095)
  ["start_date"]=>
  string(10) "2024-12-24"
  ["telegram_id"]=>
  int(0)
  ["usage_limit_GB"]=>
  int(500)
  ["uuid"]=>
  NULL
  ["wg_pk"]=>
  NULL
  ["wg_psk"]=>
  NULL
  ["wg_pub"]=>
  NULL
}

Also here's my postman collection with CreateUser and UpdateUser API calls I'm using:

Hiddify_SOF_1 Copy.postman_collection.json

volend0r avatar Feb 06 '25 15:02 volend0r