MacPass / MacPassHTTP

KeePassHTTP Plugin MacPass
MIT License
199 stars 20 forks source link

when I try to search with Chinese character, result return false #64

Open ChitaGideon opened 1 year ago

ChitaGideon commented 1 year ago
KeePassHTTP server return an error
Status: 200 - Body: b'{"Success":false,"Version":"KeePassHTTPKit","Count":0,"RequestType":"get-logins","Hash":"9F7E8B68-0CCA-4126-B8DC-752B78B8A2F3EC4B3258-7290-57ED-D220-B104FAFFC787"}'
keepasshttp.keepass_http.KeePassHTTPBadResponse: KeePassHTTP server return an error
Status: 200 - Body: b'{"Success":false,"Version":"KeePassHTTPKit","Count":0,"RequestType":"get-logins","Hash":"9F7E8B68-0CCA-4126-B8DC-752B78B8A2F3EC4B3258-7290-57ED-D220-B104FAFFC787"}'
ChitaGideon commented 1 year ago

I use python client keepasshttp to test this http connection

import keepasshttp
import sys
import os
import urllib
# get single credential
my_credential_name_or_url = sys.argv[1]
newC = urllib.parse.quote(sys.argv[1], safe='/', encoding=None, errors=None)
print("argv:", sys.argv,newC)

credential = keepasshttp.get(my_credential_name_or_url)
print(credential is None);
print(credential.name);
print(credential.login)
print(credential.password)