跳到主要内容
ArcBlock Community

v1.16.34-beta-20241207-134904-3c3d9a35 版本 blocklet init 问题

null
开发者
blocklet-serverresolved
javascript
? blocklet title 3d-chess
? Please write concise description: Blocklet Project
? What's the group of the blocklet? static
? What's the entry point of the blocklet? .
✖ Failed to init blocklet: failed to connect to store (The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined)

19 条回复

Pengfei Zhu21个月前

我这里尽然没发重现,如果换个title呢?

image.png

null21个月前

换个标题也会, 奇怪,同个版本

null21个月前
javascriptCopy
fatych@fatych-mac 3d-chess % sudo blocklet init
blocklet init v1.16.34-beta-20241207-134904-3c3d9a35
ℹ Server DID zNKtmKeZKBZFjC3J1n6TTocSr4FL4qZUyaqZ
ℹ Server config from /Users/fatych/Downloads/arcblock/.blocklet-server/config.yml
✔ Fetching accessible IPs (forceIntranet: undefined)... Done in 9.237s
✔ You can access your Blocklet Server with either of the following URLs
This utility will walk you through create such files and folders(if not exists):
- blocklet.yml
- blocklet.md
- screenshots/

It only covers common items, if you want to check all items, please visit:
https://github.com/ArcBlock/blocklets#keyinfo-blockletjson

Press ^C to quit.
? blocklet title chess
? Please write concise description: Blocklet Project
? What's the group of the blocklet? static
? What's the entry point of the blocklet? .
✖ Failed to init blocklet: failed to connect to store (The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined)
fatych@fatych-mac 3d-chess % 
null21个月前

懂了,新安装 v1.16.34-beta-20241207-134904-3c3d9a35了,没有去 blocklet server start 就不会了,不懂blocklet init 会跟这个还有关联

wangshijun21个月前

哦,这是因为新版 server 支持用本地的 DID Connect 来产生 Blocklet DID

Pengfei Zhu21个月前

重新启动server(blocklet server start ), 再次执行还会报错吗?

还是说,只要启动了 server,再 init 就报错呢?(如果启动了 server,默认会先连接本地 DID Connect,如果本地未启动,会使用线上服务 )

null21个月前

我研究了下,本地启动了server,会连接刀本地did connect,不会报错

本地不启动server,连接官方商店的,就会报会话不存在

null21个月前

按照shijun说的,要安装新版本beta

Pengfei Zhu21个月前(edited)

我研究了下,本地启动了server,会连接刀本地did connect,不会报错, 本地不启动server,连接官方商店的,就会报会话不存在

也就是说之前的报错没有了?

本地不启动server,连接官方商店的,就会报会话不存在

这个是由于 connect url 格式化有问题,已经再 Beta 修复了

null21个月前

我还没有更新到最新的beta,现在还会

null21个月前

好像不对,我这个版本已经是最新的了吧

null21个月前

blocklet init 在连接商店时一直报会话不存在 z1RhRPtzwGaHtSAGZ8GrYv7voFhgMxRq7Gb 现在是报这个问题

Pengfei Zhu21个月前

那试试升级到最新的 Beta 可以解决问题。

image.png

null21个月前

现在就是最新的了

null21个月前
javascriptCopy
fatych@192 3d-chess % sudo blocklet init
Password:
blocklet init v1.16.34-beta-20241207-134904-3c3d9a35
This utility will walk you through create such files and folders(if not exists):
- blocklet.yml
- blocklet.md
- screenshots/

It only covers common items, if you want to check all items, please visit:
https://github.com/ArcBlock/blocklets#keyinfo-blockletjson

Press ^C to quit.
? blocklet title chess
? Please write concise description: Blocklet Project
? What's the group of the blocklet? static
? What's the entry point of the blocklet? .
If browser does not open automatically, please open the following link in your browser:  https://store.blocklet.dev/gen-key-pair?__connect_url__=aHR0cHM6Ly9hYnR3YWxsZXQuaW8vaS8_YWN0aW9uPXJlcXVlc3RBdXRoJnVybD1odHRwcyUyNTNBJTI1MkYlMjUyRnN0b3JlLmJsb2NrbGV0LmRldiUyNTJGYXBpJTI1MkZkaWQlMjUyRmdlbi1rZXktcGFpciUyNTJGYXV0aCUyNTNGX3RfJTI1M0Q0YmI4N2UwOA&source=Blocklet+CLI
✖ Waiting for connection: https://store.blocklet.dev Fail after 1.969s
Request failed with status code 400
✖ Failed to init blocklet: failed to connect to store ([400] Session not found or expired)
Pengfei Zhu21个月前

image.png

我尝试了多台本地设备,都可以创建成功(连接的服务端,本地的都成功)。 要不我们再观察,看看后续是否会出现问题?

null21个月前

我尝试清楚浏览器缓存,发现可以了,所以是不是之前如果有一个会话不存在的报错,就会影响后面的连接

null21个月前

自动跳转打开的是苹果的safari浏览器

Pengfei Zhu21个月前

感谢您的反馈!

我们的自动打开的是使用默认浏览器。

回复