Closed ghost closed 4 years ago
did you modify your serverName as required in deployment steps?
let config = { httpprefix: 'https', port: 443, serverName: 'siteproxy.now.sh', }
Should I change this? If I change it to my server, it still doesn't work.
This is what I changed it to
let config = {
'httpprefix' : 'https',
'port' : '443',
'serverName' : 'poxe.helixable.repl.co' //Test server
}
When I visit youtube.com, this is what is logged in the console:
[HPM] Error occurred while trying to proxy request /url?sa=t&source=web&rct=j&url=https://poxe.helixable.repl.co:443/https/www.youtube.com/&ved=2ahUKEwjw-ajM9LDoAhVRbs0KHXzqA74QFjAAegQIGxAC from poxe--helixable.repl.co to https://www.google.com (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_syste
m_errors)[HPM] Error occurred while trying to proxy request /async/ecr?ei=ntV4XvAy0dy1BvzUj_AL&lei=ntV4XvAy0dy1BvzUj_AL&yv=3&async=encoded_cache_key:ChMI8PmozPSw6AIVUW7NCh186gO-EgIYAg,version_info:YzXJ7cPlt7wdkM8Etx7IT2tBSCeAEBc,attempt:1,_fmt:jspb from poxe--helixable.repl.co to https://www.google.com (ECONNRESET) (https:
//nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /async/ecr?async=encoded_cache_key%3AChMI8PmozPSw6AIVUW7NCh186gO-EgIYAg%2Cversion_info%3AYzXJ7cPlt7wdkM8Etx7IT2tBSCeAEBc%2Cattempt%3A1%2C_fmt%3Ajspb&ei=ntV4XvAy0dy1BvzUj_AL&lei=ntV4XvAy0dy1BvzUj_AL&yv=3 from poxe--helixable.repl.co to https://www.google.com (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /async/ecr?async=encoded_cache_key%3AChMI8PmozPSw6AIVUW7NCh186gO-EgIYAg%2Cversion_info%3AYzXJ7cPlt7wdkM8Etx7IT2tBSCeAEBc%2Cattempt%3A1%2C_fmt%3Ajspb&ei=ntV4XvAy0dy1BvzUj_AL&lei=ntV4XvAy0dy1BvzUj_AL&yv=3 from poxe--helixable.repl.co to https://www.google.com (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
Also, many of the icons in youtube don't load in.
Nevermind. I got it to work. Thanks!
I gotthe server working, but when I try to access youtube videos, it leads to siteproxy.now.sh. It wont use my own server.