Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InActiveCorpMember errors #646

Closed
marazmatik opened this issue Aug 22, 2020 · 6 comments
Closed

InActiveCorpMember errors #646

marazmatik opened this issue Aug 22, 2020 · 6 comments
Labels
bug packages/notifications Issues related to notification package or its dependencies.

Comments

@marazmatik
Copy link

Illuminate\Routing\Exceptions\UrlGenerationException: Missing required parameters for [Route: corporation.view.tracking] [URI: corporations/{corporation}/tracking]. in /var/www/seat/vendor/laravel/framework/src/Illuminate/Routing/Exceptions/UrlGenerationException.php:17

Stack trace:
#0 /var/www/seat/vendor/laravel/framework/src/Illuminate/Routing/RouteUrlGenerator.php(91): Illuminate\Routing\Exceptions\UrlGenerationException::forMissingParameters(Object(Illuminate\Routing\Route))
#1 /var/www/seat/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php(436): Illuminate\Routing\RouteUrlGenerator->to(Object(Illuminate\Routing\Route), Array, true)
#2 /var/www/seat/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php(417): Illuminate\Routing\UrlGenerator->toRoute(Object(Illuminate\Routing\Route), Array, true)
#3 /var/www/seat/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(777): Illuminate\Routing\UrlGenerator->route('corporation.vie...', Array, true)
#4 /var/www/seat/vendor/eveseat/notifications/src/Notifications/Corporations/Slack/InActiveCorpMember.php(74): route('corporation.vie...', Array)
#5 /var/www/seat/vendor/laravel/slack-notification-channel/src/Messages/SlackMessage.php(201): Seat\Notifications\Notifications\Corporations\Slack\InActiveCorpMember->Seat\Notifications\Notifications\Corporations\Slack{closure}(Object(Illuminate\Notifications\Messages\SlackAttachment))
#6 /var/www/seat/vendor/eveseat/notifications/src/Notifications/Corporations/Slack/InActiveCorpMember.php(79): Illuminate\Notifications\Messages\SlackMessage->attachment(Object(Closure))
#7 /var/www/seat/vendor/laravel/slack-notification-channel/src/Channels/SlackWebhookChannel.php(45): Seat\Notifications\Notifications\Corporations\Slack\InActiveCorpMember->toSlack(Object(Illuminate\Notifications\AnonymousNotifiable))
#8 /var/www/seat/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(148): Illuminate\Notifications\Channels\SlackWebhookChannel->send(Object(Illuminate\Notifications\AnonymousNotifiable), Object(Seat\Notifications\Notifications\Corporations\Slack\InActiveCorpMember))
#9 /var/www/seat/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(106): Illuminate\Notifications\NotificationSender->sendToNotifiable(Object(Illuminate\Notifications\AnonymousNotifiable), 'b94bf220-6ec2-4...', Object(Seat\Notifications\Notifications\Corporations\Slack\InActiveCorpMember), 'slack')
#10 /var/www/seat/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php(19): Illuminate\Notifications\NotificationSender->Illuminate\Notifications{closure}()
#11 /var/www/seat/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(109): Illuminate\Notifications\NotificationSender->withLocale(NULL, Object(Closure))
#12 /var/www/seat/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(54): Illuminate\Notifications\NotificationSender->sendNow(Array, Object(Seat\Notifications\Notifications\Corporations\Slack\InActiveCorpMember), Array)
#13 /var/www/seat/vendor/laravel/framework/src/Illuminate/Notifications/SendQueuedNotifications.php(74): Illuminate\Notifications\ChannelManager->sendNow(Object(Illuminate\Notifications\AnonymousNotifiable), Object(Seat\Notifications\Notifications\Corporations\Slack\InActiveCorpMember), Array)
#14 [internal function]: Illuminate\Notifications\SendQueuedNotifications->handle(Object(Illuminate\Notifications\ChannelManager))
#15 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#16 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#17 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#18 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#19 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#20 /var/www/seat/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array)
#21 /var/www/seat/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}(Object(Illuminate\Notifications\SendQueuedNotifications))
#22 /var/www/seat/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Notifications\SendQueuedNotifications))
#23 /var/www/seat/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#24 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(83): Illuminate\Bus\Dispatcher->dispatchNow(Object(Illuminate\Notifications\SendQueuedNotifications), false)
#25 /var/www/seat/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}(Object(Illuminate\Notifications\SendQueuedNotifications))
#26 /var/www/seat/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Notifications\SendQueuedNotifications))
#27 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(85): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#28 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(59): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\Queue\Jobs\RedisJob), Object(Illuminate\Notifications\SendQueuedNotifications))
#29 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(88): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\RedisJob), Array)
#30 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(368): Illuminate\Queue\Jobs\Job->fire()
#31 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(314): Illuminate\Queue\Worker->process('redis', Object(Illuminate\Queue\Jobs\RedisJob), Object(Illuminate\Queue\WorkerOptions))
#32 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(134): Illuminate\Queue\Worker->runJob(Object(Illuminate\Queue\Jobs\RedisJob), 'redis', Object(Illuminate\Queue\WorkerOptions))
#33 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112): Illuminate\Queue\Worker->daemon('redis', 'notifications', Object(Illuminate\Queue\WorkerOptions))
#34 /var/www/seat/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96): Illuminate\Queue\Console\WorkCommand->runWorker('redis', 'notifications')
#35 /var/www/seat/vendor/laravel/horizon/src/Console/WorkCommand.php(46): Illuminate\Queue\Console\WorkCommand->handle()
#36 [internal function]: Laravel\Horizon\Console\WorkCommand->handle()
#37 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#38 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#39 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#40 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#41 /var/www/seat/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#42 /var/www/seat/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\Container\Container->call(Array)
#43 /var/www/seat/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#44 /var/www/seat/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#45 /var/www/seat/vendor/symfony/console/Application.php(1000): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#46 /var/www/seat/vendor/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand(Object(Laravel\Horizon\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#47 /var/www/seat/vendor/symfony/console/Application.php(147): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#48 /var/www/seat/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#49 /var/www/seat/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#50 /var/www/seat/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#51 {main}

