ticktask icon indicating copy to clipboard operation
ticktask copied to clipboard

Auth error

Open artromone opened this issue 2 years ago • 6 comments

Got this error :(

No access_token cached. Receiving new one
Opening browser
Paste url you've been redirected: Opening in existing browser session.
http://127.0.0.1/?code=d2G23X&state=state
Code: d2G23X
Bad response for getting access_token: <!doctype html><html lang="en"><head><title>HTTP Status 401 – Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Unauthorized</p><p><b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p><hr class="line" /><h3>Apache Tomcat/9.0.43</h3></body></html>

CLIENT_ID and CLIENT_SECRET are OK

artromone avatar Nov 21 '23 16:11 artromone

Hmmm, strange. Tried to get new token right now and all works. Maybe try different browser? UPD: also worth to try recreating app for new CLIENT_ID and CLIENT_SECRET

UnkwUsr avatar Nov 21 '23 17:11 UnkwUsr

@UnkwUsr sorry for offtop, can you please tell me why this error appears? it also doesn't work if i try it with sudo.

ticktask
zsh: Access denied: ticktask

sudo ticktask
sudo: ticktask: command not found

update: adding execute rights helped

LenaKiseleva avatar Nov 21 '23 20:11 LenaKiseleva

@LenaKiseleva I've noted this in the installation section now. Thanks!

UnkwUsr avatar Nov 22 '23 05:11 UnkwUsr

@artromone reopen please if this is still issue for you

UnkwUsr avatar Jan 03 '24 09:01 UnkwUsr

ftr I ran into this issue today but managed to work around it using python requests from this post

whot avatar Jan 03 '24 11:01 whot

Hi! this still happens to me...

Bad response for getting access_token:

HTTP Status 401 – Unauthorized

HTTP Status 401 – Unauthorized


Type Status Report

Message Unauthorized

Description The request has not been applied because it lacks valid authentication credentials for the target resource.


Apache Tomcat/9.0.43

I am using 127.0.0.1 as the redirect url

AlexTemina avatar May 23 '24 10:05 AlexTemina

Found the solution to this thanks to this PR

use single quotes instead of double in config.sh

AlexTemina avatar Feb 07 '25 10:02 AlexTemina

Found the solution to this thanks to this PR

use single quotes instead of double in config.sh

Oh, really? Didn't know id or secret can contain "bad" symbols. I'll accept linked pull request.

UnkwUsr avatar Feb 07 '25 20:02 UnkwUsr