简体   繁体   English

500内部服务器错误Unity C#

[英]500 Internal Server Error Unity C#

I made a Unity project but, every time I need launch my function Post I get this exception 我做了一个Unity项目但是,每次我需要启动我的函数Post我得到这个例外

500 Internal Server Error UnityEngine.Debug:Log(Object) c__Iterator0:MoveNext() (at Assets/Conexion.cs:69) 500内部服务器错误UnityEngine.Debug:Log(Object)c__Iterator0:MoveNext()(在Assets / Conexion.cs:69)

thanks. 谢谢。

private IEnumerator WaitForRequest(WWW www) {
    yield return www;
    // check for errors
    if (www.error == null) {
        results = www.text;
        Debug.Log(results);
        webserviceResponse(results);
        //onComplete();
    } else {
        Debug.Log (www.error);  //error at this line
    }
}

500 Internal Server Error is an HTTP Response code. 500内部服务器错误是HTTP响应代码。

The Web Server you are making your request to is responding with an HTTP Status Code 500, which is either due to your application posting an invalid request or the server containing a bug of it's own. 您提出请求的Web服务器正在响应HTTP状态代码500,这可能是由于您的应用程序发布了无效请求,或者服务器包含它自己的错误。

Either way this has nothing to do with Unity. 无论哪种方式,这与Unity无关。

Here is the link to the W3 Specifications for this error : https://www.w3.org/Protocols/HTTP/HTRESP.html 以下是此错误的W3规范的链接: https//www.w3.org/Protocols/HTTP/HTRESP.html

Internal Error 500 The server encountered an unexpected condition which prevented it from fulfilling the request. 内部错误500服务器遇到意外情况,导致服务器无法完成请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM