Open Mislav96 opened 5 years ago
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
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/home/cuspis/ln-workspace/lightning-coindesk/coindesk/views.py" in verify
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/contrib/auth/init.py" in authenticate
File "/home/cuspis/ln-workspace/lightning-coindesk/coindesk/auth_backends.py" in authenticate
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in call
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in _end_unary_response_blocking
Exception Type: _Rendezvous at /verify/ Exception Value: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, expected 1 macaroon, got 0)>
Getting same issue. Were you able to find a fix?
Figured it out, need to create a combined cert when using macaroons: https://dev.lightning.community/guides/python-grpc/
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
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/home/cuspis/ln-workspace/lightning-coindesk/coindesk/views.py" in verify
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/django/contrib/auth/init.py" in authenticate
File "/home/cuspis/ln-workspace/lightning-coindesk/coindesk/auth_backends.py" in authenticate
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in call
File "/home/cuspis/ln-workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in _end_unary_response_blocking
Exception Type: _Rendezvous at /verify/ Exception Value: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, expected 1 macaroon, got 0)>