Jump to content

Problem with nginx


biff31337

Recommended Posts

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.

image.png.1dbfc9452224d3e5b73d23cee0e8bc40.png

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.

Link to comment
Share on other sites

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'}"}]}

Link to comment
Share on other sites

  • Administrators
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.

image.png.1dbfc9452224d3e5b73d23cee0e8bc40.png

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?

 

Link to comment
Share on other sites

  • Administrators
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...