Cloud you try creating a new PushTask with inline values like so?

$queue = new PushQueue();
> $task = new PushTask('/queue/refreshFolder', ['folder' => 'given_folder']);
> $queue->addTasks([$task]);


I only ask because I have not been able to reproduce this issue. This may 
provide a better idea of how we can help you. Could you also try with a 
non-default push queue? The API Documentation for PushQueue can be found 
here 
<https://cloud.google.com/appengine/docs/php/refdocs/classes/google.appengine.api.taskqueue.PushQueue>
.

$queue = new PushQueue('customPushQueue');


For the sake of thorough testing, could you also try creating a PushTask 
with different HTTP methods? The API documentation for PushTask can be 
found here 
<https://cloud.google.com/appengine/docs/php/refdocs/classes/google.appengine.api.taskqueue.PushTask>
.

$task = new PushTask('/queue/refreashFolder/, ['folder' => 'given_folder'], 
> ['method' => 'POST']);


Lastly, please include the version of the App Engine SDK for PHP being used 
for more accurate testing.

On Friday, January 29, 2016 at 1:39:50 AM UTC-5, Iulian Pacurar wrote:
>
> IT's 123_108_2016. Every time I deploy the app, the error dissapears and 
> appears after a few hours.
>
> Mars Lan <[email protected]>
> Friday, January 29, 2016 2:49 AM via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
> 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:
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/XtM20RwuNe4/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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
>  
> <https://groups.google.com/d/msgid/google-appengine/e9d42069-cd9a-4cb4-a7d8-e867c091141c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
> Iulian Pacurar <[email protected]>
> Thursday, January 28, 2016 9:50 AM via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
>
> 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 a topic in the 
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/XtM20RwuNe4/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/3cb72e23-3bf9-4227-bd32-8aa372173f55%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/google-appengine/3cb72e23-3bf9-4227-bd32-8aa372173f55%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> Sent from Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>
>

-- 
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/eef6be5f-e34a-4e1d-ac2d-83a15ab9dabc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to