dquangsinh / php-amqplib

Automatically exported from code.google.com/p/php-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Expecting AMQP method, received frame type: 3 #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When I run a consumer and process some messages the next fails and goes to 
the queue again so it fails again when I start the consumer

server, version: 8.0, properties: capabilities=(), copyright=Copyright (C) 
2007-2011 VMware, Inc., information=Licensed under the MPL.  See 
http://www.rabbitmq.com/, platform=Erlang/OTP, product=RabbitMQ, version=2.5.1

0000  01 00 00 00 00 00 78 00  0A 00 0B 00 00 00 38 07   ......x. ......8.
0010  6C 69 62 72 61 72 79 53  00 00 00 13 50 48 50 20   libraryS ....PHP
0020  53 69 6D 70 6C 65 20 41  4D 51 50 20 6C 69 62 0F   Simple A MQP lib.
0030  6C 69 62 72 61 72 79 5F  76 65 72 73 69 6F 6E 53   library_ versionS
0040  00 00 00 03 30 2E 31 08  41 4D 51 50 4C 41 49 4E   ....0.1. AMQPLAIN
0050  00 00 00 25 05 4C 4F 47  49 4E 53 00 00 00 06 76   ...%.LOG INS....v
0060  6F 63 61 6C 69 08 50 41  53 53 57 4F 52 44 53 00   ocali.PA SSWORDS.
0070  00 00 06 76 6F 63 61 6C  69 05 65 6E 5F 55 53 CE   ...vocal i.en_US▒

< 10,11: Connection.start_ok
waiting for 10,20, 10,30
waiting for a new frame
> 10,30: Connection.tune
< [hex]:
0000  01 00 00 00 00 00 0C 00  0A 00 1F FF FF 00 02 00   ........ ...▒▒...
0010  00 00 00 CE                                        ...▒

