ledgerconnect / steemconnect

Signer app for Steem
https://steemconnect.com
MIT License
159 stars 88 forks source link

unauthorized_client error #374

Closed rapunzelscodes closed 5 years ago

rapunzelscodes commented 5 years ago

Expected behavior: posting

Actual behavior: error: 'unauthorized_client',

Steps to reproduce the behavior

I have login button its href url has scope=vote,comment

when I click it, SteemConnect popup opened. I entered username and key

I returned my url (localhost:3000 / test.com ) and I have got token

--

I used api.me in NodeJS and can get logged user's name and other things

api.me(function(err, res) { loggeduser = res.user; });

But can't work this:

parentPermlink="test"; author=loggeduser; permlink="test"; title="test with sc"; body="steem connect test"; tagsMetadata='{tags:["test","test2"]}'; jsonMetadata=JSON.parse(tagsMetadata); api.comment("", parentPermlink, author, permlink, title, body, jsonMetadata, function (err, res) { console.log(err, res) });

I get error:

[SDKError: sc2-sdk error] name: 'SDKError', error: 'unauthorized_client', error_description: "Broadcaster account doesn't have permission to broadcast

rapunzelscodes commented 5 years ago

I used this before api.comment:

api.setAccessToken(token,function (err, res) {
  console.log(err, res)
});

but get error again:

permm

bonustrack commented 5 years ago

What is the app account username @rapunzelscodes ?

bonustrack commented 5 years ago

The issue is most likely that the app account does not authorize "steemconnect" account to post on his behalf, to do so you need to sign this operation with your app account: https://app.steemconnect.com/authorize/@steemconnect

rapunzelscodes commented 5 years ago

I'm testing with @qbdp account. And I will create new real account. I authorize to "steemconnect" right now. Thank you for interest.

rapunzelscodes commented 5 years ago

Yey! After authorize to "steemconnect" https://app.steemconnect.com/authorize/@steemconnect its working! Thank you so much!