I have an issue trying to achieve this quest “Add Object With API”. I imported the nuget package in my project and when I try to add an object to the Person table I always have the same issue when I’m running this line :
var saveResult = Backendless.Data.Of("Person").Save(dict);
System.NullReferenceException : ‘Object reference not set to an instance of an object.’
Of is the table name, and Save is asking for a Dictonary in the Backendless library that’s why I’m not passing a simple json object like in Javascript.
Thank you for your support.
API tracking was one of the first thing I checked before writing on the forum.
I’m still digging on this issue. I’ll let you know if I find out a solution.
Even when I try to retrieve data form this table, I have the same error message :
var saveResult = Backendless.Data.Of("Person").Find();
System.NullReferenceException : ‘Object reference not set to an instance of an object.’
I think it’s on EU server as long as I’m seeing this.
Otherwise could you provide me the way I can check it ?
I can try to create a new app if you want ?
Update :
I tried to create a new app (in EU cluster) and i’m sill have the same error when I try to retrieve the table Person from my .NET web service.
For improvement, the returned error should be more explicit. We shouldn’t have any messages coming from the system. It should be handled by backendless and backendless should deliver a personal message to users. Only from my opinion
About the error system, it could have be handled in the library directly to avoid this none explicit message. As you say it’s the result of the method.
Yes, it can be done. But it will not be possible to find out if the application exists without sending a request there.
We will think about what can be done.