Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should exit on first 401 #31

Closed
unhammer opened this issue Jun 17, 2013 · 2 comments
Closed

Should exit on first 401 #31

unhammer opened this issue Jun 17, 2013 · 2 comments

Comments

@unhammer
Copy link

$ python2 ./asynk.py --op=sync --user-dir=~/.asynk.carddav --name bbown --dry-run
[16:56:26.021 INFO] Debug logging to file: /home/me/.asynk.carddav/logs/asynk_logs.2013-06-17.16-56-26.021590
Please enter your username:
Password:
[16:56:37.992 INFO] Parsing BBDB file /home/me/.bbdb...
[16:56:37.993 INFO] Parsing BBDB Store with encoding utf-8...
[16:56:38.285 INFO] Parsing BBDB Store with encoding utf-8...Success
[16:56:38.285 INFO] Successfully parsed 519 entries.
401
401
401
401
401
401

… and so on – shouldn't it exit on the first 401?

@skarra
Copy link
Owner

skarra commented Jun 18, 2013

Indeed. Fixed here: 55f7913 This involves a fix to the caldavclientlibrary submodule. Now it would look something like:

Cardassia:ASynK sriramkarra$ ./asynk.py --op=sync --dry-run --name testbbcd --direction=2way --log=debug --user-dir=~/.asynk.cd
[09:32:07.815     INFO] Debug logging to file: /Users/sriramkarra/.asynk.cd/logs/asynk_logs.2013-06-18.09-32-07.815796
[09:32:07.860     INFO] Parsing BBDB file /Users/sriramkarra/dotfiles/bbdb.testbbcd...
[09:32:07.860    DEBUG] New BBContactsFolder: default
[09:32:07.860     INFO] Parsing BBDB Store with encoding utf-8...
[09:32:07.906    DEBUG] Assigning UUID d81e7559-d7cb-11e2-9689-3c07541b9945 for new contact: 
[09:32:07.943     INFO] Parsing BBDB Store with encoding utf-8...Success
[09:32:07.943     INFO] Successfully parsed 6 entries.
[09:32:07.943    DEBUG] Logging into CardDAV server: localhost:8008 - user: skarra
[09:32:08.131 CRITICAL] Could not open connection to Carddav Server (http://localhost:8008). Error: Code: 401, Reason: Unauthorized

@unhammer
Copy link
Author

seems to work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants