PHP Fatal error: Uncaught exception 'google\appengine\runtime\ArgumentError' with message 'An error occurred parsing (locally or remotely) the arguments to taskqueue.BulkAdd().

130 views
Skip to first unread message

Iulian Pacurar

unread,
Jan 28, 2016, 2:50:21 AM1/28/16
to Google App Engine

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]);

Mars Lan

unread,
Jan 28, 2016, 7:49:44 PM1/28/16
to Google App Engine
Can you try var_dump($nr) to check its content?

Filip Pacurar

unread,
Jan 29, 2016, 1:39:50 AM1/29/16
to google-a...@googlegroups.com
IT's 123_108_2016. Every time I deploy the app, the error dissapears and appears after a few hours.

Friday, January 29, 2016 2:49 AM via Postbox
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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.
Thursday, January 28, 2016 9:50 AM via Postbox
--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.

--
Sent from Postbox

Nicholas (Google Cloud Support)

unread,
Jan 29, 2016, 2:44:21 PM1/29/16
to Google App Engine
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.

$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.

$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.

Friday, January 29, 2016 2:49 AM via Postbox
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 google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Thursday, January 28, 2016 9:50 AM via Postbox

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 google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.

--
Sent from Postbox
Reply all
Reply to author
Forward
0 new messages