Page MenuHomeDevCentral

Null exception on PhpAmqpLib lib when a payload is delivered through GitHub
Open, HighPublic

Description

This is related to the github_events exchange, as the notification exchange works.

[2016-03-25 23:01:20] production.INFO: [Gate] New payload. {"service":"GitHub","door":"Nasqueron","delivery":"b8adf700-f2d6-11e5-94a3-7d73378bd0a5","event":"status"} 
[2016-03-25 23:01:20] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function send_channel_method_frame() on null' in /var/wwwroot/default/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php:223
Stack trace:
#0 {main}

Event Timeline

Mitigated in our installation disabling this listener:

diff --git a/app/Listeners/AMQPEventListener.php b/app/Listeners/AMQPEventListener.php
index 73a1536..f87be64 100644
--- a/app/Listeners/AMQPEventListener.php
+++ b/app/Listeners/AMQPEventListener.php
@@ -128,10 +128,12 @@ class AMQPEventListener {
      */
     public function subscribe (\Illuminate\Events\Dispatcher $events) {
         $class = 'Nasqueron\Notifications\Listeners\AMQPEventListener';
+/*
         $events->listen(
             'Nasqueron\Notifications\Events\GitHubPayloadEvent',
             "$class@onGitHubPayload"
         );
+*/
         $events->listen(
             'Nasqueron\Notifications\Events\NotificationEvent',
             "$class@onNotification"