JustArchiNET / ASF-ui

The official web interface for ASF
Apache License 2.0
271 stars 38 forks source link

ASF-ui doesn't load properly previous 50 lines in some scenarios #1622

Closed JustArchi closed 1 year ago

JustArchi commented 1 year ago

Checklist

ASF version

Latest stable release

ASF-ui version

c348d68

Bug description

Okay I don't know what's going on here, but after debugging one of user's ASF-ui I've noticed this not loading:

obraz

In the console log there is this which doesn't tell me anything but maybe you can make sense out of it:

TypeError: o.level is undefined

And this is the answer that ASF has given for /api/nlog/file?count=50&lastAt=79 endpoint, which triggered the bug:

{"Result":{"Content":["2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|ASF|OnASFInit() SteamTokenDumperPlugin is currently disabled according to your configuration. If you'd like to help SteamDB in data submission, please check out our wiki.","2022-12-28 04:14:20|ArchiSteamFarm-3082145|WARN|ASF|OnASFInit() ","==========================================","Функция разработчика ASFEhance включена","==========================================","","==========================================","\"ASFEnhance.EULA\" не принят, некоторые функции отключены","==========================================","","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|ASF|StartInteractiveConsole() Interactive console is now active, type 'c' in order to enter command mode.","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|ASF|Start() Starting IPC server...","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|Microsoft.Hosting.Lifetime|Now listening on: https://[::]:1242","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down.","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Production","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|Microsoft.Hosting.Lifetime|Content root path: /root/ASF","2022-12-28 04:14:20|ArchiSteamFarm-3082145|INFO|ASF|Start() IPC server ready!","2022-12-28 04:14:20|ArchiSteamFarm-3082145|WARN|ASF|RegisterBots() You're running more personal bot accounts than our upper recommended limit (10). Be advised that this setup is not supported and might cause various Steam-related issues, including account suspensions. Check out the FAQ for more details.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|ERROR|ASF|Load() You're using AES setting of SteamPassword property, but you didn't provide a custom --cryptkey. This entirely defeats the protection, as ASF is forced to use its own (known) key. You should provide a custom --cryptkey for making use of the security benefit offered by this setting.","2022-12-28 04:14:30|ArchiSteamFarm-3082145|INFO|Main-fazelukario|Start() Starting...","2022-12-28 04:14:30|ArchiSteamFarm-3082145|INFO|Main-fazelukario|Connect() Connecting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|DeyFoNe-smoken@freemail.hu|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|Овощ-sabsan16|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|ZTE-volkgr_|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|Вилка CSGetto.com-at2112|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|quattro-bl0ze|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|L44040RK4 gamehag.com-nextik_mcpe|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|シ ŠmįĿĒ︻デ═— ➳-faze_lukario|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|KimJong-un-divmaiz|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|Bald Brother-vitas215|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|INFO|FADFSA-semperfi1334@hotmail.com|Start() Starting...","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'quattro-bl0ze' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'DeyFoNe-smoken@freemail.hu' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'シ ŠmįĿĒ︻デ═— ➳-faze_lukario' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'ZTE-volkgr_' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'Bald Brother-vitas215' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'Вилка CSGetto.com-at2112' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'KimJong-un-divmaiz' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'L44040RK4 gamehag.com-nextik_mcpe' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better.","2022-12-28 04:14:31|ArchiSteamFarm-3082145|WARN|ASF|Load() Your Steam password for 'Овощ-sabsan16' seems to be weak. Consider choosing a stronger one for increased security. Details: Add another word or two.  Uncommon words are better."],"TotalLines":199},"Message":"OK","Success":true}

If you can't reproduce it, maybe you can fake try to load this as the answer to loading previous 50 lines and seeing if it works.

Expected behavior

ASF-ui loads previous 50 lines as it should.

Actual behavior

It doesn't, animation is always going, error is written to the console.

Steps to reproduce

No response

Possible reason/solution

I'm 99.9% sure there is something in that payload which triggers a bug, maybe ASF-ui tries to interpret some message as json (and failing), maybe it's some routine screwing up trying to print the stuff in the console-like window - I don't know better, but this is what it looks like to me.

Can you help us with this bug report?

No, I don't have time, skills or willings for any of that

Global ASF.json config file

No response

BotName.json config of all affected bot instances

No response

Additional info

No response

MrBurrBurr commented 1 year ago

Bug is caused by ASF-ui trying to parse deconstructed log level but failing since we got this here: image

Thank you for reporting it, will fix later today in some way