Parse.com + Unity WebGL错误

时间:2015-08-24 03:33:19

标签: parse-platform unity3d xmlhttprequest unity-webgl

我在WebGL中有解析+统一的问题,它在android或pc上完美运行,但是当我在网上测试时出现这个错误

exception thrown: SyntaxError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'sme 0' is not a valid HTTP header field value.,Error: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'sme 0' is not a valid HTTP header field value.
    at Error (native)
    at _JS_WebRequest_SetRequestHeader (http://localhost:60265/Release/Web.js:1:299623)
    at aAg (http://localhost:60265/Release/Web.js:28:772491)
    at YBc (http://localhost:60265/Release/Web.js:23:638406)
    at Array.Are (http://localhost:60265/Release/Web.js:24:499286)
    at U4p (http://localhost:60265/Release/Web.js:5:760172)
    at Z4p (http://localhost:60265/Release/Web.js:5:770191)
    at bXo (http://localhost:60265/Release/Web.js:9:582682)
    at Array.vWo (http://localhost:60265/Release/Web.js:9:501983)
    at Array.dap (http://localhost:60265/Release/Web.js:9:944092)Module.printErr @ (index):34Browser.mainLoop.runIter @ Web.js:1Browser_mainLoop_runner @ Web.js:1

你知道这是不是一个bug? 我正在使用个人版的团结

它在chrome和firefox中测试过,在这两种情况下都出现错误

EDITED

此代码打破了WebGL游戏

ParseUser.LogInAsync ("aaaaaa", "bbbbbb").ContinueWith (t => {
        if (t.IsFaulted || t.IsCanceled){

            ParseUser user = new ParseUser ();
            user ["username"] = "aaaaaa";
            user ["password"] = "bbbbbb";


            ParseUser.LogOutAsync().ContinueWith(c=>{
                user.SignUpAsync().ContinueWith(b =>{
                    if (b.IsFaulted || b.IsCanceled){
                        print ("signup fail");
                    }else{
                        print ("signup success");
                    }
                });
            });



        }else{
            print ("login success");
        }
    });

0 个答案:

没有答案