Updating a shared note result in an error

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
cli

Research direction

Reproduce the sequence with hackmd-cli export and hackmd-cli notes update for a shared note the user may edit. Then trace the notes update command and its HackMD API response handling; done means an allowed update no longer reports a 403, or the issue is confirmed to belong in the HackMD API repository.

Written by the indexing model from the issue text.

Description

If we try to update a note that is not ours, but that we are allowed to edit, the note is edited but the API answers with a 403 Forbidden answer:

$ hackmd-cli export  --noteId jmYbFyeLQOyS2mwonYqCYw
aa
$ hackmd-cli notes update  --noteId jmYbFyeLQOyS2mwonYqCYw --content="bb"
Update note content failed
    Error: Received an error response (403 Forbidden) from HackMD
    Code: 403
$ hackmd-cli export  --noteId jmYbFyeLQOyS2mwonYqCYw
bb

This problem is on the hackmd API side, but I don't know on which repo to open the issue...

Dominant language
TypeScript
Stars
176
Forks
13
Avg merge
1d 4h
Merged PRs (30d)
5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hackmdio/hackmd-cli

All issues in hackmdio/hackmd-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.