ElementsProject / filebazaar

Sell digital files with Bitcoin & Lightning :zap:
https://blockstream.com/2018/03/22/filebazaar-joins-the-lightning-charge-lapps.html
MIT License
122 stars 28 forks source link

Error when requesting invoice #3

Closed Fonta1n3 closed 6 years ago

Fonta1n3 commented 6 years ago

Hello,

I am getting the following error when clicking to pay for the image and requesting an invoice. I had everything working but now this happens.

POST /_invoice 500 47.941 ms - 148 Error: write EPROTO 139995458078528:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:

at _errnoException (util.js:1003:13)
at WriteWrap.afterWrite [as oncomplete] (net.js:863:14)

GET /IMG_4349.jpg?preview 200 5.690 ms - 5214134

shesek commented 6 years ago

What URL did you configure for --charge-url when starting filebazaar?

Fonta1n3 commented 6 years ago

Default

charge_url: https://localhost:9112

shesek commented 6 years ago

Try http://localhost:9112/, not https://

shesek commented 6 years ago

Or just don't set charge_url at all, http://localhost:9112/ is the default value you get if nothing is set.

Fonta1n3 commented 6 years ago

That was it, thanks very much.