Parse platform Can';t获取Unity SDK以连接到aws托管的解析实例(GenerateWWWInstance中的null ref)

Parse platform Can';t获取Unity SDK以连接到aws托管的解析实例(GenerateWWWInstance中的null ref),parse-platform,unity3d,parse-server,Parse Platform,Unity3d,Parse Server,没有人让Unity SDK通过自托管解析部署工作吗? 如果我使用规定的代码,看起来是这样的: ParseClient.Initialize(new ParseClient.Configuration { ApplicationId = "abc123", Server = "http://exampe.ip.com/parse/" }); 我得到的调用堆栈如下所示: ParseClient.Initialize(new ParseClie

没有人让Unity SDK通过自托管解析部署工作吗?
如果我使用规定的代码,看起来是这样的:

    ParseClient.Initialize(new ParseClient.Configuration {
        ApplicationId = "abc123",
        Server = "http://exampe.ip.com/parse/"
    });
我得到的调用堆栈如下所示:

    ParseClient.Initialize(new ParseClient.Configuration {
        ApplicationId = "abc123",
        Server = "http://exampe.ip.com/parse/"
    });
>

NullReferenceException:对象引用未设置为对象的实例
UnityEngine.WWW.flattedHeadersFrom(System.Collections.Generic.Dictionary`2头)(位于C:/buildslave/unity/build/Runtime/Export/WWW.cs:118)
UnityEngine.WWW.ctor(System.String url,System.Byte[]postData,System.Collections.Generic.Dictionary`2头)(位于C:/buildslave/unity/build/artifacts/generated/common/runtime/UtilsBindings.gen.cs:129)
Parse.Internal.HttpClient.generatewwinstance(System.String uri,System.Byte[]字节,System.Collections.Hashtable headerTable)
Parse.Internal.HttpClient+c__显示类10+c__显示类16.b__9()
Parse.PlatformHooks+d_u2e.MoveNext()
调试:LogException(异常)
Parse.d_2e:MoveNext()

我遗漏了什么?

我已经调试了它,这是由于windowskey(又名ClientKey)的空值造成的。将您的初始化代码更改为以下代码,它应该可以工作:

ParseClient.Initialize(new ParseClient.Configuration {
    ApplicationId = "abc123",
    Server = "http://exampe.ip.com/parse/",
    WindowsKey = ''   //<== specify an empty string
});
ParseClient.Initialize(新的ParseClient.Configuration{
ApplicationId=“abc123”,
服务器=”http://exampe.ip.com/parse/",

WindowsKey=''//您使用的是什么unity版本?您是否尝试在GitHub中打开Parse.NET SDK repo的问题?-他们应该能够帮助您解决问题。unity 5.3.x我实际上发现了一个列出的问题,基本上说unity3d compile尚未准备好使用自托管服务。
....
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
  cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
  appId: process.env.APP_ID || 'myAppId',
  masterKey: process.env.MASTER_KEY || 'myMasterKey', //Add your master key here. Keep it secret!
  serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse',  // Don't forget to change to https if needed
  clientKey: '',   <=== possibly not needed, just to be sure
  liveQuery: {
    classNames: ["Scores", "Posts", "Comments"] // List of classes to support for query subscriptions
  }
});