laravel-bitcoinrpc
laravel-bitcoinrpc copied to clipboard
Connection Refused
Hello,
I receive a connection refused.
bitcoin.conf
prune=600 rpcuser=username rpcpassword=password daemon=1 keypool=10000
I have tried this on a VPS DO, Ubuntu 18 also on localhost, getting the same error:
cURL error 7: Failed to connect to localhost port 8332: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
After a big headache, I find out the error is from this package. I tried to make a request from my machine to a Digital Ocean server.
Curl is working, the class easybitcoin.php is working but this package is not working....
@suzandi Check that you set your rpcallowip
and rpcbindip
properly.
Hi, done this many times, anyway, this works ok when the code and connection is from the same server as bitcoin node is.
Does the package support omni sub-modules?
same problem the null variable is sent to the constructor, I don't know enough laravel to understand how container send the variables to the class in the meantime you can edit the class to pass the parameters remove config in construct and add array in $config
I know it's a bad idea, but in the meantime it gets the job done.
Hi! Thanks for the heads up.
This is related to #37
Something probably changed in the way laravel handles configuration for Laravel 8.
Sadly I'm nowhere near working laravel instance till Wednesday, to check. For now, please consider this package somewhat incompatible with laravel 8. I'll work on it, when I get home.
Sorry for inconvenience and thanks for understanding.
@denpamusic excuse me actually I answered on the wrong pr :/ . I was inattentive it is of course the pr that I had to answer. https://github.com/denpamusic/laravel-bitcoinrpc/issues/37