biff31337 Posted November 15, 2023 Share Posted November 15, 2023 Starting with version 1574 hyperserver and app did start to thow problems, i think there is a problem with websockets. Server looks like this, but no error in browser console. It works without reverse proxy. nginx config: location ~ / { proxy_pass http://127.0.0.1:8078; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; access_log off; } I tried to disable the websockets in hyper_server.cfg but no success. Also my client app does not work correctly. Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 15, 2023 Author Share Posted November 15, 2023 ok, i get an error: Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 In the final program, it also does not load the content of unidbgrids. the HandleEvent function returns: _clat_();window.onunload=null;try{enableWarnOnClose(false)}catch(e){};window.location="xxx"; instead of: {"metaData":{"totalProperty":"results","root":"rows","fields":["0","_0","1","_1","2","_2","3","_3","4","_4","5","_5","6","_6","7","_7","8","_8","9","_9","10","_10","11","_11","12","_12","_s4","_sa4","_s11","_sa11","_x","_r"]},"success":true, "results":1, "rows":[{"id":0,"0":0,"_0":"","1":"Purged","_1":"{b:'#FFC0C0',fc:'#000080',fts:'font-weight:bold'}","2":"0:00:05:18","_2":"","3":64,"_3":"","4":1,"_4":"","5":4248,"_5":"","6":"pluggit.exe","_6":"","7":"","_7":"","8":"1.0.0.0","_8":"","9":"15/11/23 13:00:00","_9":"","10":"1.95.0.1575 - 7.5.1","_10":"","11":"0.00 MB - 61.48 MB","_11":"","12":"","_x":1,"_r":0,"_s4":"1\x3Cbr\x3E(2)","_sa4":"{fc:'#808080',fts:'font-weight:bold'}","_s11":"0.00 (0.01) MB\x3Cbr\x3E61.48 (61.48) MB","_sa11":"{fc:'#808080',fts:'font-weight:bold'}"}]} Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 16, 2023 Share Posted November 16, 2023 Hello, Your exe complied with 1574 too? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 21 hours ago, biff31337 said: Starting with version 1574 hyperserver and app did start to thow problems, i think there is a problem with websockets. Server looks like this, but no error in browser console. It works without reverse proxy. nginx config: location ~ / { proxy_pass http://127.0.0.1:8078; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; access_log off; } I tried to disable the websockets in hyper_server.cfg but no success. Also my client app does not work correctly. Hello, Do all dbgrids in your application work normally? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 36 minutes ago, biff31337 said: In the final program, it also does not load the content of unidbgrids. the HandleEvent function returns: _clat_();window.onunload=null;try{enableWarnOnClose(false)}catch(e){};window.location="xxx"; instead of: {"metaData":{"totalProperty":"results","root":"rows","fields":["0","_0","1","_1","2","_2","3","_3","4","_4","5","_5","6","_6","7","_7","8","_8","9","_9","10","_10","11","_11","12","_12","_s4","_sa4","_s11","_sa11","_x","_r"]},"success":true, "results":1, "rows":[{"id":0,"0":0,"_0":"","1":"Purged","_1":"{b:'#FFC0C0',fc:'#000080',fts:'font-weight:bold'}","2":"0:00:05:18","_2":"","3":64,"_3":"","4":1,"_4":"","5":4248,"_5":"","6":"pluggit.exe","_6":"","7":"","_7":"","8":"1.0.0.0","_8":"","9":"15/11/23 13:00:00","_9":"","10":"1.95.0.1575 - 7.5.1","_10":"","11":"0.00 MB - 61.48 MB","_11":"","12":"","_x":1,"_r":0,"_s4":"1\x3Cbr\x3E(2)","_sa4":"{fc:'#808080',fts:'font-weight:bold'}","_s11":"0.00 (0.01) MB\x3Cbr\x3E61.48 (61.48) MB","_sa11":"{fc:'#808080',fts:'font-weight:bold'}"}]} Yes, it happens because Sessions ID is missing in GET request. Starting from build 1574 session id is embedded in HTTP headers instead of being part of the URL. It seems that proxy server doesn't pass HTTP headers for GET requests. Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 Hello, Thank you for your reply. Application and hyperserver is 1575. All DBGrids don't work. Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 i tried proxy_pass_request_headers on; but no success so far.... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 We may add an option to make sending session id through GET headers optional. Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 could the problem be related to underscores in headers? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 Can you please check Request Headers for GET request to see if a parameter named _S_ID is there? Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 looks like Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 Is this your session id? Can you check by looking at web page source? Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 yep Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 Is this a session with working grids? Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 It's the session for hyperserver web admin Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 same problem with my application, it also shows (different) session ID Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 Behind nginx? Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 1 minute ago, Farshad Mohajeri said: Behind nginx? yes Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 2 minutes ago, biff31337 said: same problem with my application, it also shows (different) session ID In above example session ids were the same. Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 1 minute ago, Farshad Mohajeri said: In above example session ids were the same. yes, both are from hyperserver. the app uses different one. Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers this might be the source of the problems? Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 yep, underscores_in_headers on; did the trick, maybe you should pass the session ID without underscores in future releases... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 16, 2023 Administrators Share Posted November 16, 2023 20 minutes ago, biff31337 said: yep, underscores_in_headers on; did the trick, maybe you should pass the session ID without underscores in future releases... So problem is related to field name which is "_S_ID" ? Quote Link to comment Share on other sites More sharing options...
biff31337 Posted November 16, 2023 Author Share Posted November 16, 2023 It's releated to the underscore, it's disabled by default nginx config Quote Link to comment Share on other sites More sharing options...
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.