< 10,31: Connection.tune_ok
< [hex]:
0000  01 00 00 00 00 00 08 00  0A 00 28 01 2F 00 00 CE   ........ ..(./..▒

< 10,40: Connection.open
waiting for 10,41, 10,50
waiting for a new frame
> 10,41: Connection.open_ok
Open OK! known_hosts:
using channel_id: 1
< [hex]:
0000  01 00 01 00 00 00 05 00  14 00 0A 00 CE            ........ ....▒

< 20,10: Channel.open
waiting for 20,11
waiting for a new frame
> 20,11: Channel.open_ok
Channel open
< [hex]:
0000  01 00 01 00 00 00 23 00  28 00 0A 00 00 10 70 72   ......#. (.....pr
0010  6F 63 65 73 73 2D 77 61  76 2D 66 69 6C 65 06 64   ocess-wa v-file.d
0020  69 72 65 63 74 02 00 00  00 00 CE                  irect... ..▒

< 40,10: Channel.exchange_declare
waiting for 40,11
waiting for a new frame
> 40,11: Channel.exchange_declare_ok
< [hex]:
0000  01 00 01 00 00 00 1C 00  32 00 0A 00 00 10 70 72   ........ 2.....pr
0010  6F 63 65 73 73 2D 77 61  76 2D 66 69 6C 65 02 00   ocess-wa v-file..
0020  00 00 00 CE                                        ...▒

< 50,10: Channel.queue_declare
waiting for 50,11
waiting for a new frame
> 50,11: Channel.queue_declare_ok
< [hex]:
0000  01 00 01 00 00 00 2E 00  32 00 14 00 00 10 70 72   ........ 2.....pr
0010  6F 63 65 73 73 2D 77 61  76 2D 66 69 6C 65 10 70   ocess-wa v-file.p
0020  72 6F 63 65 73 73 2D 77  61 76 2D 66 69 6C 65 00   rocess-w av-file.
0030  00 00 00 00 00 CE                                  .....▒

< 50,20: Channel.queue_bind
waiting for 50,21
waiting for a new frame
> 50,21: Channel.queue_bind_ok
< [hex]:
0000  01 00 01 00 00 00 3E 00  3C 00 14 00 00 10 70 72   ......>. <.....pr
0010  6F 63 65 73 73 2D 77 61  76 2D 66 69 6C 65 25 50   ocess-wa v-file%P
0020  48 50 50 52 4F 43 45 53  53 5F 6F 74 69 6C 69 6F   HPPROCES S_otilio
0030  2E 6E 65 6F 73 69 73 74  65 63 2E 64 6F 6D 5F 31   .neosist ec.dom_1
0040  38 38 32 39 00 CE                                  8829.▒

< 60,20: Channel.basic_consume
waiting for 60,21
waiting for a new frame
> 60,21: Channel.basic_consume_ok
waiting for any method
waiting for a new frame
> 60,60: Channel.basic_deliver
waiting for a new frame
waiting for a new frame
New msg: {"id":65}
using channel_id: 2
< [hex]:
0000  01 00 02 00 00 00 05 00  14 00 0A 00 CE            ........ ....▒

< 20,10: Channel.open
waiting for 20,11
waiting for a new frame
> 20,11: Channel.open_ok
Channel open
< [hex]:
0000  01 00 02 00 00 00 2B 00  28 00 0A 00 00 18 70 72   ......+. (.....pr
0010  6F 63 65 73 73 2D 74 72  61 6E 73 6C 61 74 69 6F   ocess-tr anslatio
0020  6E 2D 74 65 78 74 06 64  69 72 65 63 74 02 00 00   n-text.d irect...
0030  00 00 CE                                           ..▒

< 40,10: Channel.exchange_declare
waiting for 40,11
waiting for a new frame
> 40,11: Channel.exchange_declare_ok
< [hex]:
0000  01 00 02 00 00 00 21 00  3C 00 28 00 00 18 70 72   ......!. <.(...pr
0010  6F 63 65 73 73 2D 74 72  61 6E 73 6C 61 74 69 6F   ocess-tr anslatio
0020  6E 2D 74 65 78 74 00 00  CE                        n-text.. ▒

< 60,40: Channel.basic_publish
< [hex]:
0000  02 00 02 00 00 00 1A 00  3C 00 00 00 00 00 00 00   ........ <.......
0010  00 00 09 90 00 0A 74 65  78 74 2F 70 6C 61 69 6E   ...▒..te xt/plain
0020  02 CE                                              .▒

< [hex]:
0000  03 00 02 00 00 00 09 7B  22 69 64 22 3A 36 35 7D   .......{ "id":65}
0010  CE                                                 ▒

< [hex]:
0000  01 00 01 00 00 00 0D 00  3C 00 50 00 00 00 00 00   ........ <.P.....
0010  00 00 01 00 CE                                     ....▒

< 60,80: Channel.basic_ack
waiting for any method
waiting for a new frame

  [Exception]
  Expecting AMQP method, received frame type: 3

Original issue reported on code.google.com by arielfer...@gmail.com on 18 Oct 2011 at 9:37

GoogleCodeExporter commented 8 years ago
I'm having the same issue, with basic_get

< 60,70: Channel.basic_get
waiting for 60,71, 60,72
waiting for a new frame
> 60,71: Channel.basic_get_ok
waiting for a new frame
< [hex]:
0000  01 00 01 00 00 00 0F 00  3C 00 46 00 01 07 64 65   ........ <.F...de
0010  66 61 75 6C 74 01 CE                               fault.?

< 60,70: Channel.basic_get
waiting for 60,71, 60,72
waiting for a new frame

PHP Fatal error:  Uncaught exception 'Exception' with message 'Expecting AMQP 
method, received frame type: 3' in /EZ/php2/lib/amqp.inc:396
Stack trace:
#0 /EZ/php2/lib/amqp.inc(1405): AbstractChannel->wait(Array)
#1 /EZ/php2/lib/MessageConnection.php(65): AMQPChannel->basic_get('default', 
true)
#2 /EZ/php2/lib/testController.php(15): MessageConnection->getMessages()
#3 {main}
  thrown in /EZ/php2/lib/amqp.inc on line 396

here is the what the frame looks like:

Array
(
    [0] => 3
    [1] => asdf
)

Original comment by Mkeasl...@ezyield.com on 25 Jan 2012 at 2:42