The function seems right. Did you initialize and log into SteemConnect?
The code for that is here
https://github.com/igormuba/steemhere/blob/class5/js/myscript.js
I empalia that on the previous tutorials, but maybe my didactics were not good enough at that time.
Also, make sure you have the package with the dependencies set
https://github.com/igormuba/steemhere/blob/class5/package.json
You are viewing a single comment's thread from:
Yes, I already logged on steemconnect. I also have the dependencies installed. I’m going to upload my code on GitHub so maybe someone can have a look. Sorry to disturb, but I’m literally losing sleep over this. If you know anyone else who has worked on steemconnect, let me know. The scarcity of people using it is a problem.
EDIT: Here's my code in question
https://github.com/ChilledMatter/AkibaSteem
My comment function is under https://github.com/ChilledMatter/AkibaSteem/blob/master/src/components/PostDetail.js
This is really strange. I have got similar problem as only api.me function works. When I am trying to vote or post a comment I get 401 response...
The guy over at steemconnect's github page managed to fix it!
Just authorize your app here.
https://app.steemconnect.com/authorize/@steemconnect