iron-io / issues

For Iron.io services issue tracking. Public facing issue tracking for behind the scenes issues.
5 stars 0 forks source link

error while deleteing the message #106

Open sanjay1688 opened 9 years ago

sanjay1688 commented 9 years ago

hey guys

i m using iron mq using laravel 4

'iron' => array( 'driver' => 'iron', 'host' => 'mq-aws-us-east-1.iron.io', 'token' => 'XXXXXXXXXXX', 'project' => 'XXXXXXXXXXXXX', 'queue' => 'app', 'encrypt' => true, ),

$messageid1 = Mail::queue($email_template, $email_template_data, function($message) use ($email_message_data){ $message->to($email_message_data['to'], $email_message_data['reciver_name']) ->bcc($email_message_data['bcc_emailids']) ->subject($email_message_data['email_subject'].' new send email from instant -- '.date( "Y-m-d H:i:s", time())); });

$messageid2 = Mail::later(Carbon::now()->addMinutes(2), $email_template, $email_template_data, function($message) use ($email_message_data){ $message->to($email_message_data['to'], $email_message_data['reciver_name']) ->bcc($email_message_data['bcc_emailids']) ->subject($email_message_data['email_subject'].' new send email delay by 2 min -- '.date( "Y-m-d H:i:s", time())); });

$messageid3 = Mail::later(Carbon::now()->addMinutes(4), $email_template, $email_template_data, function($message) use ($email_message_data){ $message->to($email_message_data['to'], $email_message_data['reciver_name']) ->bcc($email_message_data['bcc_emailids']) ->subject($email_message_data['email_subject'].' new send email delay by 4 min -- '.date( "Y-m-d H:i:s", time())); });

echo "messageid1 -- $messageid1
messageid2 -- $messageid2
messageid3 -- $messageid3";

$deleteid = Queue::deleteMessage('app',array($messageid2));

when i doing these i getting error while deleteing the message

http error: 404 | {"msg":"Message not found"}

i found no issues with laravel. Ironmq rest api is throwing the error.

here is the api request i sent through postman.

[DELETE] http://mq-aws-us-east-1.iron.io/projects/549a5af560c8e60009000030/queues/app/messages/61282852923467...

got  {"msg":"Message not found"}

treeder commented 9 years ago

Are you using the Laravel / IronMQ Push Queues: http://laravel.com/docs/5.0/queues#push-queues ?

If so, you don't need to delete the message, it will be deleted automatically if it was successfully posted to your application.