【问题标题】:Postman “Could not get any response” http://127.0.0.1:5000/get_chain邮递员“无法得到任何回应” http://127.0.0.1:5000/get_chain
【发布时间】:2018-09-24 16:48:55
【问题描述】:

我正在使用 Postman 使用本地主机进行请求和响应,即使从 postman 中的设置中关闭 ssl 仍然没有响应。有什么想法吗?

【问题讨论】:

  • 您的问题内容不足。
  • 我正在使用 RStudio 执行我的代码,并假设使用 localhost (127.0.0.1:5000/get_chain) 获得“GET”响应。使用 FLASK 框架,我提到的代码是 (@app.route('/get_chain', methods = ['GET']) def get_chain(): response = {'chain': blockchain.chain, 'length': len( blockchain.chain)} return jsonify(response), 200 #运行应用 app.run(host='0.0.0.0', port = 5000)
  • 当您的评论比您的问题更详细时,这就是一个问题。使用这些详细信息更新原始问题。

标签: response postman


【解决方案1】:

重新启动您的本地主机服务器并重试。

【讨论】:

    猜你喜欢
    • 2020-09-20
    • 2017-11-18
    • 2019-03-20
    • 2015-08-21
    • 2019-12-23
    • 2019-04-01
    • 2018-06-03
    • 1970-01-01
    • 2019-01-04
    相关资源
    最近更新 更多