79126068

Date: 2024-10-25 14:17:47
Score: 11 🚩
Natty: 4.5
Report link

did you resolve that ? because i got a similar issue in my code: i have 2 microservices laravel: in the 1st one i send to the queue a variable like this:

        Queue::connection('rabbitmq')->push('App\Jobs\UpdateProductStock', $orderData);

and in the job that will recieve this it shows : local.ERROR: Unresolvable dependency resolving [Parameter #0 [ $orderData ]] in class App\Jobs\UpdateProductStock {"exception":"[object] in the reciever job i have :

namespace App\Jobs;

use App\Models\Product;
use Illuminate\Bus\Queueable;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Queue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Facades\Queue;
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Connectors\RabbitMQConnector;

class UpdateProductStock implements ShouldQueue
{


    /**
     * Create a new job instance.
     */
    public $orderData;

    public function __construct($orderData)
    {
        $this->orderData = $orderData;
    }

    /**
     * Execute the job.
     */
    public function handle()
    {
        Log::info("Test job executed successfully.");

so i understand that the variable sent by the 1st service was not recieved to the 2nd one. any help please ?

Reasons:
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (2): any help please
  • RegEx Blacklisted phrase (3): did you resolve that
  • RegEx Blacklisted phrase (1.5): resolve that ?
  • RegEx Blacklisted phrase (1.5): help please
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Abdessalem Ben Chika