Dear community,
I have problem with API call POST /feed/:channel/posts/:id/reactions in javascript.
In my web app, I am successfully logged on and then I call this API, but it response (error: “Not Found”, status: 404, message: null). Really don’t know where is the problem. Has someone similarly problem or know where I have problem?
I have all scopes (‘user_read’, ‘channel_read’, ‘channel_feed_edit’, ‘channel_feed_read’). I was trying ‘verb’ on top-level and now again, but response is still same
Are you using the JavaScript SDK? It is pretty outdated, so it likely has bugs. It also doesn’t seem to support POST. Have you tried with a tool like POSTMan or just plain JavaScript or jQuery? That’ll help narrow down the issue.
The JS SDK supports POST via the verb option. An alternative would be params: { _method: 'POST' } in the options, which is what the verb should do (but doesn’t in old versions of the SDK).
What it does is it sets the _method=POST query parameter (e.g. .../kraken/channels/3ventic?_method=POST), which works at least on the blocks API…
Thanks man, you saved my day. It works!! Thank you so much, but there is maybe bug in api, or bad documentation, because this same call with verb:‘POST’ doesnt work for me. This call is so simple so I dont know where else can be fail, but nevermind, your solution works. Thanks