微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Swagger-UI:504错误无法满足请求

如何解决Swagger-UI:504错误无法满足请求

我尝试将swagger-ui用于基于Az App-Service的我自己的API。 但是执行时会出错。

#以下curl命令适用于本地。

卷曲:

curl -X POST "http://<url>/process?parse_id=00001&cust_id=1503&ou_id=317" \
-H  "accept: application/json; charset=utf-8" \
-H  "Content-Type: multipart/form-data" \
-F  "data=@1503.pdf;type=application/pdf"

响应正文:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><Meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request Could not be satisfied</TITLE>
</HEAD><BODY>
<H1>504 ERROR</H1>
<H2>The request Could not be satisfied.</H2>
<HR noshade size="1px">
CloudFront attempted to establish a connection with the origin,but either the attempt Failed or the origin closed the connection.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later,or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront,you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: xjQNhgn4qv3q67EQL2HVSP_4gAZLPEv_zHqWlDMFRHlh8FhsGmJoGA==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>

响应标题

 content-length: 1033 
 content-type: text/html 
 date: Tue06 Oct 2020 01:57:25 GMT 
 server: CloudFront 
 status: 504 
 via: 1.1 c151a98c4f38ed859d2924662cc3b841.cloudfront.net (CloudFront) 
 x-amz-cf-id: XK3OXYTXGK03GGKf_t4shG4X6x8-50_hzSBnWWw_id2-xOldOk4G-A== 
 x-amz-cf-pop: TPE50-C1 
 x-cache: Error from cloudfront 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。