如何解决500 Internal Server Error? [英] How to resolve 500 Internal Server Error?

查看:90
本文介绍了如何解决500 Internal Server Error?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ajax调用时出现"500 Internal Server Error".是什么导致此问题?如何解决?

I am getting "500 Internal Server Error" when I used ajax call. What is causing this problem? How to resolve it?

推荐答案

调试,修复和解决Ajax调用中的服务器错误与其他任何请求的过程完全相同.

debugging, fixing, and resolving a server error from an Ajax call is exactly the same process as any other request.

  1. 检查Web服务器错误日志以获取有关错误原因的任何指示

  1. Check the web server error logs for any indications of what the error is

在发生错误的服务器端代码中引入调试语句(并向您的ajax请求中添加一些内容以将所有响应转储为纯文本)

Introduce debug statements into the serverside code around where the error is occuring (and add a little bit to your ajax request to dump all the response as plain text)

复制在Ajax调用中使用的URL和查询字符串并将其粘贴到浏览器中以查看任何响应也可能有用.

It may also be useful to copy the URL and querystring used in the Ajax call and paste it into your browser to view any responses.

Firefox的Firebug还是一个有用的诊断工具,可以测试作为Ajax调用的一部分发送的内容以及作为响应发送回的内容.

Firebug for Firefox is also a useful diagnostic tool for testing what is being sent as part of the Ajax call and what is being sent back as a response.

这篇关于如何解决500 Internal Server Error?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