Error Reading Data
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 132 nero express error reading data Star 1,325 Fork 436 php-amqplib/php-amqplib Code Issues 89 Pull nero error reading data audio cd requests 12 Projects 0 Pulse Graphs New issue Error reading data. Recevived 0 instead of error reading data from fastcgi server expected 1 bytes #72 Closed anki-code opened this Issue Mar 14, 2013 · 43 comments Projects None yet Labels None yet
451 Unknown Error Reading Data
Milestone No milestone Assignees No one assigned 27 participants and others anki-code commented Mar 14, 2013 Hi, when I try to run videlalvaro/php-amqplib/demo/amqp_consumer.php I've got the error after process completed: PHP Fatal error: Uncaught exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Error reading data. Received 0 instead of expected error reading data from the connection firebird 1 bytes' in /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:50 Stack trace: #0 /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(106): PhpAmqpLib\Wire\IO\StreamIO->read(1) #1 /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(145): PhpAmqpLib\Wire\AMQPReader->rawread(1) #2 /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(236): PhpAmqpLib\Wire\AMQPReader->read_octet() #3 /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(264): PhpAmqpLib\Connection\AbstractConnection->wait_frame(0) #4 /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(111): PhpAmqpLib\Connection\AbstractConnection->wait_channel(1, 0) #5 /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(207): PhpAmqpLib\Channel\AbstractChannel->next_fram in /application/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php on line 50 What's the problem? Help me please. videlalvaro commented Mar 19, 2013 I can't diagnose it with this information. I also can't reproduce it Scyks commented Mar 20, 2013 Found this issue too. You can reproduce it by providing a wrong vhost to AMQPConnection. videlalvaro commented Mar 20, 2013 What's the point of providing a wrong vhost? Scyks commented Mar 20, 2013 I mean, when you configure a reabbitmq queue with no vhost and implemnt a vhost like "test" in connection. I hope you could understand me :) anki-code commented Mar 22, 2013 Code: $connect = new AMQPConnection('myhost', 5672, 'test', 'test'); // default vhost = '/' RabbitMQ (3.0.4): root@myhost:~# rabbitmqctl list_user_permissio
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company error reading data from the connection delphi Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
4.3.2 Internal Error Reading Data
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million
4.3.2 Internal Error Reading Data Yahoo
programmers, just like you, helping each other. Join them; it only takes a minute: Sign up AMQPRuntimeException: Error reading data. Received 0 instead of expected 7 bytes up vote 4 down vote favorite It was working, but https://github.com/php-amqplib/php-amqplib/issues/72 now it's not working anymore! I'm using php-amqplib and RabbitMQ. It shows this error: (drag and drop the screenshot to new tab if it's not clear) when I'm trying to create a new AMQP connection: $connection = new AMQPConnection('localhost', 5672, 'username', 'password'); The code inside the library that is causing this error is: public function read($n) { $res = ''; $read = 0; while ($read < $n && !feof($this->sock) && (false !== ($buf = http://stackoverflow.com/questions/25226607/amqpruntimeexception-error-reading-data-received-0-instead-of-expected-7-bytes fread($this->sock, $n - $read)))) { if ($buf === '') { continue; } $read += strlen($buf); $res .= $buf; } if (strlen($res)!=$n) { throw new AMQPRuntimeException("Error reading data. Received " . strlen($res) . " instead of expected $n bytes"); } return $res; } When I put this just before the exception: die($res." :".$n); the result is: Ï :7 :7 it is called twice, in first call $res is two null characters then "Ï" and in second call it's just null. oh and I deleted files inside mnesia folder of rabbitmq database manually once, I don't know if that caused the problem, but the RabbitMQ Management which is a web based app running on port 15672 is working fine. php rabbitmq amqp share|improve this question asked Aug 10 '14 at 7:47 M D P 630518 add a comment| 3 Answers 3 active oldest votes up vote 9 down vote accepted I found the solution. the user I was using didn't have access to the vhost, so in RabbitMQ Management I went to the admin tab and clicked on the username, and clicked on "set permission" button. share|improve this answer answered Aug 10 '14 at 21:49 M D P 630518 1 Yes, this usually happens when you have the wrong credentials. I should update the lib and actually show a proper
this shows up repeatedly with some particular query, try with latest Firebird http://www.firebirdfaq.org/faq96/ version. If the problem still occurs, contact the developers, http://e-mats.org/2012/05/php-amqplib-uncaught-exception-exception-with-message-error-reading-data-recevived-0-instead-of-expected-1-bytes/ as it it most probably a bug in Firebird. Please note that other instances of Firebird server are available when one of them crashes. If you are using the SuperServer, the entire server would crash, but it would be error reading restarted automatically (either by the Firebird Guardian or by the system if you run it as a system service under Windows). If you use Classic, only one instance would crash, while others would keep running. In both cases, Firebird server is available for subsequent connections, so this may trick error reading data you into thinking that server did not crash. Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page. If you are a commercial tool maker and your tool features a great way to handle the issue written about in this FAQ, please check out our advertisement page. All contents are copyright © 2007-2016 FirebirdFAQ.org unless otherwise stated in the text. Links Firebird News FlameRobin Home Inventory powered by FB Add content Advertise About The Firebird FAQ Categories NewbiesSQLInstallation and setupBackup and restorePerformanceSecurityConnectivity and APIHOWTOsErrors and error codesMiscellaneous
Instagram Involved with Tapte Minner pwned.no Spillhistorie Gamer.no License This work by Mats Lindh is licensed under a Creative Commons Attribution 3.0 Norway License. About me I’m a PHP and Python developer currently located in Fredrikstad, Norway where I do consulting work and work as a technical lead. My interest include web application development (PHP since 1998), the demoscene (since 1997) and I have a weird fascination for interesting problems and digital maps. Contact me at mats