Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, expected 1 macaroon, got 0) #5

Open
Mislav96 opened this issue Jul 23, 2019 · 2 comments

Comments

@Mislav96
Copy link

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)>

@asood123
Copy link

Getting same issue. Were you able to find a fix?

@asood123
Copy link

Figured it out, need to create a combined cert when using macaroons: https://dev.lightning.community/guides/python-grpc/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants