Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

The description of the Alfred API key does not match the wiki document #760

Open
yillkid opened this issue Aug 27, 2020 · 2 comments
Open
Assignees

Comments

@yillkid
Copy link
Contributor

yillkid commented Aug 27, 2020

According the description of wiki. API token for Alfred of MAM send/receive should be optional, but it's not in actual test.

Reproduce:

Without x-api-key

Request:

curl http://node.deviceproof.org:6699/mam/send \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{"data": {"seed": "IUFXQETKSHDYPFUDO9ILVCAVQIXOHXKCECZYFLPBNVIX9JUXQZJE9URQEEUWPWYZOIACTCGZX9IDIODCA","message": "this is testing message -1 "},"protocol": "MAM_V1"}'

Response:

{"message": "Internal service error"}

With x-api-key

Request:

curl http://node.deviceproof.org:6699/mam/send \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{"x-api-key": "3bff60110c9f0e40628031b16dfefe2eb45a6b0c2237b49ef5109f9aa8eb19a8", "data": {"seed": "IUFXQETKSHDYPFUDO9ILVCAVQIXOHXKCECZYFLPBNVIX9JUXQZJE9URQEEUWPWYZOIACTCGZX9IDIODCA","message": "this is testing message -1 "},"protocol": "MAM_V1"}'

Response:

{"bundle_hash":"ANUZHQGYLNGZUIJKLOPGJCNBBVLSGOLLKDUTPXJKBIRIUKPLQXHH9YANGCYGNLTCLJAVRYLHFZDIPSQJW","chid":"CERTKXUBKWXPTUNCU9MIEJNWOSSKBPWQYSZ9DGGFYSBOCENNXIEFVLRJTU9FMKYFJQR9JVEQPVZQYADPS","msg_id":"T9OZCUWKRSJCHQAZPEZPF"}
@yillkid yillkid changed the title API token for Alfred is not optional The description of the Alfred API key does not match the wiki document Aug 27, 2020
@splasky
Copy link
Contributor

splasky commented Aug 27, 2020

Related #694.

@howjmay
Copy link
Contributor

howjmay commented Aug 27, 2020

it has been handled in #694

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants