Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

更新,500是服务器错误,如果你可以调试,可以打个断点调一下代码.如果断点调式也无法复现错误,可以查看项目的日志.我遇到的500大部分原因都是数组越界,对象为null,所以在从数据库读取对象之后,使用对象注意先判断是否为null

  我在调试的时候,遇到了这样的代码报错

POST http://localhost:61597/Tag/GetTagList 500 (Internal Server Error)

  点进去瞧瞧,是这样的报错

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

  反正就是500错误,这个时候我们可以这样去排查原因,点击NetWork,如图:

 我们点击Response就可以查看详细的信息了

原文地址:https://www.cnblogs.com/zkwarrior/p/15237931.html