[GH-ISSUE #45] device key is empty #37

Closed
opened 2026-03-03 11:55:35 +03:00 by kerem · 2 comments
Owner

Originally created by @kuyoeku on GitHub (Mar 1, 2021).
Original GitHub issue: https://github.com/Finb/bark-server/issues/45

用的最新版的docker
使用时碰到提示,一直是这个提示。没有发送成功过。麻烦帮忙看一下。
{ "code": 400, "message": "device key is empty", "timestamp": 1614612016 }

命令:
curl -X "POST" "http://*****/push" \ -H 'Content-Type: application/json; charset=utf-8' \ -u ':' \ -d $'{ "body": "te", "device_key": "vysnnvzowlzekezu", "title": "bleem", "category": "category" }'
日志:
`
┌───────────────────────────────────────────────────┐
│ Fiber v2.5.0 │
http://127.0.0.1:8080
│ │
│ Handlers ............ 24 Processes ........... 1 │
│ Prefork ....... Disabled PID ................. 1 │
└───────────────────────────────────────────────────┘

2021-03-01 15:20:15 INFO 10.39.1.141 -> [400] POST 330.801µs /push => /push {
"body": "te",
"device_key": "vysnnvzowlzekezu",
"title": "bleem",
"category": "category"
}`

Originally created by @kuyoeku on GitHub (Mar 1, 2021). Original GitHub issue: https://github.com/Finb/bark-server/issues/45 用的最新版的docker 使用时碰到提示,一直是这个提示。没有发送成功过。麻烦帮忙看一下。 `{ "code": 400, "message": "device key is empty", "timestamp": 1614612016 }` 命令: `curl -X "POST" "http://*****/push" \ -H 'Content-Type: application/json; charset=utf-8' \ -u ':' \ -d $'{ "body": "te", "device_key": "vysnnvzowlzekezu", "title": "bleem", "category": "category" }'` 日志: ` ┌───────────────────────────────────────────────────┐ │ Fiber v2.5.0 │ │ http://127.0.0.1:8080 │ │ │ │ Handlers ............ 24 Processes ........... 1 │ │ Prefork ....... Disabled PID ................. 1 │ └───────────────────────────────────────────────────┘ 2021-03-01 15:20:15 INFO 10.39.1.141 -> [400] POST 330.801µs /push => /push { "body": "te", "device_key": "vysnnvzowlzekezu", "title": "bleem", "category": "category" }`
kerem closed this issue 2026-03-03 11:55:35 +03:00
Author
Owner

@Finb commented on GitHub (Mar 2, 2021):

现在应该解决了,你重新pull一下试试

<!-- gh-comment-id:788689878 --> @Finb commented on GitHub (Mar 2, 2021): 现在应该解决了,你重新pull一下试试
Author
Owner

@kuyoeku commented on GitHub (Mar 2, 2021):

嗯,好了。

<!-- gh-comment-id:788733572 --> @kuyoeku commented on GitHub (Mar 2, 2021): 嗯,好了。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#37
No description provided.