Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

routed-echo example: invalid character '-' after top-level value #205

Open
driemworks opened this issue May 3, 2021 · 0 comments
Open

Comments

@driemworks
Copy link

When running the routed-echo example with the "global" flag set to false, the local ipfs daemon returns a 405 when http://localhost:5001/api/v0/id is invoked using http.Get. The endpoint should be called with POST.

ex:
resp, err := http.Post(LOCAL_PEER_ENDPOINT, "application/json", nil)

resp, err := http.Get(LOCAL_PEER_ENDPOINT)

IPFS API Doc
https://docs.ipfs.io/reference/http/api/#api-v0-id

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

1 participant