Open dcroid opened 7 years ago
Did you delete your existing oauth_data file and generate a new one from the new appspot site? The error above suggests not as it shows this "Token expired at 2017-05-14"
I did that, but expiration time is 3600 seconds. How I can increase it?
Did you delete your existing oauth_data file and generate a new one from the new appspot site? The error above suggests not as it shows this "Token expired at 2017-05-14"
It can't bee increased, you have to refresh token every hour. BUT you are using old token server, you have to reinstall acd_cli from GH, change URL manualy or wait for new release.
May be I deletd config file. How can I Create a new file?
Ok, any chance to automate that? I has no sense if i need to refresh token manually every hour
It can't bee increased, you have to refresh token every hour.
@dcroid, @misant Please update to the latest commit from GitHub.
acd_cli refreshing expired tokens automaticly, but you are using old version. Just wait for new release or use version from git.
thank you, it helped
I Upgrade from git. But site show me after enter sms code
Error: access_denied Description: User not authenticated
acd_cli -v init
17-05-25 15:39:53.828 [INFO] [acd_cli] - Plugin leaf classes: TermsOfUsePlugin, TestPlugin, DebugPlugin 17-05-25 15:39:53.829 [INFO] [acd_cli] - TermsOfUsePlugin attached. 17-05-25 15:39:53.829 [INFO] [acd_cli] - TestPlugin attached. 17-05-25 15:39:53.829 [INFO] [acd_cli] - DebugPlugin attached. 17-05-25 15:39:53.829 [INFO] [acd_cli] - Settings path is "/root/.config/acd_cli". 17-05-25 15:39:53.832 [INFO] [acdcli.api.client] - Initializing ACD with path "/root/.cache/acd_cli". 17-05-25 15:39:53.832 [INFO] [acdcli.api.oauth] - Token expired at 2017-05-14 12:18:08.485725. 17-05-25 15:39:53.833 [INFO] [acdcli.api.oauth] - Refreshing authentication token. Traceback (most recent call last): File "/usr/bin/acd_cli", line 11, in
sys.exit(main())
File "/usr/bin/acd_cli.py", line 1567, in main
acd_client = client.ACDClient(CACHE_PATH, SETTINGS_PATH)
File "/usr/lib/python3.4/site-packages/acdcli/api/client.py", line 44, in init
self.handler = oauth.create_handler(cache_path)
File "/usr/lib/python3.4/site-packages/acdcli/api/oauth.py", line 28, in create_handler
return AppspotOAuthHandler(path)
File "/usr/lib/python3.4/site-packages/acdcli/api/oauth.py", line 167, in init
self.load_oauth_data()
File "/usr/lib/python3.4/site-packages/acdcli/api/oauth.py", line 99, in load_oauth_data
self.get_auth_token(reload=False)
File "/usr/lib/python3.4/site-packages/acdcli/api/oauth.py", line 117, in get_auth_token
self.refresh_auth_token()
File "/usr/lib/python3.4/site-packages/acdcli/api/oauth.py", line 210, in refresh_auth_token
'Error refreshing authentication token: %s' % response.text)
acdcli.api.common.RequestError: RequestError: 1004, Error refreshing authentication token: <!DOCTYPE html>
404. That’s an error.
The requested URL was not found on this server. That’s all we know.