Yesterday everything worked fine but today I can’t fetch data,
my project is made in NET, I made a simple query but it doesn’t bring me anything, This is intermittent because there are times when it works well, I don’t know if it’s my mistake or backendless
it is my code
type or paste code here
DataQueryBuilder queryBuilder = DataQueryBuilder.Create();
queryBuilder.SetPageSize(100);
AsyncCallback<IList<Dictionary<string, object>>> findCallback;
findCallback = new AsyncCallback<IList<Dictionary<string, object>>>(
foundObjects =>
{
print("foundObjects");
print(JsonConvert.SerializeObject(foundObjects));
},
error =>
{
print("Server returned an error " + error.Message);
});
Backendless.Data.Of("quiz_groups").Find(queryBuilder, findCallback);
Thanks
is there an error when it doesn’t work?
When I execute the function, sometimes it brings me the data and sometimes it doesn’t.
the second image is where it does not bring me the data and it is the same function, do not change anything.
Could you please get more details about the NullReferenceException shown in the screenshot?
Yes, that is
NullReferenceException: Object reference not set to an instance of an object
Weborb.Client.HttpEngineWithClient+d__6`1[T].MoveNext () (at :0)
— End of stack trace from previous location where exception was thrown —
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at :0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) (at :0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at :0)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
Do you use the same “queryBuilder” variable anywhere else in the code?
yes but in other functions
Could you try creating a separate program that executes just that logic to see if the problem happens there?
It is the new Script
using BackendlessAPI;
using BackendlessAPI.Async;
using BackendlessAPI.Persistence;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class exampleQuiz : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
print("newScript");
DataQueryBuilder queryBuilder = DataQueryBuilder.Create();
queryBuilder.SetWhereClause("users_related in ('" + "4705FC99-9077-4477-8243-CCE6E7471EAE" + "')");
queryBuilder.SetPageSize(100);
AsyncCallback<IList<Dictionary<string, object>>> findCallback;
findCallback = new AsyncCallback<IList<Dictionary<string, object>>>(
foundObjects =>
{
print("foundObjects");
print(JsonConvert.SerializeObject(foundObjects));
},
error =>
{
print("Server returned an error " + error.Message);
});
Backendless.Data.Of("quiz_groups").Find(queryBuilder, findCallback);
}
void Update()
{
}
}
That is the first deploy
That is the second deploy
Thank you, this is helpful. Please let us know your application ID so we can try replicating the problem on our end.
Yes, this is mi application ID: 7E819124-27B5-85D2-FF77-9FB70FF33800
Thank you. I opened an internal ticket to investigate this issue. The ticket number is BKNDLSS-28603
Hello mark, I have the same problem again, the problem had been solved but the service failed again today, what can I do?
How was the problem solved?
I thought they had helped me solve it, because a certain time passed and it started to work fine, but today it failed again
We didn’t do anything with the ticket yet.
This is strange, well but what would be the next step to solve this problem?
Can you create a sample program that reproduces the issue?