Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/451.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Meteor无法连接到prerender.io服务器_Javascript_Meteor_Prerender - Fatal编程技术网

Javascript Meteor无法连接到prerender.io服务器

Javascript Meteor无法连接到prerender.io服务器,javascript,meteor,prerender,Javascript,Meteor,Prerender,我已在本地计算机上设置了预渲染服务器 它位于端口3033上,当我输入它时,它似乎显示了我的meteor站点的渲染版本 curl http://localhost:3033/http://localhost:3000/?_escaped_fragment_= 知道我的prerender站点可以工作,我正在尝试设置它,以便 curl http://localhost:3000/?_escaped_fragment_= 它应该给我流星的位置 我使用的是这个包(),在settings.json文件中

我已在本地计算机上设置了预渲染服务器

它位于端口3033上,当我输入它时,它似乎显示了我的meteor站点的渲染版本

curl http://localhost:3033/http://localhost:3000/?_escaped_fragment_=
知道我的prerender站点可以工作,我正在尝试设置它,以便

curl http://localhost:3000/?_escaped_fragment_=
它应该给我流星的位置

我使用的是这个包(),在settings.json文件中有这一行

  "PrerenderIO": {
    "prerenderServiceUrl": "http://localhost:3033/"
  }
然而,当我跑的时候

curl http://localhost:3000/?_escaped_fragment_=
它什么也不返回,我的meteor服务器日志上显示了这条消息

res.send(status, body): Use res.status(status).send(body) instead
而且它似乎没有击中预渲染服务器


这条消息是什么?为什么我不能点击prerender服务器?

当你说“它什么也不返回”时,你的意思是你看到一个空白页吗?你看到的是什么状态码?您在prerender服务器的控制台中看到任何信息吗?@prerender.io-它完全没有返回任何信息,但没有击中服务器。事实证明,在这个包中,我甚至需要在本地服务器上指定一个令牌字符串。我已经提交了一个pull请求,以查看作者是否会更改此设置,但只需指定一个伪令牌字符串,就可以轻松解决此问题。