【发布时间】:2018-06-15 05:30:39
【问题描述】:
我使用带有 Java REST API 的 ColdFusion (CF) 应用程序,它们现在都在本地运行。 CF web 应用程序使用 API 来绘制它的一些 UI 元素。 到目前为止,我很少有 GET 调用和一个 POST 调用。
当我尝试进行 POST 调用时出现错误,我已将 CF 请求和响应变量写入转储。
PROPERTIES
url http://localhost:8080/api/delivery/driverPartyProperties?access_token=6ce9a254-78e0-439c-4232-18563237cc
charset [empty string]
clientcert [empty string]
clientcertpassword [empty string]
columns [empty string]
delimiter [empty string]
file [empty string]
firstrowasheaders [empty string]
getasbinary [empty string]
method POST
multipart [empty string]
multiparttype [empty string]
name [empty string]
password [empty string]
path [empty string]
port [empty string]
proxyserver [empty string]
proxyport [empty string]
proxyuser [empty string]
proxypassword [empty string]
redirect [empty string]
resolveurl [empty string]
result [empty string]
textqualifier [empty string]
throwonerror [empty string]
timeout 5
useragent [empty string]
username [empty string]
回应
struct
Charset [empty string]
ErrorDetail [empty string]
Filecontent Connection Timeout
Header [empty string]
Mimetype Unable to determine MIME type of file.
Responseheader
struct [empty]
Statuscode 408 Request Time-out
Text YES
在 API 方面,我看到请求到来并发送响应。我是 CF 语言的新手。谁能给个提示?
【问题讨论】:
-
错误表明这是一个“连接超时”。所以请求永远不会到达你的代码。你确定这是正确的反应吗?这与您看到请求进入并返回响应的声明不符。
-
请求好像超时了。好像没有上传文件。因此,没有 MIME 类型
标签: coldfusion mime-types coldfusion-11