Closed d-delaey closed 10 months ago
@d-delaey check if your .env APP_ENV is set to local
Doesn't work for me either. If I turn on logging of every single view or request, it logs, but ray('test';
or ray()
anything doesn't do a thing.
@d-delaey check if your .env APP_ENV is set to local
it does
Using Laravel sail. Nothing displaying in Ray despite following documentation.
Check your .env that it's set to local
https://github.com/spatie/ray/issues/713#issuecomment-1319653120
It is. I have tried everything. But nothing seems to work.
I ran into the same problem. It also didn't work for me in combination with Laravel sail on Windows 10.
I find the solution here: https://dev.to/stuartcreed/how-to-make-spatie-ray-work-with-laravel-sail-992
Steps to solve the problem: 1) sail composer require spatie/laravel-ray --dev 2) sail artisan ray:publish-config --docker 3) Add '127.0.0.1 host.docker.internal' to /etc/hosts 4) Set the values in ray.php to:
'host' => 'host.docker.internal', 'port' => 23517, 'remote_path' => '/var/www/html', 'local_path' => '/Users/me/projects/project'
Read the comments in the ray.php file for the correct paths.
I have the exact same problem. I have tried every step in the thread.
I only manage to get something on ray when I execute things from inside the project such as an artisan command, When I try to make a request to an endpoint that contains something to be logged on ray i get nothing.
In my case ufw
firewall was blocking. I typically have pleasure employing netcat
to debug such issues.
Running nc -vz host.docker.internal 23517
was a great way to trace down. And running sudo ufw allow 23517
fixed the blocked issue.
In my case
ufw
firewall was blocking. I typically have pleasure employingnetcat
to debug such issues.Running
nc -vz host.docker.internal 23517
was a great way to trace down. And runningsudo ufw allow 23517
fixed the blocked issue.
This worked for me - and it makes sense : the OS has to allow a particular port before it can be used
Stupid me took much longer to realise this.
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Describe the bug Laravel doesn't send data to ray app. I tried with an PHP-Error, ray() function and with dd().
Versions 2.0.1
You can use
composer show
to get the version numbers of:PHP version: Laravel version ^9.19
To Reproduce Steps to reproduce the behavior: Just using ray(), dd() or making an PHP-Error
Expected behavior Corresponding data shown in Ray APp
Desktop (please complete the following information):
Version 5.18.5
Additional context here is my ray.php and docker-compose.yml file and iam using laravel sail. i added host.docker.internal in my /etc/hosts file
`<?php
return [ /*
By default,
ray()
will only transmit data in non-production environments. */ 'enable' => env('RAY_ENABLED', true),/*
When enabled, all cache events will automatically be sent to Ray. */ 'send_cache_to_ray' => env('SEND_CACHE_TO_RAY', false),
/*
dump
ordd
will be sent to Ray as well. */ 'send_dumps_to_ray' => env('SEND_DUMPS_TO_RAY', true),
/*
When enabled all job events will automatically be sent to Ray. */ 'send_jobs_to_ray' => env('SEND_JOBS_TO_RAY', false),
/*
will be sent to Ray as well. */ 'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', true),
/*
When enabled, all queries will automatically be sent to Ray. */ 'send_queries_to_ray' => env('SEND_QUERIES_TO_RAY', false),
/**
/*
/*
When enabled, all requests made to this app will automatically be sent to Ray. */ 'send_requests_to_ray' => env('SEND_REQUESTS_TO_RAY', false),
/**
/*
When enabled, all views that are rendered automatically be sent to Ray. */ 'send_views_to_ray' => env('SEND_VIEWS_TO_RAY', false),
/*
/*
When using Homestead with the Parallels provider, you can replace localhost with '10.211.55.2' */ 'host' => env('RAY_HOST', 'host.docker.internal'),
/*
The port number used to communicate with the Ray app. */ 'port' => env('RAY_PORT', 23517),
/*
/*
/*
`# For more information: https://laravel.com/docs/sail version: '3' services: laravel.test: build: context: ./vendor/laravel/sail/runtimes/8.1 dockerfile: Dockerfile args: WWWGROUP: '${WWWGROUP}' image: sail-8.1/app extra_hosts: