ToDo list example returns 400
Hello!
I followed this tutorial:
After creating a DID Space in my wallet for this blocklet which I can see, I received a 400 error when hitting /api/todo-list
(2024-10-08 12:14:59): Error: GraphQL Status Error 400
(2024-10-08 12:14:59): at AuthClient._doRequest (/Users/void/Projects/bahnk-money/node_modules/@arcblock/sdk-util/src/index.js:300:11)
(2024-10-08 12:14:59): at processTicksAndRejections (node:internal/process/task_queues:95:5)
(2024-10-08 12:14:59): at async queryFn (/Users/void/Projects/bahnk-money/node_modules/@arcblock/sdk-util/src/index.js:149:24)
(2024-10-08 12:14:59): at async Proxy.<anonymous> (/Users/void/Projects/bahnk-money/node_modules/@blocklet/sdk/lib/service/auth.js:126:29)any ideas what to do?
4 条回复
this is the code that throws the error:
here is
req.userHi, seems the version of
@blocklet/sdkused in your blocklet does not match with your blocklet server, please try following to fix:@blocklet/sdkto the latest version, should be v1.16.32 at the time of this reply.@blocklet/clito the latest version, with following commands:blocklet server stop -fnpm install -g @blocklet/cliblocklet server startPlease let us know if the above steps helped or not.
thank you ser! that worked and i am now able to use spaces.
z1e4XATJSo1Y1jom17Uhj1SpKZ4LFmYSaHY welcome to the party!!
z1k7Ks2F6eWNeRWZxwnByDasrHCyLaQQfBG is one of the main arcblock devs. He usually gets back to posts pretty quick, or assigns one of the other devs to help.
I’ll keep my eye out for any response and let you known if I see anything.