lightninglabs / lightning-coindesk Goto Github PK
View Code? Open in Web Editor NEWA tutorial news app exemplifying Lightning Network micropayments integration
A tutorial news app exemplifying Lightning Network micropayments integration
The docs (https://github.com/lightninglabs/lightning-coindesk#setup) point to a different repository than this one:
git clone https://github.com/MaxFangX/lightning-coindesk
cd lightning-coindesk
Is this a typo, which one should I use?
Hello,
This repository is listed on the Awesome Lightning-Network list, which is a collection of useful lightning-network projects. However, it seems that the 'lightning-network' topic is missing from this repository's topics.
Adding the 'lightning-network' topic will help users discover your project more easily and recognize its relevance to the lightning-network ecosystem. To add the topic, please follow these steps:
Thank you for your attention and for contributing to the lightning-network community!
After inserting the signature of the message it fails, telling the status code of the RPC is UNKNOWN.
Here the traceback:
Environment:
Request Method: POST
Request URL: http://localhost:8000/verify/
Django Version: 1.11.1
Python Version: 2.7.15
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'coindesk']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cuspis/ln-workspace/lightning-coindesk/coindesk/views.py" in verify
45. user = authenticate(request=request, **kwargs)
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/contrib/auth/init.py" in authenticate
100. user = backend.authenticate(*args, **credentials)
File "/home/cuspis/ln-workspace/lightning-coindesk/coindesk/auth_backends.py" in authenticate
25. verifymessage_resp = stub.VerifyMessage(ln.VerifyMessageRequest(msg=csrf_token, signature=signature))
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in call
507. return _end_unary_response_blocking(state, call, False, deadline)
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in _end_unary_response_blocking
455. raise _Rendezvous(state, None, None, deadline)
Exception Type: _Rendezvous at /verify/
Exception Value: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, expected 1 macaroon, got 0)>
After inserting the signature of the message it fails, telling the status code of the RPC is StatusCode.UNAVAILABLE.
Here the traceback:
Environment:
Request Method: POST
Request URL: http://localhost:8000/verify/
Django Version: 1.11.29
Python Version: 3.7.4
Django Server OS: Mac 10.14.6 (18G3020)
lnd
: 0.9.0-betaTraceback:
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/david/app/lightning-coindesk/coindesk/views.py" in verify
45. user = authenticate(request=request, **kwargs)
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/django/contrib/auth/__init__.py" in authenticate
70. user = _authenticate_with_backend(backend, backend_path, request, credentials)
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/django/contrib/auth/__init__.py" in _authenticate_with_backend
116. return backend.authenticate(*args, **credentials)
File "/Users/david/app/lightning-coindesk/coindesk/auth_backends.py" in authenticate
19. verifymessage_resp = stub.VerifyMessage(ln.VerifyMessageRequest(msg=bytes(csrf_token, 'utf-8'), signature=signature))
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/grpc/_channel.py" in __call__
826. return _end_unary_response_blocking(state, call, False, None)
File "/Users/david/.pyenv/versions/lightning-coindesk-3.7.4/lib/python3.7/site-packages/grpc/_channel.py" in _end_unary_response_blocking
729. raise _InactiveRpcError(state)
Exception Type: _InactiveRpcError at /verify/
Exception Value: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1585453463.337544000","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1585453463.337539000","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}"
After inserting the signature of the message it fails, telling the status code of the RPC is UNAVAILABLE.
Here the traceback:
Environment:
Request Method: POST
Request URL: http://localhost:8000/verify/
Django Version: 1.11.1
Python Version: 2.7.13
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'coindesk']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/zoe/work/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/home/zoe/work/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/home/zoe/work/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/zoe/work/ln-workspace/lightning-coindesk/coindesk/views.py" in verify
45. user = authenticate(request=request, **kwargs)
File "/home/zoe/work/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py" in authenticate
102. user = backend.authenticate(*args, **credentials)
File "/home/zoe/work/ln-workspace/lightning-coindesk/coindesk/auth_backends.py" in authenticate
26. verifymessage_resp = stub.VerifyMessage(ln.VerifyMessageRequest(msg=csrf_token, signature=signature))
File "/home/zoe/work/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in __call__
508. return _end_unary_response_blocking(state, call, False, deadline)
File "/home/zoe/work/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in _end_unary_response_blocking
455. raise _Rendezvous(state, None, None, deadline)
Exception Type: _Rendezvous at /verify/
Exception Value: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Endpoint read failed)>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.