更新,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,如图:

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)

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)

 

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

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)

 

相关文章:

  • 2021-05-21
  • 2021-12-12
  • 2021-03-31
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2022-12-23
  • 2021-07-14
  • 2021-12-22
相关资源
相似解决方案