Welcome
Login
Sign up
Home
Solutions
Forums
How can we help you today?
Enter your search term here...
Search
Login
or
Signup
to submit a new ticket
Check ticket status
Start a new topic
Discussions
Kinvey Forums
iOS
Multitple requests result in no response from backend when updating from 1..22
A
Aris Sarris
started a topic
almost 7 years ago
I have a search field triggering calls to my custom endpoint script each time user types character.
With SDK 1.22 I had no problem at all but updating to 1.23 and newer results in no response to api calls when typing is fast.
Here's my request:
___________________________________________________________
```NSMutableDictionary* parameters = [[NSMutableDictionary alloc]initWithObjectsAndKeys:@"search",@"command",aSearchBar.text,@"query", nil];
[KCSCustomEndpoints callEndpoint:@"controller" params:parameters completionBlock:^(id results, NSError *error) {
if (results)
//success
else
//handle error
}];```
_______________________________
When that happens all other api calls come without response either they refer to custom scripts or direct calls to Data Store/Users.
12 Comments
Oldest First
Popular
Newest First
Sorted by
Popular
M
Mike
said
almost 7 years ago
What is the error?
A
Aris Sarris
said
almost 7 years ago
There is no error message.
I get no callback (even with logging)!
As if the request never fires...
A
Aris Sarris
said
almost 7 years ago
Any updates here?
M
Mike
said
almost 7 years ago
This should work. Can you send a small project that can reproduce this behavior?
A
Aris Sarris
said
almost 7 years ago
Is there a mail I could send it?
M
Mike
said
almost 7 years ago
Yes. michael@kinvey.com
A
Aris Sarris
said
almost 7 years ago
Ok ,check mail from WeTransfer - aris@watchlyapp.com
M
Mike
said
almost 7 years ago
This is a bug, this should be fixed in 1.26.
A
Aris Sarris
said
almost 7 years ago
Ok thanks
A
Aris Sarris
said
almost 7 years ago
Updating to 1.26 solved the issue with simultaneous requests but slowed down my tableview update method.
Try switching to 1.26 in the sample project I've sent you to see the results.This was not an issue with previous versions.
All I did was updating to 1.26.
Once I get response from service,I update my datasource and I call [tableview reloadData].
I repeat,this was not an issue with previous SDKs.
A
Aris Sarris
said
almost 7 years ago
Any updates on this one?
M
Mike
said
almost 7 years ago
I was not able to reproduce any specific issues. Can you send a sample project that reproduces the issue?
Login
or
Signup
to post a comment
More topics in
iOS
Why do I get "Undefined symbols" errors when building with KinveyKit?
How do I register push tokens?
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
How can I assign additional properties to users?
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
Authorization Token Invalid or Expired
BOOL and how it is stored in the database.
Offline saving throwing errors
Custom endpoint not able to form request object
Security through business logic
See all 437 topics
Aris Sarris
With SDK 1.22 I had no problem at all but updating to 1.23 and newer results in no response to api calls when typing is fast.
Here's my request:
___________________________________________________________
```NSMutableDictionary* parameters = [[NSMutableDictionary alloc]initWithObjectsAndKeys:@"search",@"command",aSearchBar.text,@"query", nil];
[KCSCustomEndpoints callEndpoint:@"controller" params:parameters completionBlock:^(id results, NSError *error) {
if (results)
//success
else
//handle error
}];```
_______________________________
When that happens all other api calls come without response either they refer to custom scripts or direct calls to Data Store/Users.