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

远程连接时报错 #8

Closed
PierXuY opened this issue Dec 8, 2023 · 2 comments
Closed

远程连接时报错 #8

PierXuY opened this issue Dec 8, 2023 · 2 comments

Comments

@PierXuY
Copy link

PierXuY commented Dec 8, 2023

启动服务:
image

然后执行:

from flaxkv import dictdb
import numpy as np

db = dictdb('http://localhost:8000', remote=True)
db[1] = 1

print(len(db))

报错如下:
image

版本号:

  • Name: flaxkv Version: 0.1.6
  • Name: httpx Version: 0.25.2
  • Name: msgpack Version: 1.0.7
@KenyonY
Copy link
Owner

KenyonY commented Dec 8, 2023

我在README遗漏了一些重要信息,这是一个远程调用的示例:

db = dictdb("http://localhost:8000",
            remote=True,
            db_name="test_db",
            rebuild=0)

其中,db_name是必要的

@PierXuY
Copy link
Author

PierXuY commented Dec 8, 2023

可以了

@KenyonY KenyonY closed this as completed Dec 17, 2023
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