Rabbit Error Reading Bytes
Contents |
XCTU CellularSolutions Routers Gateways EmbeddedSystems System on Modules Single-Board Computers ConsoleServers SerialServers Serial Device Servers Industrial/Hardened Wireless Serial Servers USB and SerialConnectivity USB Hubs USB error reading data received 0 instead of expected 7 bytes rabbitmq over IP Hubs USB over Serial Hubs USB Sensors Serial Cards By
Expected Connectionopenok; Got
Family XBee Digi XLR PRO Rabbit AnywhereUSB By Family Digi Connect Tank Digi TransPort ConnectCore View all By php amqplib documentation Feature ZigBee 802.15.4 900 MHz Wi-Fi By Feature 4G LTE Cellular PCI Compliant View all Services Digi Remote Manager Digi Device Cloud Technical Cold Chain Solutions Wireless Design
Php Rabbitmq
Services Wireless Design Services Ideation, Definition and Planning Digi Jolt Workshop Product Architecture Rapid Proof-of-Concept Project Planning Development and Test Product Design Antenna Design Software and Firmware RF and Electrical Circuit Design Circuit Board Layout Digi Product Integration Design Review Mechanical Design Certification Certification Assistance Failure Analysis and Mitigation Manufacturing Deployment Manufacturing Test Cloud Services Digi Remote Manager Digi Device Cloud Technical Services Enterprise Support Development Consulting Training Cold Chain Solutions Digi Honeycomb All Services Industries & Customers Energy C&I Metering Demand Response Digital Oil Field Renewable Energy Smart Grid Tank MonitoringIndustrial Precision Agriculture Manufacturing AutomationTransportation Fleet Heavy Machinery Public Transit RailRetail Branch Office Networking Digital Signage and Kiosk Gaming Secure ATMSmart Cities Intelligent Lighting Rail Bus Security Traffic Management Waste & Water ManagementMedical Components for Medical Devices Outpatient Care Devices Enabling wireless robotics aboard the space stationDigi Helps SEPTA Meet Federal PTC RequirementsReduce Maintenance and Energy Costs While Keeping Residents Safe All Stories Knowledge & Resources Documentation Documentation for all Digi products Forum Receive answers from the community Knowledge Base Articles covering common questions Resource Library Read, watch and learn about M2M/IoT Events Training, webinars and industry events Standards and Technologies Hardware and software innovations Projects Gallery Collection of XBee projects Machine Talk Blog Covering industry news and trends Videos Library of tours and technical tips GitHub Repository Repository for Digi codes examples See All Support Enterprise Support 24x7 annual s
Sign in Pricing Blog Support Search GitHub This repository Watch 134 Star 1,344 Fork 440 php-amqplib/php-amqplib Code Issues 91 Pull requests 12 Projects 0 Pulse Graphs New issue Error reading data. Received 0 instead of expected 7 bytes #272 Closed arogachev opened this Issue May 18, 2015 · 6 comments Labels None yet Milestone No milestone Assignees No one assigned 5 participants arogachev commented May 18, 2015 I'm using Vagrant + puphpet, together with this http://www.digi.com/support/forum/28592/problem-while-programming-the-rabbit-r3000-processor extension. Recently I updated to the latest versions and now struggling with this issue. There are some problems with applying configuration (at least for me). User guest was existing by default, but when I tried: sudo rabbitmqctl list_user_permissions guest it says: Listing permissions for user "guest" ... Error: {no_such_user,<<"guest">>} So I executed these commands manually for testing https://github.com/php-amqplib/php-amqplib/issues/272 purposes. sudo rabbitmqctl add_vhost / sudo rabbitmqctl add_user guest guest // was already existing as default sudo rabbitmqctl set_permissions -p / guest ".*" ".*" ".*" Now if I execute: sudo rabbitmqctl list_user_permissions guest It gives the following results: Listing permissions for user "guest" ... / .* .* .* ...done. Then I restarted rabbit server like that: sudo service rabbitmq-server restart Connection is created like that: $connection = new AMQPConnection('127.0.0.1', 5672, 'guest', 'guest', '/'); According to trace, error appears right on this line. Here is full error text: PhpAmqpLib\Exception\AMQPRuntimeException Error reading data. Received 0 instead of expected 7 bytes puphpet config rabbitmq section: rabbitmq: install: '1' settings: port: '5672' users: user-1: admin: true name: admin password: admin permissions: permissions-1: host: / configure_permission: '.*' read_permission: '.*' write_permission: '.*' vhosts: - / plugins: { } I also tried with admin user, the result is the same error. thiagotalma commented May 18, 2015 You read this? arogachev commented May 19, 2015 Yes, but seems like credentials are right. arogachev commented May 19,
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 http://stackoverflow.com/questions/31923989/php-ampqlib-consumer-dies-error-reading-data-received-0-instead-of-expected-1 this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question http://e-mats.org/2012/05/php-amqplib-uncaught-exception-exception-with-message-error-reading-data-recevived-0-instead-of-expected-1-bytes/ x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error reading PHP Ampqlib Consumer Dies: Error reading data. Received 0 instead of expected 1 bytes up vote 0 down vote favorite OK this is part of a Symfony2 Commandline script. While the script is waiting it dies with this Exception. [PhpAmqpLib\Exception\AMQPRuntimeException] Error reading data. Received 0 instead of expected 1 bytes I have searched google and found mention of heartbeat and set_time_out, but when rabbit error reading I have tried to set in the constructor, but instead when I change it from the defaults it dies faster. This is how my script is setup. for the Amqplib aspect of it. // Get the configuration options for RabbitMQ $queueConfig = $this->getApplication()->getKernel()->getContainer()->getParameter("rabbit_mq"); /** * Callback function for RabbitMQ * Everything in the callback function must remain in the call back function. */ $callback = function($msg) { $msgObj = json_decode($msg->body, true); print_r($msgObj); }; $connection = new AMQPConnection( $queueConfig['response']['host'], $queueConfig['response']['port'], $queueConfig['response']['username'], $queueConfig['response']['password'], '/' ); $channel = $connection->channel(); $queueName = 'myQueueName'; $channel->basic_consume($queueName, '', false, true, false, false, $callback); while(count($channel->callbacks)) { $channel->wait(); } This is from AMQPStreamConnection.php which has the constructor. AMQPConnection extends AMQPStreamConnection public function __construct($host, $port, $user, $password, $vhost="/",$insist=false, $login_method="AMQPLAIN", $login_response=null, $locale="en_US", $connection_timeout = 3, $read_write_timeout = 3, $context = null) Thoughts on how to get rid of the error? php rabbitmq php-amqplib share|improve this question asked Aug 10 '15 at 15:52 thenetimp 3,44811630 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted The reason for this issue was that we were using Amazon's load balancer and it was killing our connection at
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