login problem
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- api, authentication, cli
Research direction
Start by running the hackmd-cli login entry point with the token that succeeds against GET https://api.hackmd.io/v1/me via curl, and compare the CLI request with that working request. Use the reported versions as reproduction targets; done means login succeeds with the same valid token instead of retrying and reporting invalid credentials.
Written by the indexing model from the issue text.
Description
hackmd-cli login
Retrying request... attempt #1 after delay of 200ms
Retrying request... attempt #2 after delay of 400ms
Retrying request... attempt #3 after delay of 800ms
Login failed
Error: Please ensure your credentials are correct
from curl, token woking fine:
curl -v https://api.hackmd.io/v1/me \
-H "Authorization: Bearer $HMD_API_ACCESS_TOKEN"
> GET /v1/me HTTP/2
> Host: api.hackmd.io
> User-Agent: curl/8.18.0
> Accept: */*
> Authorization: Bearer 4.........................
>
* Request completely sent off
< HTTP/2 200
< date: Fri, 21 Aug 2026 23:13:40 GMT
< content-type: application/json; charset=utf-8
< content-length: 236
< content-language: dev
< set-cookie: locale=dev; path=/; expires=Sat, 21 Aug 2027 23:13:40 GMT
< x-hackmd-api-version: 1.0.0
< x-target-scope: user
< x-target-id: 8..............
< x-ratelimit-userlimit: 400
< x-ratelimit-userremaining: 400
< x-ratelimit-userreset: 1788220799999
< etag: W/"ec-hTX............."
<
* Connection #0 to host api.hackmd.io:443 left intact
{"id":"8.........","name":"A..........","email":"d............@g.................","userPath":"j2B-..................","photo":"https://www.gravatar.com/avatar/......?s=96","teams":[],"upgraded":false}
versions: 2.4.0, 2.5.0 and @hackmd/hackmd-cli/2.5.0-beta.20260527230745.bf73672 linux-x64 node-v22.22.1
How do I fix this?
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hackmdio/hackmd-cli
-
Config command Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
hackmdio/hackmd-cli#45 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
hackmdio/hackmd-cli#105 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
hackmdio/hackmd-cli#89 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
hackmdio/hackmd-cli#87 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
hackmdio/hackmd-cli#86 · 4 comments · 1 reaction ·
All issues in hackmdio/hackmd-cli
Similar issues
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
supermomonga/zcode-acp#24 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/growthbook#7100 ·
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100