Questions tagged [sendasynchronousrequest]
The sendasynchronousrequest tag has no usage guidance.
1
vote
0answers
11 views
How to throttle Grequests when making asynchronous API calls?
I am using the grequests library to pass ~250000 urls to get data from an api.
The API has a limit of 100 calls per second.
How do I throttle the grequests to only pass in 100 urls per second? I ...
0
votes
1answer
55 views
How to manage the 5 seconds response timeout limit in Dialogflow / Api.ai?
I am using Dialogflow to create an agent / bot which responds to different types of user queries with action items like "I need to get a letter from the HR for address proof". This needs the bot to ...
0
votes
1answer
46 views
How to pick latest api call when multiple api call were made
We ran into a problem when multiple API calls were made repeatedly the UI sometimes renders the wrong data.
Example:
onPageLoad event I have 5 API calls and we have date picker from where we can ...
1
vote
2answers
16k views
APNS :Error Domain = NSCocoaErrorDomain Code=3840
Im registering device data with the server, to get push notification. Here it goes the code,
[NSURLConnection sendAsynchronousRequest: request
queue: ...
2
votes
3answers
3k views
How to call webService Using NSURLConnection in ios
Actually I am using now JSON classes for calling web-services but now i want to call that webservice using NSURLConnection any one provide me code for that.
Please provide me details of frameworks ...
3
votes
2answers
102 views
iOS: How to test Internet connection in the most easy way, without freezing the app (without Reachability)?
In my code I used to use three ways for checking Internet, but there is limits to them:
1/ Reachability method:
- (BOOL)isInternetOk
{
Reachability *curReach = [Reachability ...
0
votes
0answers
50 views
How to execute python file in particular conda environment from javascript?
I have a python file which only runs in a specific conda environment env because it's libraries are only installed there. I need to call this python file from javaScript and I need it to execute in ...
8
votes
1answer
14k views
Error message : [MC] Reading from public effective user settings & [MC] System group container for systemgroup.com.apple.configurationprofiles path is
When I use the following code, I have error messages :
[NSURLConnection sendAsynchronousRequest:request queue:myQueue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
...
0
votes
1answer
178 views
Events and handlers, EventBus in Java
Hi guys I have a question, I googled something but I didn't find something interesting.
I have two threads in java, one in background another one in foreground (UI).
When backgrounds' threads changes ...
0
votes
1answer
37 views
How to achieve cascading http post calls in angularjs?
I need to make two http.post() calls from angular controller and the result of the first one is to be used in the next call. The next call should not be made until and unless we receive the result of ...
0
votes
1answer
71 views
How to use Asihttprequest asynchronous requests server?
My server login parameters:
username
password (md5 encrypted)
logintype
Return parameter:
userId
username
levelid
mobilenum
email
0 Success
10001 account name can not be empty
10002 account does ...
0
votes
3answers
284 views
run a function multiple times without waiting for response in php
I have a mailing function and 100k email ids. I want to call a function multiple times like 10 times and in each time it will process 10k emails. I want to call this function without waiting for ...
2
votes
2answers
561 views
how to wait function call return value befor go to the next line in anguler js
I have two functions is_exist() and save() functions.
In save function I calls is_exist() function before performing a save.it return boolean value.
but my problem is save() function is not wait until ...
0
votes
1answer
55 views
Facing an issue with NSURLSessionDataTask with SynchronousRequest in objective-c
Here is my working code with NSURLConnection sendSynchronousRequest :
+ (Inc*)getData:(NSString*)inUUID {
NSString* urlString = [NSString stringWithFormat:@"/inc/%@", incUUID];
NSURLRequest*...
1
vote
0answers
234 views
Is it possible to trigger events for google spreadsheet API V4 on save of new data on googlesheet?
I am trying to fetch data from a google sheet using Google sheet API V4. Is it possible anyhow to know if someone has saved a data or made changes on the sheet? Based on that I want to make call to ...
2
votes
1answer
124 views
Async requests in guzzlephp (or php-ga-measurement-protocol)
Does anyone know how to send a working and non-blocking async request using guzzlephp?
There seems to be a support for this but it does not seem to be implemented
<?php
$this->guzzle->...
-3
votes
1answer
48 views
getting stuck after sending async request to node.js server
I have tried it in console application
public async Task<string> Getsmth(string a, string b, string c, HttpClient client)
{
string str = "call to node.js"
var response = await client....
0
votes
2answers
57 views
Sendind http json request from AsyncTask
Here is small example for to understand my question:
public class InitSettings_Task extends AsyncTask<Void, Void, Integer> {
@Override
protected Integer doInBackground(Void... params) {
...
1
vote
1answer
69 views
Technologies and design for asynchronous processes in java
I am currently developing an application under a Restfull architecture with Java. I encountered a very big problem during the interactions between my web rest service, another web service soap and the ...
0
votes
1answer
169 views
connectionDidFinishLoading: not called with the use of [NSURLConnection sendAsynchronousRequest: queue: completionHandler:
I would like to launch a request with NSMutableURLRequest when the answer of the [NSURLConnection sendAsynchronousRequest: get a good status code. When I launch the executeForStatusOkMetod containing ...
0
votes
1answer
2k views
how to stop executing react code until axios request gets completed?
I'm using React JS.
At First, I need to fetch data from database using REST API and with this results, I'm setting some variables which further I'm passing to another class. Now I want to make a ...
0
votes
1answer
63 views
How to use the values out of sendAsynchronousRequest?
I am parsing some JSON data using Http POST request and NSURLRequest. But when I have got the values under sendAsynchronousRequest I cannot use those out side of that request. Please see the example ...
2
votes
2answers
57 views
MPI_Isend: how to keep data safe until they're received?
I'm to send many messages using MPI_Isend, but I'm not sure how to ensure my data are safe until they are received, and at the same time, do not use up all available mem.
Currently, I'm doing ...
0
votes
1answer
58 views
How to send Synchronous Requests with $http of Angular.js
hey guys I know this issue posted a lot, but nothing doesn't help me that is why I asking this question.Question is I am facing an issue of sending a synchronous request to php.
here is my Model ...
0
votes
1answer
47 views
On Local Or Live Server, In Simulator NSURLConnection sendAsynchronousRequest Giving response fast but in Device it's delaying in response
NSString * strURL = [NSString stringWithFormat:@"%@action=getResForOffer&offerid=%@",SERVER_URL,strOfferID];
NSURL *url = [NSURL URLWithString:[strURL stringByAddingPercentEscapesUsingEncoding:...
1
vote
2answers
630 views
Android HTTP: Make more than 1 asynctask request
I followed this post to set up an Http Async Request: HttpRequest
So, now, I call: new DownloadTask().execute("http://www.google.com/");
to make this request.
How can I manage different calls? For ...
-1
votes
2answers
1k views
How to call a function on completion of an asynchronus request - Swift 2.0 [duplicate]
I have an asynchronus request in a class like this,
class Req{
func processRequest(){
NSURLConnection.sendAsynchronousRequest(request, queue: queue, completionHandler:{ (response: ...
3
votes
0answers
680 views
Asynchronous method call in Python without creating threads or forking process?
Some years ago, (for comparison) synchronous JavaScript ajax requests were deprecated because of the overhead.
I’m in the following situation :
def ssh_network_operation_with_paramiko(string):
...
0
votes
1answer
203 views
How to create async Webrequest from a list of http links within a text file
I have created a program that downloads links (from a web page) into a htm file. What I am hoping to do is test each one of those links within the htm file and output any links that are broken. ...
0
votes
0answers
104 views
iOS google reverse geocode not working properly
For reverse geocoding am using the following method,
[api getRequest:[NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f&key=%@&language=%@",latV,lonV,...
1
vote
2answers
3k views
consuming web service during splash screen in swift
I am new in ios swift ,
how can I fetch data from webservice during splash screen time ,
In other words I want to make splash screen still appear until the app finish fetching data.
I tried put ...
1
vote
1answer
3k views
Asynchronous service with Spring boot
I'm trying to run a basic Async service using springboot.
I'm getting an Exception while invoking the request. Not sure why it is happening, I have used all the instructions and code snippets from ...
1
vote
2answers
537 views
Check whether internet connection is available [duplicate]
I am writing a function that checks whether a users device is connected to the internet. If it is not it warns the users with an Alert box.
Initially I was using the following below which worked ...
0
votes
0answers
117 views
fetching image from URL taking too much time in watch app
I am fetching an image from a URL to set it as a background image of WKInterfaceGroup in a watch app but it is taking too much time (around 20 seconds) to load the background image, I seem to have ...
0
votes
1answer
188 views
Asynchronous request timeout interval never stop
I have asynchronous request to send image to server with POST. I set timeoutInterval to 10seconds. If it sent image to 10 seconds, everything works good, but when user have worse internet connection, ...
0
votes
1answer
25 views
No code execution when the method sendAsynchronousRequest of NSRLConnection fails
I've implemented this operation:
[NSURLConnection sendAsynchronousRequest:theRequest queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *...
1
vote
0answers
609 views
Json : Save Images into CoreData in Swift
I’m now stuck little bit. First, my code is as follows,
import UIKit
import CoreData
class ViewController: UIViewController {
var eTitles : [String] = []
var jTitles : [String] = []
var pCategories ...
0
votes
1answer
385 views
How to redirect in Asynchronous Servlet?
According to this document, I understand a Request could be dispatch forward to another servlet in one Asynchronous Servlet which also makes container to call complete() and trigger another Servlet or ...
0
votes
1answer
111 views
Upload UIImage in dispatch_async
I have a problem. I call some method in dispatch_async. But in callMethod2 in different object I am uploading image with [NSURLConnection sendAsynchronousRequest. But after upload, It doesn't show me ...
6
votes
2answers
3k views
Best way to handle multiple NSURL connections
I am trying to create an xls sheet programmatically. To fill the sheet, I am making the multiple NSURLConnection around 100. Right now, my approach is :
Make a connection and store the data into an ...
0
votes
1answer
187 views
Returning value from NSURLConnect.SendAsyncronousRequest [duplicate]
func postToServerAction() -> String{
var stat = ""
var url: NSURL = NSURL(string: /*External LinK */)!
var request:NSMutableURLRequest = NSMutableURLRequest(URL:url)
var bodyData =...
0
votes
1answer
53 views
What is the difference between “asynchronousFetchRequest” and “create a private context”?
1.iOS8 provided asynchronousFetchRequest,and we can also create a 'private context' to fetch results, so what is the difference between asynchronousFetchRequest and 'create a private context'?
2.The ...
1
vote
1answer
129 views
NSIS: Make async web request with query string
How do I make an asynchronous GET request to URL like http://www.example.com/somepage?param1=val1¶m2=val2 in NSIS. I don;t care about response - all I want is make a request and disregard ...
0
votes
0answers
546 views
android usb host asynchronous interrupt transfer
public boolean OpenDevice() {
_usbManager = (UsbManager) _context.getSystemService(Context.USB_SERVICE);
HashMap<String, UsbDevice> deviceList = _usbManager.getDeviceList();
...
0
votes
3answers
871 views
Objective-C: Wait to execute 'While' loop until NSURLConnection request is complete
Basically I want a way to issue a NSURLRequest multiple times in a loop until a certain condition has been met. I am using a rest api but the rest api only allows up to a maximum of 1,000 results at a ...
1
vote
0answers
152 views
Objective-C - Network services getting timeout error when app running on background for a long time
I'm developing a little Objective-c app, and everything works fine, but when I run it on my iPhone and I let the app on background for a long time (all day for example) all network services get a ...
1
vote
1answer
98 views
sendAsynchronousRequest:queue:completionHandler: fails while app is in background
I am using internet availability check using NSURLConnection but it fails to call success or error block:
- (void)isNetworkAvailableWithCallBack:(SuccessCallback)successBlock onFailure:(...
1
vote
1answer
913 views
iOS Swift - NSURLConnection.sendAsynchronousRequest cancel request
I'm trying to cancel an asynchronous request if there is a problem with the internet connection.
var connection: NSURLConnection!
self.connection = NSURLConnection.sendAsynchronousRequest(request2, ...
0
votes
1answer
66 views
App freezes / locks up when writing very large files
I'm downloading and writing ~200mb podcasts into the Documents directory with the following code:
var podcastRequest = NSURLRequest(URL: audioUrl)
NSURLConnection.sendAsynchronousRequest(...
0
votes
1answer
352 views
how to display UIAlertView inside sendAsynchronousRequest's completionHandler?
I am developing a login application. I have a registration view, I'm using sendAsynchronousRequest to send registration request.When I received a data back I want to show alert view displaying the ...