The app no longer receives data #346
Replies: 8 comments 2 replies
-
@B0bbyD0llar Everything on my end is working, even with a fresh project. Would you be able to provide a small sample project that reproduces your issue? Just to cover the bases:
|
Beta Was this translation helpful? Give feedback.
-
this is my very simple test code in a fresh and empty project (only ray is required) <?php
declare(strict_types=1);
require 'vendor/autoload.php';
echo 'Hello World';
ray('Hello World'); As already said, it does not matter which project I take. The firewall was the first thing I checked because it works fine on my other PC. Can I test if sending the payload works without errors? |
Beta Was this translation helpful? Give feedback.
-
Can you share your |
Beta Was this translation helpful? Give feedback.
-
my composer.json look like: {
"name": "test/test",
"description": "for testing",
"type": "project",
"require-dev": {
"spatie/ray": "^1.21"
},
"require": {}
} i dont have any ray.php files in my testing project. there is just an 'vendor' folder, composer.json, composer.lock and raytest.php |
Beta Was this translation helpful? Give feedback.
-
That project configuration works just fine for me. I'm guessing the issue is something with your specific setup.
I'm not sure what you mean by this. I would suggest going into the Ray preferences and changing the port number to <?php
// ray.php
return [
'enable' => true,
'host' => '127.0.0.1',
'port' => 23516,
'remote_path' => null,
'local_path' => null,
'always_send_raw_values' => false,
]; Trying this will eliminate the possibility that there's a conflict with the default port. (Don't forget to change the port back to |
Beta Was this translation helpful? Give feedback.
-
I mean to test if the PHP script is giving out the data properly and the app is not receiving it correctly. I have tried different ports. Unsuccessfully. |
Beta Was this translation helpful? Give feedback.
-
I'm not running Windows, so I'm not sure what else to do beyond that. Hopefully one of the Windows users can give you some guidance.
To do this, I use a custom http proxy written in nodejs to inspect the data that's being sent. I'd be happy to share it if you'd like to debug the data being sent from PHP to the Ray app. I'm not sure it'd be much help in this scenario, but let me know if you'd like to give it a shot. |
Beta Was this translation helpful? Give feedback.
-
@B0bbyD0llar were you able to resolve this issue? If not, try taking a look at ray-proxy to see if you can debug the data being sent (or not) from your code to the Ray app. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The app no longer receives data.
Versions
To Reproduce
In my test.php i have a simple call like ray()->phpinfo(); but nothing appears at the app. It doesn't really matter what command I call, even a simple ray('Hello World'); won't work.
This happens only on one of my two Win10 machines. There is no error message. A few days ago it worked perfectly. I have nothing changed at my workstation.
Expected behavior
Usually shows php information
Desktop (please complete the following information):
Additional context
It does not matter in which project I use ray. Even a completely fresh project produces the same behavior.
Beta Was this translation helpful? Give feedback.
All reactions