venfiw Posted December 24, 2021 Report Posted December 24, 2021 hello Dr. McKay my country can't visit steamcommunity.com so we use nginx Reverse Proxy to fix it and it work server { listen 443 ssl; server_name steamcommunity.com; ssl_certificate C:/nginx-1.15.5/cert/cert.crt; ssl_certificate_key C:/nginx-1.15.5/cert/cert.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass https://23.2.16.11; proxy_set_header Host steamcommunity.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; } } var community = new SteamCommunity({ "request": request.defaults({"rejectUnauthorized": false}), }); var manager = new TradeOfferManager({ steam: client, community: community, language:'en' }); and yesterday my country can't visit steampowered.com at some time and in that time my script can't login steamcommunity accept offer so i use same way for api.steampowered.com server { listen 443 ssl; server_name store.steampowered.com; ssl_certificate C:/nginx-1.15.5/cert/cert.crt; ssl_certificate_key C:/nginx-1.15.5/cert/cert.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass https://23.2.16.11; proxy_set_header Host store.steampowered.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; } } server { listen 443 ssl; server_name api.steampowered.com; ssl_certificate C:/nginx-1.15.5/cert/cert.crt; ssl_certificate_key C:/nginx-1.15.5/cert/cert.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass https://23.2.16.11; proxy_set_header Host api.steampowered.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; } } var client = new SteamUser({ "request": request.defaults({"rejectUnauthorized": false}) }); and my chrome can open it but it not works for script the script always can't login steamcommunity.com by use steamusercookies I guess it may be that the certificate is not set for the script Is there a place where i can set up , so i can visit api.steampowered.com or u have some suggest Best regards i try to find node_modules\steamcommunity\index.js 223 lines // this.httpRequestPost({ // "uri": "https://api.steampowered.com/IMobileAuthService/GetWGToken/v1/", // "form": { // "access_token": token // }, // "json": true // } //change to this.httpRequestPost({ "uri": "https://api.steampowered.com/IMobileAuthService/GetWGToken/v1/", "form": { "access_token": token }, "json": true, "rejectUnauthorized": false } but it now works Quote
venfiw Posted December 24, 2021 Author Report Posted December 24, 2021 (edited) ### 等待脚本完成自检 ### 报价连接尚未完成 ### 等待连接Steam社区:7秒 [T3#12] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 [T3] Got incomplete message; expecting 4368 more bytes [T3#13] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 [T3#14] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 ### 等待脚本完成自检 ### 报价连接尚未完成 ### 等待连接Steam社区:8秒 [T3#15] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 [T3#16] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 [T3#17] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 Sending message: ClientRequestWebAPIAuthenticateUserNonce ### 等待脚本完成自检 ### 报价连接尚未完成 ### 等待连接Steam社区:9秒 [T3#18] Handled message: Community.GetAppRichPresenceLocalization#1_Response Sending message: Community.GetAppRichPresenceLocalization#1 [T3#19] Handled message: ClientPersonaState [T3#20] Handled message: ClientRequestWebAPIAuthenticateUserNonceResponse Webauth failed: unable to verify the first certificate [T3#21] Handled message: ClientPersonaState [T3#22] Handled message: Community.GetAppRichPresenceLocalization#1_Response and here is debug now i add this code and it can work process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0 Edited December 24, 2021 by venfiw Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.