sx.el icon indicating copy to clipboard operation
sx.el copied to clipboard

`sx_authenticate` redirects to a "not valid uri"

Open RockyRoad29 opened this issue 6 years ago • 6 comments

I was not able to get an OAuth token M-x sx-authenticate sends me to uri (I obliterated here the client-id) https://stackoverflow.com/oauth/dialog?client_id=####&redirect_uri=http%253A%252F%252Fseanallred.com%252Fsx.el%252Fauth%252Fauth.htm&scope=read_inbox%2cno_expiry%2cprivate_info%2cwrite_access. The server answers: http%3A%2F%2Fseanallred.com%2Fsx.el%2Fauth%2Fauth.htm is not a valid uri

I think the redirect_uri looks like encoded twice.

RockyRoad29 avatar Feb 13 '18 17:02 RockyRoad29

This PR #350 fixed it for me. But for some reason CI fails. I leave it to you from here.

RockyRoad29 avatar Feb 13 '18 18:02 RockyRoad29

Aren't this issue and the related PR #350 duplicates of #342?

basil-conto avatar Feb 27 '18 11:02 basil-conto

in melpa-stable 0.4 I got Could not parsed uri [http%3A%2F%2Fseanallred.com%2Fsx.el%2Fauth%2Fauth.htm].

I upgraded to (unstable) melpa 20190114.1523 and it seems to be working there.

(edited for clarity)

unhammer avatar Jan 25 '19 12:01 unhammer

I've not yet made a release (and I don't plan to for some time as time is scarce). Are you able to apply any necessary patches locally or (probably better) switch to using MELPA or some system that pulls HEAD?

vermiculus avatar Jan 25 '19 17:01 vermiculus

@RockyRoad29 Can you still reproduce this issue?

basil-conto avatar Feb 12 '19 22:02 basil-conto

@vermiculus Fixed for me now! Thank you!

matthew-piziak avatar Feb 12 '19 23:02 matthew-piziak