@warlof
Copy link
Member

warlof commented Aug 22, 2020

Hello

Can you please use the provided template to create your issue?

This is especially important actually as there are two major versions running and active release waves.

Thank you

@marazmatik
Copy link
Author

marazmatik commented Aug 22, 2020

Do you need this?
root@srv-seat4:/var/www/seat/vendor/eveseat/notifications/src/Notifications/Corporations/Slack# cat InActiveCorpMember.php

member = $member; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['slack']; } /** * @param $notifiable * @return \Illuminate\Notifications\Messages\SlackMessage */ public function toSlack($notifiable) { $message = (new SlackMessage) ->content('A member has not logged in for some time! Check corp tracking.') ->from('SeAT Corporation Supervisor') ->attachment(function ($attachment) { $attachment->title('Tracking Details', route('corporation.view.tracking', [ 'corporation' => $this->member->corporation_id, ]))->fields([ 'Last Logoff' => $this->member->logoff_date, 'Ship' => $this->member->ship->typeName, ]); }); if (carbon()->diffInMonths($this->member->logon_date) > 1) $message->warning(); if (carbon()->diffInMonths($this->member->logon_date) > 2) $message->error(); return $message; } } [InActiveCorpMember.txt](https://github.com/eveseat/seat/files/5112463/InActiveCorpMember.txt)

@warlof
Copy link
Member

warlof commented Aug 22, 2020

I'm just asking you to fill the issue template which is provided when you create a new issue with relevant information 😕

https://github.com/eveseat/seat/blob/master/.github/ISSUE_TEMPLATE.md

@marazmatik
Copy link
Author

Ok. Restore backup DB from seat3 to seat 4, make notification for no avtive users in corporation,
Got Errors in Failed Jobs

PHP 7.3.21
version

errors_notification

Is it better?

@warlof warlof added bug packages/notifications Issues related to notification package or its dependencies. labels Aug 22, 2020
@warlof
Copy link
Member

warlof commented Aug 23, 2020

Can you tell me if you're using this notification with a mail or a slack integration ?

@marazmatik
Copy link
Author

I use only slack

warlof added a commit to warlof/eveseat-notifications that referenced this issue Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug packages/notifications Issues related to notification package or its dependencies.
Projects
None yet
Development

No branches or pull requests

2 participants