Search found 20 matches

Go to advanced search

by Jeff Salter
Tue Aug 25, 2015 10:51 am
Forum: Issues
Topic: 429 (Too Many Requests)
Replies: 6
Views: 942
 
Jump to post

429 (Too Many Requests)

I don't know of any, I need to record all the new messages and that require that i go through the loop. It won't work on a pageload event, but if I do the loop with a button and wait between recording the incoming and outgoing then there is not an issue. I tried to use a setTimeout but that did not ...
by Jeff Salter
Tue Aug 18, 2015 12:44 pm
Forum: Issues
Topic: 429 (Too Many Requests)
Replies: 6
Views: 942
 
Jump to post

429 (Too Many Requests)

The error is in the console.log I need these to execute on a screen show, but because of the error, I tried moving it to a button push. the show button is to show the list of messages in database. When I click Incoming: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1260032/429a_inline.png?14399016...
by Jeff Salter
Tue Aug 18, 2015 4:11 am
Forum: Issues
Topic: 429 (Too Many Requests)
Replies: 6
Views: 942
 
Jump to post

429 (Too Many Requests)

I am getting a 429 (Too Many Requests) error on my app.

I'm grabbing messages from twilio (about 50)
storing them to local storage
checking for items in database
recording messages not yet received

due to the error, it won't record all the records

solutions?

by Jeff Salter
Sat Aug 15, 2015 11:37 pm
Forum: Issues
Topic: Query service in a loop
Replies: 9
Views: 1061
 
Jump to post

Query service in a loop

I created a variable "index" and made if of a type number.

when I cosole.log index in the complete event it is not increasing.
It still runs the query multiple times with the same twilioId

Can you help me to make sure that I am inserting the code in the right place?

by Jeff Salter
Fri Aug 14, 2015 8:40 pm
Forum: Issues
Topic: Query service in a loop
Replies: 9
Views: 1061
 
Jump to post

Query service in a loop

https://d2r1vs3d9006ap.cloudfront.net/s3_images/1257515/result1_inline.jpg?1439584730 As you can see the twilioID changes through the loop, but then the query service runs with the last value only. I need it to run on each loop, then I will put an add record based on the vaue of MessageDB. Here is ...
by Jeff Salter
Wed Aug 12, 2015 7:50 pm
Forum: Issues
Topic: Query service in a loop
Replies: 9
Views: 1061
 
Jump to post

Query service in a loop

It's been 4 day since I had any response. My loop runs multiple times as expected the TwilioID changes as expected with each loop, then the Check_message _id query runs once for each record, but does so after the other loop processes and uses just the last value of the loop. It always runs the succe...
by Jeff Salter
Mon Aug 10, 2015 11:17 pm
Forum: Issues
Topic: Query service in a loop
Replies: 9
Views: 1061
 
Jump to post

Query service in a loop

I am trying to record record only messages not yet recorded from twilio. I tried using the advice given above and created the function call on success/error, but it was not working as if the message id is a match then it should error? I record all messages at twilio to the array, the start the loop....
by Jeff Salter
Sun Aug 09, 2015 7:32 pm
Forum: Issues
Topic: Query service in a loop
Replies: 9
Views: 1061
 
Jump to post

Query service in a loop

This is what I came up with but it is running both the success and failure on each pass?? function successFunction(data){ console.log('response is success'); } function errorFunction(data){ console.log("response is error"); } var messages= Apperyio.storage.messageDBData.get(); var currMsg;...
by Jeff Salter
Sun Aug 09, 2015 1:39 am
Forum: Issues
Topic: Query service in a loop
Replies: 9
Views: 1061
 
Jump to post

Query service in a loop

I am checking my database to see if the record exists if it does not exist I run a create service. I am using the following code to 1) get a group of messages from twilio 2) create a local array 3) loop through the array and take action sms_to_local_To.execute(); var items = Apperyio.storage.message...
by Jeff Salter
Fri Aug 07, 2015 7:50 pm
Forum: Issues
Topic: Server code that runs every 5min
Replies: 1
Views: 285
 
Jump to post

Server code that runs every 5min

Can someone help me with server code scripting?
I am currently able to get all my twilio sms messages into a DB but I can only get all of them. I need to write a server script that goes out to twilio and grabs only those that are new and not already received.

Go to advanced search