Can you try var_dump($nr) to check its content?

On Wednesday, January 27, 2016 at 11:50:21 PM UTC-8, Iulian Pacurar wrote:
>
>
> Hello guys, Looking through my app logs, I saw an awkward error regarding 
> tasks:
>
> PHP Fatal error: Uncaught exception 
> 'google\appengine\runtime\ArgumentError' with message 'An error occurred 
> parsing (locally or remotely) the arguments to taskqueue.BulkAdd().' in 
> /base/data/home/runtimes/php/sdk/google/appengine/runtime/RealApiProxy.php:74
> Stack trace: #0 
> /base/data/home/runtimes/php/sdk/google/appengine/runtime/ApiProxy.php(40): 
> google\appengine\runtime\RealApiProxy->makeSyncCall('taskqueue', 'BulkAdd', 
> Object(google\appengine\TaskQueueBulkAddRequest), 
> Object(google\appengine\TaskQueueBulkAddResponse), NULL) #1 
> /base/data/home/runtimes/php/sdk/google/appengine/api/taskqueue/PushQueue.php(187):
>  
> google\appengine\runtime\ApiProxy::makeSyncCall('taskqueue', 'BulkAdd', 
> Object(google\appengine\TaskQueueBulkAddRequest), 
> Object(google\appengine\TaskQueueBulkAddResponse)) #2 
> /base/data/home/runtimes/php/sdk/google/appengine/api/taskqueue/PushTask.php(292):
>  
> google\appengine\api\taskqueue\PushQueue->addTasks(Array) #3 
> /base/data/home/apps/X/7.390253092521509413/default/application/controllers/user/folder
>  
> in 
> /base/data/home/runtimes/php/sdk/google/appengine/runtime/RealApiProxy.php 
> on line 74
>
> Do you have any idea what is wrong here? Here is my code:
>
> $nr = str_replace('/','-',$this->input->post('number'));
> $queue = new PushQueue();
> $task = new PushTask('/queue/refreshFolder', ['folder' => $nr]);
> $queue->addTasks([$task]);
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e9d42069-cd9a-4cb4-a7d8-e867c091141c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to