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

Examples return PHP Notice #128

Open
savedario opened this issue Oct 5, 2018 · 1 comment
Open

Examples return PHP Notice #128

savedario opened this issue Oct 5, 2018 · 1 comment

Comments

@savedario
Copy link

I just followed the instructions to install nats and this client. I then created the example in the README.md and I get the following messages:
PHP Notice: Undefined index: tls_required in /home/dario/development/gnatsd/vendor/repejota/nats/src/Nats/ServerInfo.php on line 106
PHP Notice: Undefined index: tls_verify in /home/dario/development/gnatsd/vendor/repejota/nats/src/Nats/ServerInfo.php on line 107
Data: Marty McFly
I can see with Xdebug that $connectionresponse contains:
INFO {"server_id":"xZgNYujpa0EHN3jgo7NDKI","version":"1.3.1","proto":1,"go":"go1.9.7","host":"0.0.0.0","port":4222,"auth_required":true,"max_payload":1048576,"client_id":8}
Running PHP5.6 with NATS 1.3.1.

Looking at the code, it is clear it assumes a response's content that is not there.
Is it the NATS's version or... ?

@mardachevdv
Copy link

Hi @savedario
I think you used version 0.8.7
The problem fixed #122 and merged into develop branch
I hope new release with this fix will be soon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants