Search first
What Happened?
When I call updateBlock through the HTTP Rest API, I get a 500 Error. insertBlock and getBlock work.
Reproduce the Bug
curl -X POST http://127.0.0.1:12315/api -H "Authorization: Bearer TEST" -H "Content-Type: application/json" -d '{"method":"logseq.Editor.insertBlock", "args": ["foo"]}'
{":logseq.property/created-by-ref":325,"updatedAt":1759022358284,"createdAt":1759022358284,"parent":47070,"txId":536871572,"id":47726,"uuid":"68d88d16-24cf-4b3d-b127-01eb15a25f94","fullTitle":"o","content":"o","order":"a2","title":"o","page":47070}%
curl -X POST http://127.0.0.1:12315/api -H "Authorization: Bearer TEST" -H "Content-Type: application/json" -d '{"method":"logseq.Editor.updateBlock","args":["68d88d16-24cf-4b3d-b127-01eb15a25f94","foo"]}'
{"statusCode":500,"error":"Internal Server Error","message":"Cannot read properties of null (reading 'error')"}%
~
Expected Behavior
Should update block
Files
No response
Browser, Desktop or Mobile Platform Information
macos Desktop release 13f510c
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
Search first
What Happened?
When I call updateBlock through the HTTP Rest API, I get a 500 Error. insertBlock and getBlock work.
Reproduce the Bug
{":logseq.property/created-by-ref":325,"updatedAt":1759022358284,"createdAt":1759022358284,"parent":47070,"txId":536871572,"id":47726,"uuid":"68d88d16-24cf-4b3d-b127-01eb15a25f94","fullTitle":"o","content":"o","order":"a2","title":"o","page":47070}%{"statusCode":500,"error":"Internal Server Error","message":"Cannot read properties of null (reading 'error')"}%~
Expected Behavior
Should update block
Files
No response
Browser, Desktop or Mobile Platform Information
macos Desktop release 13f510c
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.