dex*_*eng 2 api ruby-on-rails ruby-grape
所有
我在使用葡萄时遇到错误.
This page contains the following errors:
error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error.
Run Code Online (Sandbox Code Playgroud)
事实上,我的api工作并返回xml.经过一段时间的运行,它开始出现问题.显示错误.我的服务器是nginx +乘客.rails2.3.8.+葡萄.任何帮助?
错误来自Chrome,当内容类型为xml且xml格式不正确时显示,或者在您的情况下显示为错误,表示为空.您的api仍然可以从不解析和验证内容类型的客户端(例如curl)工作.
当你遇到奇怪的东西时,最好用curl而不是浏览器来打你的api.
| 归档时间: |
|
| 查看次数: |
2287 次 |
| 最近记录: |