You need to call setCookies on the TradeOfferManager instance, not on the SteamCommunity instance. TradeOfferManager's setCookies also retrieves your account's API key.
I started getting same error when using "acceptAllConfirmations()" for few week now.
I'm from Russia as well so it might be something with DNS/network/certificates and such.
Here is full error:
Common fixes to this error are:
Wrong time / time zone
Switching to English language
None of that tracks or helped.
Error only occuring on my personal PC (same code works on the linux server in Europe with same TZ settings)
Also SDA still works so it must be doing something differently.