ton icon indicating copy to clipboard operation
ton copied to clipboard

Check `check_parse_header_completed()` failed

Open dmalvigamma opened this issue 4 years ago • 0 comments

Hi.. I tried to deploy an application as a tonsite. but my remote proxy is getting this error <Check check_parse_header_completed() failed> Also, the page is not loading completely from the client proxy.

however, when I try to load the application via IP address on browser, it is running fine. I don't understand where the error is coming from , I also tried to configure my nginx server for reverse proxy and for cors permissions, but the problem remain as it is. This is the picture of error on remote rldp proxy server Screenshot from 2020-04-27 21-53-03

This is my nginx configuration

< server{ listen 80 default_server; server_name hello.temp.ton v65hb6itigv3akbpetb4ldeevolnxtto2znnkmzfx7zhe34c6v4qprx.adnl;

Wide-open CORS config for nginx

location / { proxy_http_version 1.1; proxy_cache_bypass $http_upgrade;

proxy_set_header Upgrade           $http_upgrade;
proxy_set_header Connection        "upgrade";
proxy_set_header Host              $host;
proxy_set_header X-Real-IP         $remote_addr;
proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host  $host;
proxy_set_header X-Forwarded-Port  $server_port;

proxy_pass http://localhost:3000;

 if ($request_method = 'OPTIONS') {
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    #
    # Custom headers and headers various browsers *should* be OK with but aren't
    #
    add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
    #
    # Tell client that this pre-flight info is valid for 20 days
    #
    add_header 'Access-Control-Max-Age' 1728000;
    add_header 'Content-Type' 'text/plain; charset=utf-8';
    add_header 'Content-Length' 0;
    return 204;
 }
 if ($request_method = 'POST') {
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
    add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
 }
 if ($request_method = 'GET') {
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
    add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
 }

} }

and these are the elements which are not loading Screenshot from 2020-04-27 21-43-17

I'm so confused because my other node application is running just fine as a tonsite.. while this application can't handle it to be run as tonsite. I don't understand where is the problem lying.

Anyone seen this error and how to resolve it ? Thanks in advance !!

dmalvigamma avatar Apr 27 '20 16:04 dmalvigamma