django - Pubnub Access Management with Python -
i trying use pubnub access management python error message saying 'signature not match'. know documentation says means secret/publish/subscribe keys may wrong have triple checked correct. checked in pubnub developer console , works fine there.
here method using:
def get_pubnub_token(request, connector_id): pubnub = pubnub(settings.pubkey, settings.subkey, secret_key=settings.pub_secret_key) authkey = str(uuid.uuid4()) result = pubnub.grant(channel=connector_id+"-pnpres", auth_key=authkey, read=true, write=true, ttl=60) if result['error']: return httpresponse(status=result['status']) result = pubnub.grant(channel=connector_id, auth_key=authkey, read=true, write=true, ttl=60) if result['error']: return httpresponse(status=result['status']) result = pubnub.grant(channel=connector_id+"-stream", auth_key=authkey, read=true, write=true, ttl=60) if result['error']: return httpresponse(status=result['status']) jsonstr = get_json(authkey) return httpresponse(jsonstr, content_type='application/json') i wonder if has done before , if give me tips why seeing error.
which version of sdk on?
also, may happen because system clock not set ntp. can verify set ntp, , try again?
if persists, please contact @ support@pubnub.com , we'd happy trace issue down you.
geremy
Comments
Post a Comment