getaddrinfo ENOTFOUND https://project.app #26
Comments
Is that immediately after startup? Or did you try and perform an action that caused that to occur? |
Your ssl files also don't match your host. |
It happens just after startup. |
I'm experiencing the same problem as well. My host matches my crt and key. Using |
It also causes the same issue when using http://. |
I'm having the same issue. Initially I thought it was because I was running node 5 (see other thread). But I upgraded to Node 6.5.0 and I'm still getting this on homestead. Here's a print out of my shell:
Looks like its including the http://stackoverflow.com/questions/17690803/node-js-getaddrinfo-enotfound |
I'm using MAMP to manage my hosts, so a non-port-80-request is not handled by MAMP. That means, the dns record doesn't exist. But Node is checking for the existence and throws an error. The Server.serverProtocol() method is setting the secure flag by checking the host option. Without https:// in the host option, it will always start a http server. I changed the condition to (this.options.protocol == 'https') to determine if a http or a https server should be used. The https:// prefix is not needed in the host option anymore. That works for me. |
Just confirming you mean you changed this line https://github.com/tlaverdure/laravel-echo-server/blob/master/src/server.ts#L49 To
Then you dropped using any protocol in the json file for the
Thanks! |
No, the protocol option is still needed, but you don't need the protocol in the host option anymore. This is a part of my json config. {
"host": "example.local",
"port": "6001",
"protocol": "https"
} |
Although I wrote it wrong above, (now fixed) that's actually what I meant in the first place! 😆 Thank you! |
@jonnywilliamson can you add PR? |
@tlaverdure this answer fixed my issue. Can you apply these changes? |
Merge. @pderiy let me know if that closes this. |
It works great. Thank you guys. |
you havenot host for '127.0.0.1 localhost' |
{ "appKey": "90mf4eojc6ogu4sfpg4g12i9escptj68p1qg2iu34rmnr09d58lj7f5h4j4g", "authEndpoint": "/broadcasting/auth", "authHost": null, "database": "sqlite", "databaseConfig": { "redis": {}, "sqlite": { "databasePath": "/database/laravel-echo-server.sqlite" } }, "devMode": false, "host": "https://project.app", "port": "6001", "referrers": [ { "host": "pasta-masta.app", "apiKey": "44ter5dm3isq6p89f8s1ufufkfo4jddun22ijbga617sedige4lsj9c8mc0r" } ], "sslCertPath": "/home/user/.valet/Certificates/pasta-masta.app.crt", "sslKeyPath": "/home/user/.valet/Certificates/pasta-masta.app.key" }
The problem is with host attribute. It works without "https://" prefix. But I need SSL.
The text was updated successfully, but these errors were encountered: