cloudamqp / cloudamqp/php-amqplib-example

Notice: Trying to get property 'body' of non-object in

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
6
Forks
5
PR merge metrics
No merged PRs in 30d

Description

After run the file get error, and not message goes to failure queues

Notice: Trying to get property 'body' of non-object in

Notice: Trying to get property 'delivery_info' of non-object in

Notice: Trying to access array offset on value of type null

Fatal error: Uncaught PhpAmqpLib\Exception\AMQPProtocolChannelException: PRECONDITION_FAILED - unknown delivery tag 0 in G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php:224 Stack trace: #0 [internal function]: PhpAmqpLib\Channel\AMQPChannel->channel_close(Object(PhpAmqpLib\Wire\AMQPReader)) #1 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AbstractChannel.php(217): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader)) #2 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AbstractChannel.php(374): PhpAmqpLib\Channel\AbstractChannel->dispatch('20,40', '\x01\x96,PRECONDITION...', NULL) #3 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php(207): PhpAmqpLib\Channel\AbstractChannel->wait(Array, false, 0) #4 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\send.php(38): PhpAmqpLib\Channel\AMQPChannel->close() #5 in G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php on line 224

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running send.php and inspect line 38, where AMQPChannel::close() appears in the stack trace; use the preceding notices and unknown delivery tag 0 error to trace the failure. Done means the property and array-offset notices are gone and the message reaches the failure queue without the AMQP protocol exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, rabbitmq
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.