laravel-bitcoinrpc icon indicating copy to clipboard operation
laravel-bitcoinrpc copied to clipboard

Connection Refused

Open suzandi opened this issue 5 years ago • 7 comments

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)

suzandi avatar May 30 '19 13:05 suzandi

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 avatar May 31 '19 16:05 suzandi

@suzandi Check that you set your rpcallowip and rpcbindip properly.

youngbobby avatar Jul 21 '19 07:07 youngbobby

Hi, done this many times, anyway, this works ok when the code and connection is from the same server as bitcoin node is.

suzandi avatar Jul 21 '19 08:07 suzandi

Does the package support omni sub-modules?

pianqifei avatar Jul 27 '19 07:07 pianqifei

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.

scwall avatar Jan 15 '21 20:01 scwall

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 avatar Jan 16 '21 17:01 denpamusic

@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

scwall avatar Jan 19 '21 14:01 scwall