spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
575 stars 103 forks source link

Ray isn't working under Herd #929

Open ksorbo opened 3 months ago

ksorbo commented 3 months ago

Describe the bug I am not able to get any response in the ray app from ray() requests from any part of my code. I am working under Herd (ver. 1.9.0) At one point it was working and it stopped suddenly and haven't been able to get it going again. This is not just in one project, but in all my projects.

Versions Ray 2.8.1.0

You can use composer show to get the version numbers of:

PHP version: 8.3 Laravel version (if applicable):11.10.0

To Reproduce Steps to reproduce the behavior:

  1. Put code in initial index page ray('test');

    1. Open ray, run code
    2. Nothing happens:

    Looking at windows ports: 23517 is bound to ray Looking in the ray app settings, it shows port 23517

If I run ray('test') from tinkerwell, it shows that ray is instantiated with the following settings. Spatie\LaravelRay\Ray {#4418 +settings: Spatie\Ray\Settings\Settings {#397

settings: [

    "enable" => true,
    "host" => "10.0.2.2",
    "port" => 23517,
    "remote_path" => null,
    "local_path" => null,
    "always_send_raw_values" => false,
    "send_cache_to_ray" => false,
    "send_dumps_to_ray" => true,
    "send_jobs_to_ray" => false,
    "send_log_calls_to_ray" => true,
    "send_queries_to_ray" => false,
    "send_duplicate_queries_to_ray" => true,
    "send_slow_queries_to_ray" => true,
    "slow_query_threshold_in_ms" => 500,
    "send_requests_to_ray" => false,
    "send_http_client_requests_to_ray" => false,
    "send_views_to_ray" => false,
    "send_exceptions_to_ray" => true,
    "send_deprecated_notices_to_ray" => false,
  ],
  #loadedUsingSettingsFile: true,
  #defaultSettings: [
    "enable" => true,
    "host" => "localhost",
    "port" => 23517,
    "remote_path" => null,
    "local_path" => null,
    "always_send_raw_values" => false,
  ],
},
+limitOrigin: null,
+uuid: "bb171576-1dad-4ee6-bae3-6628c42add44",
+canSendPayload: true,

}

Expected behavior Something (anything) to show up in the ray app.

Desktop (please complete the following information):

bogusbd commented 2 months ago

try to remove 'ray.php' and run

php artisan ray:publish-config --homestead