在Java上获得500个内部服务器错误,但有节点200
有人可以帮助吗?
我目前正在研究一个项目并使用一些API。
我有两个相同的代码Java和Node(JavaScript)
两个代码以前工作正常,但是突然之间,Java One现在返回状态代码500,而节点One返回200。
这是节点中的成功:< /strong>
发布http:// localhost:3001/pay
网络 地址:“ :: 1” 家庭:“ IPv6” 端口:3001
请求标头 内容类型:应用程序/JSON 用户代理:Manruntime/7.29.0 接受:/ 缓存控制:无缓存 邮递员:C3A4C3E4-8619-4D00-B1F0-5D32F0E65890 主机:Local主机:3001 接受编码:GZIP,DEFLATE,BR 连接:保持活力 内容长度:71
响应标头 X-Power-by:Express 内容类型:应用程序/JSON; charset = UTF-8 内容长度:693 ETAG:w/“ 2b5-crrygc3cedh/mgzoqaoulbqovsc” 日期:2022年6月3日星期五08:42:47格林尼治标准时间 连接:保持活力 keep-alive:timeout = 5
这是失败的java:
http:// localhost:8090/pay
网络 地址:“ :: 1” 家庭:“ IPv6” 端口:8090
请求标头 内容类型:应用程序/JSON 用户代理:Manruntime/7.29.0 接受:/ 缓存控制:无缓存 邮递员:88453221-AB41-4B51-843B-3022A5DB571A 主持人:Localhost:8090 接受编码:GZIP,DEFLATE,BR 连接:保持活力 内容长度:71
响应标头 内容类型:应用程序/JSON 转移编码:块 日期:2022年6月3日星期五08:43:19格林尼治标准时间 连接:关闭
响应主体 {“ TIMESTAMP”:“ 2022-06-03T08:43:19.971+00:00”,“状态”:500,“错误”:“内部服务器错误”,“路径”:“/付费”}
请注意请求两个项目的标题和身体都是相同的。
Can someone assist.
I am currently working on a project and working with some APIs.
I have two identical codes Java and Node(Javascript)
Both of the codes were working fine before but suddenly the Java one is now returning a status code 500 while the Node one returns 200.
Here is the Successful one in Node:
POST http://localhost:3001/pay
Network
address: "::1"
family: "IPv6"
port: 3001
Request Headers
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.0
Accept: /
Cache-Control: no-cache
Postman-Token: c3a4c3e4-8619-4d00-b1f0-5d32f0e65890
Host: localhost:3001
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 71
Response Headers
X-Powered-By: Express
Content-Type: application/json; charset=utf-8
Content-Length: 693
ETag: W/"2b5-crRygc3ceDh/mgZoQAOuLBQoVsc"
Date: Fri, 03 Jun 2022 08:42:47 GMT
Connection: keep-alive
Keep-Alive: timeout=5
This is the one failing Java:
POST http://localhost:8090/pay
Network
address: "::1"
family: "IPv6"
port: 8090
Request Headers
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.0
Accept: /
Cache-Control: no-cache
Postman-Token: 88453221-ab41-4b51-843b-3022a5db571a
Host: localhost:8090
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 71
Response Headers
Content-Type: application/json
Transfer-Encoding: chunked
Date: Fri, 03 Jun 2022 08:43:19 GMT
Connection: close
Response Body
{"timestamp":"2022-06-03T08:43:19.971+00:00","status":500,"error":"Internal Server Error","path":"/pay"}
Please note the request headers and body is the same for both projects.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论