nodepie working for pubsub but not for polling