srbodkhe / google-shared-contacts-client

Automatically exported from code.google.com/p/google-shared-contacts-client
Apache License 2.0
0 stars 0 forks source link

Error export CSV #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Running the command
2. shared_contacts_profiles.exe  --adminmin=adminjroman@romanparicio.eu 
--export=directoriojr.csv

3. It shows the error:
### Exporting contacts/profiles to CSV file: directoriojr.csv
Retrieving contacts... (0 retrieved so far)
Traceback (most recent call last):
  File "shared_contacts_profiles.py", line 1143, in <module>
  File "shared_contacts_profiles.py", line 1138, in main
  File "shared_contacts_profiles.py", line 531, in ExportMsOutlookCsv
  File "shared_contacts_profiles.py", line 719, in writerows
  File "shared_contacts_profiles.py", line 212, in GetAllContacts
  File "gdata\client.pyc", line 628, in get_feed
  File "gdata\client.pyc", line 305, in request
gdata.client.Unauthorized: Unauthorized - Server responded with: 401, <html><hea
d><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Erro
r 401 (Client Error)!!1</title> <style type="text/css">*{margin:0;padding:0}html
,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15
px}body{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADVCAM
 ...................

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
google-shared-contacts-client-1.1.3-Win32

Please provide any additional information below.

Original issue reported on code.google.com by joaquin_...@infeci.net on 28 Jan 2013 at 3:56

GoogleCodeExporter commented 9 years ago
I had the same error

C:\google-shared-contacts-client-1.1.3-Win32>shared_contacts_profiles.exe 
--admin=edlcura@edlcura.es --export=dir.csv
Export as CSV to: dir.csv
Domain: edlcura.es
Administrator: edlcura@edlcura.es
Password of edlcura@edlcura.es:
### Exporting contacts/profiles to CSV file: dir
Retrieving contacts... (0 retrieved so far)
Traceback (most recent call last):
  File "shared_contacts_profiles.py", line 1143,
  File "shared_contacts_profiles.py", line 1138,
  File "shared_contacts_profiles.py", line 531,
  File "shared_contacts_profiles.py", line 719,
  File "shared_contacts_profiles.py", line 212,
  File "gdata\client.pyc", line 628, in get_feed
  File "gdata\client.pyc", line 305, in request

Original comment by edlc...@edlcura.es on 1 Feb 2013 at 9:09

GoogleCodeExporter commented 9 years ago

Asociando la dirección de python   PATH C:\Python27;%PATH%   (en mi caso)

C:\Users\MyUser\Desktop\google-shared-contacts-client>python 
shared_contacts_profiles.py -a example@example.com -p example --export out.csv

Original comment by edlc...@edlcura.es on 1 Feb 2013 at 10:29

GoogleCodeExporter commented 9 years ago
FYI I also ran into this issue and finally figured out I needed to disable SSL 
under Settings -> Contacts -> Contacts APIs.

Original comment by jason.wi...@northdigital.com on 21 Feb 2013 at 11:15

GoogleCodeExporter commented 9 years ago
@ Jason,

Thank you very much for your information, I went in to the same issue and with 
your comments have successfully overcome the issue.

Thanks again...

Original comment by sarava...@unel.co.in on 2 Jul 2013 at 5:33