2.10.1 Exporting problems - replicated on 3 machines

Moderator: areski

2.10.1 Exporting problems - replicated on 3 machines

Postby dinopio » Mon Mar 17, 2014 5:01 pm

Hi there,

I was using 2.10 on ubuntu with the following problems:

1. Contacts import didnt work (i tried to enable debug mode to find out why but that fails too)
2. Survey results would not export to CSV XLS etc
3. Debug mode doesnt work (edited settings_loca.py to True and DEBUG) when i reboot the system doesnt work at all with debug mode.
4. Calling works (sip xml file loads the registration info and instantly finishes )

on 2.11.3 with Debian 7.x

1. Contacts import didnt work
2. Survey results would not export to CSV XLS etc
3. Debug mode doesnt work (edited settings_loca.py to True and DEBUG) when i reboot the system doesnt work at all with debug mode.
4. Calling fails (sip xml file loads the registration info, fails to register the first time, but after a while it registers ok, calls still fail with error -ERR NORMAL_UNSPECIFIED) this is with siptrace on

-

I am guessing the contacts issue is something related to parsing. I used the example template from the page but that fails too. (can I have a template as a file to test?)
As for the exporting of results, I have no idea why that would fail if everything is in the DB.

Anyone with some experience with these issues?

Regards

Dino
Last edited by dinopio on Tue Mar 18, 2014 10:10 am, edited 1 time in total.
dinopio
 
Posts: 6
Joined: Mon Mar 17, 2014 4:52 pm

Re: 2.11.3 Calling problems

Postby dinopio » Mon Mar 17, 2014 5:22 pm

If I can fix the import and export issues with the older version, im happy.
dinopio
 
Posts: 6
Joined: Mon Mar 17, 2014 4:52 pm

Re: 2.11.3 Calling problems

Postby areski » Mon Mar 17, 2014 6:14 pm

If you enable the debug you will need to install django-debug-tool-bar :
http://django-debug-toolbar.readthedocs.org/en/1.0/

Code: Select all
workon newfies-dialer
pip install django-debug-toolbar
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: 2.11.3 Calling problems

Postby dinopio » Mon Mar 17, 2014 6:18 pm

Contacts are now importing

the problem was that my file had more info than it should (header is not needed, just data)

I will try the debug toolbar and report back
dinopio
 
Posts: 6
Joined: Mon Mar 17, 2014 4:52 pm

Re: 2.11.3 Calling problems

Postby dinopio » Mon Mar 17, 2014 6:29 pm

Debug is now working! thanks

here is the Export to CSV error page (MYIP replaced my external IP):

ValueError at /export_surveycall_report/
invalid literal for int() with base 10: ''
Request Method: GET
Request URL: http://MYIP:8008/export_surveycall_report/?format=csv
Django Version: 1.6.1
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: ''
Exception Location: /usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 613
Python Executable: /usr/share/virtualenvs/newfies-dialer/bin/python
Python Version: 2.7.3
Python Path:
['/usr/share/newfies/newfies_dialer',
'/usr/share/newfies',
'/usr/share/virtualenvs/newfies-dialer/bin',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/plat-linux2',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/lib-tk',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/lib-old',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages']
Server time: Mon, 17 Mar 2014 14:23:47 -0400
Traceback Switch back to interactive view




Request information

GET
Variable Value
format
u'csv'
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
csrftoken
'ZvjXxG8gJEBJyuU2mEQVxxyrMCn7yr8L'
sessionid
'ba8rnp6ym2na14mz0t481045bxt6c50e'
META
Variable Value
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
SERVER_NAME
'MYIP'
HTTP_REFERER
'http://MYIP:8008/survey_report/'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SOFTWARE
'gunicorn/18.0'
SCRIPT_NAME
u''
REMOTE_PORT
'48980'
wsgi.input
<gunicorn.http.body.Body object at 0x6559190>
REQUEST_METHOD
'GET'
HTTP_HOST
'MYIP:8008'
PATH_INFO
u'/export_surveycall_report/'
wsgi.multithread
False
QUERY_STRING
'format=csv'
HTTP_CONNECTION
'close'
HTTP_X_REAL_IP
'91.184.205.218'
HTTP_X_SCHEME
'http'
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36'
wsgi.version
(1, 0)
HTTP_COOKIE
'csrftoken=ZvjXxG8gJEBJyuU2mEQVxxyrMCn7yr8L; sessionid=ba8rnp6ym2na14mz0t481045bxt6c50e'
RAW_URI
'/export_surveycall_report/?format=csv'
REMOTE_ADDR
'127.0.0.1'
wsgi.run_once
False
wsgi.errors
<open file '<stderr>', mode 'w' at 0x7f0e74b38270>
wsgi.multiprocess
False
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.8,el;q=0.6,fr;q=0.4'
wsgi.url_scheme
'http'
gunicorn.socket
<socket._socketobject object at 0x6280d00>
HTTP_DNT
'1'
SERVER_PORT
'8008'
wsgi.file_wrapper
''
CSRF_COOKIE
u'ZvjXxG8gJEBJyuU2mEQVxxyrMCn7yr8L'
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
Settings
Using settings module newfies_dialer.settings
Setting Value
DEBUG_TOOLBAR_PANELS
['debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel']
CHANNEL_TYPE_VALUE
1
BOWER_COMPONENTS_ROOT
'/usr/share/newfies/newfies_dialer/../components'
REDIS_PORT
6379
CONVERT_TYPE_VALUE
2
AMD
False
CSRF_COOKIE_SECURE
False
CELERY_DEFAULT_QUEUE
'default'
ACAPELA_GENDER
'W'
LANGUAGE_CODE
'en-us'
ROOT_URLCONF
'newfies_dialer.urls'
MANAGERS
(('Your Name', 'your_email@domain.com'),)
BROKER_URL
'redis://localhost:6379/0'
DIALERDEBUG_PHONENUMBER
1000
DEFAULT_CHARSET
'utf-8'
CELERY_DEFAULT_EXCHANGE_TYPE
'topic'
CORS_ALLOW_HEADERS
('x-requested-with',
'content-type',
'accept',
'origin',
'authorization',
'x-csrftoken')
SESSION_SERIALIZER
'django.contrib.sessions.serializers.PickleSerializer'
STATIC_ROOT
'/usr/share/newfies/newfies_dialer/../static'
USE_THOUSAND_SEPARATOR
False
APPLICATION_LOGIN
'EVAL_XXXXXXX'
SERVICE_URL
'http://vaas.acapela-group.com/Services/Synthesizer'
DAJAXICE_MEDIA_PREFIX
'dajaxice'
ALLOWED_HOSTS
['MYIP']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
ADMIN_TOOLS_APP_INDEX_DASHBOARD
'custom_admin_tools.dashboard.CustomAppIndexDashboard'
DICTIONARY
'/usr/share/dict/words'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
'AUTOCOMMIT': True,
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'HOST': 'localhost',
'NAME': 'newfies_dialer_db',
'OPTIONS': {'autocommit': True},
'PASSWORD': u'********************',
'PORT': '5432',
'TEST_CHARSET': None,
'TEST_COLLATION': None,
'TEST_MIRROR': None,
'TEST_NAME': None,
'TIME_ZONE': 'UTC',
'USER': 'newfies_dialer_03775'}}
APPLICATION_DIR
'/usr/share/newfies/newfies_dialer'
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
DILLA_USE_LOREM_IPSUM
False
TEST_RUNNER
'django.test.runner.DiscoverRunner'
APPEND_SLASH
True
DILLA_APPS
['auth', 'voip_app', 'dialer_campaign', 'dialer_cdr']
DATABASE_ROUTERS
[]
ESL_HOSTNAME
'127.0.0.1'
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'redis_cache.RedisCache',
'LOCATION': '127.0.0.1:6379'}}
LANGUAGES
(('en', 'English'),
('fr', 'French'),
('es', 'Spanish'),
('pt', 'Portuguese'),
('zh', 'Chinese'),
('tr', 'Turkish'),
('ja', 'Japanese'))
SERVER_EMAIL
'newfies@localhost.com'
CORS_EXPOSE_HEADERS
()
APPLICATION_PASSWORD
u'********************'
MIDDLEWARE_CLASSES
('corsheaders.middleware.CorsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'linaro_django_pagination.middleware.PaginationMiddleware',
'common.filter_persist_middleware.FilterPersistMiddleware',
'audiofield.middleware.threadlocals.ThreadLocals',
'debug_toolbar.middleware.DebugToolbarMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
ESL_PORT
'8021'
FREQ_TYPE_VALUE
8000
CORS_ORIGIN_WHITELIST
('hostname.example.com',)
DEMO_MODE
False
BOWER_INSTALLED_APPS
('jquery#2.0.3',
'jquery-ui#~1.10.3',
'bootstrap#3.0.3',
'bootstrap-switch#2.0.0',
'bootbox#4.1.0',
'd3#3.3.6',
'nvd3#1.1.12-beta',
'components-font-awesome#4.0.3')
DEFAULT_INDEX_TABLESPACE
''
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
None
ACAPELA_INTONATION
'NORMAL'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader')
FIRST_DAY_OF_WEEK
0
WSGI_APPLICATION
None
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
CSRF_COOKIE_NAME
'csrftoken'
CELERY_DEFAULT_EXCHANGE
'tasks'
CELERY_DEFAULT_ROUTING_KEY
u'********************'
USE_X_FORWARDED_HOST
False
DIALERDEBUG
False
CORS_ALLOW_CREDENTIALS
False
NEWFIES_DIALER_ENGINE
'esl'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
REDIS_HOST
'localhost'
API_ALLOWED_IP
u'********************'
PREFIX_LIMIT_MAX
5
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
ESL_SCRIPT
'&lua(/usr/share/newfies-lua/newfies.lua)'
SESSION_FILE_PATH
None
PREFIX_LIMIT_MIN
2
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
('admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django_countries',
'admin_tools_stats',
'genericadmin',
'mailer',
'south',
'djcelery',
'audiofield',
'tagging',
'adminsortable',
'dajaxice',
'dajax',
'dateutil',
'linaro_django_pagination',
'country_dialcode',
'common',
'sms',
'sms_module',
'dialer_contact',
'dialer_audio',
'dialer_campaign',
'dialer_cdr',
'dialer_gateway',
'dialer_settings',
'user_profile',
'notification',
'survey',
'dnc',
'appointment',
'mod_mailer',
'frontend_notification',
'django_nvd3',
'rest_framework',
'rest_framework.authtoken',
'corsheaders',
'djangobower',
'activelink',
'bootstrap3_datetime',
'gunicorn',
'redisboard',
'debug_toolbar',
'django_extensions')
DILLA_SPAMLIBS
['dialer_cdr.dialer_cdr_custom_spamlib']
USE_L10N
False
COMMENTS_ALLOW_PROFANITIES
False
AUDIO_DEBUG
False
STATICFILES_DIRS
(('newfies', '/usr/share/newfies/newfies_dialer/../resources'),)
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
SESSION_COOKIE_HTTPONLY
True
DEBUG_PROPAGATE_EXCEPTIONS
False
QUALITY
'22k'
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/pleaselog/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
TIME_FORMAT
'P'
AUTH_USER_MODEL
'auth.User'
DATE_INPUT_FORMATS
('%Y-%m-%d',
'%m/%d/%Y',
'%m/%d/%y',
'%b %d %Y',
'%b %d, %Y',
'%d %b %Y',
'%d %b, %Y',
'%B %d %Y',
'%B %d, %Y',
'%d %B %Y',
'%d %B, %Y')
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
EMAIL_HOST_PASSWORD
u'********************'
DEBUG_TOOLBAR_PATCH_SETTINGS
False
CELERY_DISABLE_RATE_LIMITS
True
AUTH_PROFILE_MODULE
'user_profile.UserProfile'
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
ADMIN_MEDIA_PREFIX
'/static/admin/'
NUMBER_GROUPING
0
DAJAXICE_XMLHTTPREQUEST_JS_IMPORT
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/'
SESSION_COOKIE_PATH
'/'
MAX_CALLS_PER_SECOND
20
ESL_SECRET
u'********************'
ACCOUNT_LOGIN
'EVAL_XXXX'
DECIMAL_SEPARATOR
'.'
CELERY_ENABLE_UTC
True
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
TTS_ENGINE
'FLITE'
LOCALE_PATHS
('/usr/share/newfies/newfies_dialer/../locale',)
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
TEMPLATE_DIRS
('/usr/share/newfies/newfies_dialer/../templates',)
FS_RECORDING_PATH
'/usr/share/newfies/usermedia/recording/'
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'Y-m-d'
MEDIA_ROOT
'/usr/share/newfies/newfies_dialer/../usermedia'
PAGE_SIZE
10
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
CELERY_ROUTES
{'sms_module.tasks.sms_campaign_running': {'queue': 'sms_tasks',
'routing_key': 'sms_module.sms_campaign_running'}}
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.TokenAuthentication'),
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
'PAGINATE_BY': 10}
ADMINS
()
MEDIA_URL
'/usermedia/'
DATETIME_FORMAT
'Y-m-d H:i:s'
PREFIX_TO_IGNORE
'+,0,00,000,0000,00000,011,55555,99999'
IPYTHON_ARGUMENTS
['--ext',
'django_extensions.management.notebook_extension',
'--profile=nbserver',
'--debug']
MAILER_EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa', 'ur')
CELERY_TIMEZONE
'Europe/Madrid'
SURVEYDEV
False
LOGGING
{'disable_existing_loggers': True,
'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},
'formatters': {'simple': {'format': '%(asctime)s %(levelname)s || %(message)s'},
'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}},
'handlers': {'console': {'class': 'logging.StreamHandler',
'formatter': 'verbose',
'level': 'DEBUG'},
'default': {'class': 'logging.handlers.WatchedFileHandler',
'filename': '/var/log/newfies/newfies-django.log',
'formatter': 'verbose'},
'default-db': {'backupCount': 20,
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/var/log/newfies/newfies-django-db.log',
'formatter': 'verbose',
'level': 'DEBUG',
'maxBytes': 5242880},
'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
'filters': ['require_debug_false'],
'include_html': True,
'level': 'ERROR'}},
'loggers': {'audiofield_log': {'handlers': ['default'],
'level': 'DEBUG',
'propagate': False},
'django': {'handlers': ['default'],
'level': 'DEBUG',
'propagate': False},
'django.db.backends': {'handlers': ['default-db'],
'level': 'ERROR',
'propagate': False},
'django.request': {'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True},
'newfies.filelog': {'handlers': ['default'],
'level': 'DEBUG',
'propagate': False}},
'version': 1}
SHORT_DATE_FORMAT
'm/d/Y'
SECRET_KEY
u'********************'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'dajaxice.finders.DajaxiceFinder',
'djangobower.finders.BowerFinder')
IGNORABLE_404_URLS
()
TIME_ZONE
'America/New_York'
CORS_ORIGIN_ALLOW_ALL
True
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.dummy.EmailBackend'
ADMIN_TOOLS_INDEX_DASHBOARD
'custom_admin_tools.dashboard.CustomIndexDashboard'
LANGUAGE_COOKIE_NAME
'newfies_dialer_language'
DEFAULT_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.csrf',
'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'context_processors.newfies_version',
'django.core.context_processors.request')
CELERY_QUEUES
(<unbound Queue default -> <unbound Exchange tasks(topic)> -> task.#>,
<unbound Queue sms_tasks -> <unbound Exchange tasks(topic)> -> sms_module.#>,
<unbound Queue appointment -> <unbound Exchange tasks(topic)> -> appointment.#>)
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'newfies_dialer.settings'
BOWER_PATH
'/usr/bin/bower'
CORS_ALLOW_METHODS
('GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS')
CELERY_TASK_RESULT_EXPIRES
18000
REDIS_DB
0
FILE_UPLOAD_TEMP_DIR
None
INTERNAL_IPS
('127.0.0.1',)
STATIC_URL
'/static/'
EMAIL_PORT
25
ADMIN_TOOLS_MENU
'custom_admin_tools.menu.CustomMenu'
USE_TZ
True
SHORT_DATETIME_FORMAT
'm/d/Y P'
CELERY_RESULT_BACKEND
'redis://localhost:6379/0'
PASSWORD_HASHERS
u'********************'
ABSOLUTE_URL_OVERRIDES
{}
CACHE_MIDDLEWARE_SECONDS
600
DEBUG_TOOLBAR_CONFIG
{'ENABLE_STACKTRACES': True,
'INTERCEPT_REDIRECTS': False,
'SQL_WARNING_THRESHOLD': 100}
CSRF_COOKIE_HTTPONLY
False
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f',
'%Y-%m-%d %H:%M',
'%Y-%m-%d',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M:%S.%f',
'%m/%d/%Y %H:%M',
'%m/%d/%Y',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M:%S.%f',
'%m/%d/%y %H:%M',
'%m/%d/%y')
FORCE_SCRIPT_NAME
None
EMAIL_HOST_USER
''
PROFANITIES_LIST
u'********************'
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.
dinopio
 
Posts: 6
Joined: Mon Mar 17, 2014 4:52 pm

Re: 2.11.3 Calling problems

Postby dinopio » Tue Mar 18, 2014 10:09 am

I tried to debug the problem.

The only thing i see is that the return value from /__init__.py in get_prep_value, line 613 is empty, hence not an integer.

The results show in the reports page but there is no way to export them!
dinopio
 
Posts: 6
Joined: Mon Mar 17, 2014 4:52 pm

Re: 2.10.1 Exporting problems - replicated on 3 machines

Postby dinopio » Tue Mar 18, 2014 10:32 am

How I get to this error

1. create a simple campaign with press "1"
2. user presses 1 and the result is saved
3. i go to survey_report/ and open search, find the results, click Survey Calls, Action, Export to CSV.
4. Error as follows:

ValueError at /export_surveycall_report/
invalid literal for int() with base 10: ''
Request Method: GET
Request URL: http://IP:8008/export_surveycall_report/?format=csv
Django Version: 1.6.1
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: ''
Exception Location: /usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 613
Python Executable: /usr/share/virtualenvs/newfies-dialer/bin/python
Python Version: 2.7.3
Python Path:
['/usr/share/newfies/newfies_dialer',
'/usr/share/newfies',
'/usr/share/virtualenvs/newfies-dialer/bin',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/plat-linux2',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/lib-tk',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/lib-old',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages']
Server time: Tue, 18 Mar 2014 06:29:57 -0400
dinopio
 
Posts: 6
Joined: Mon Mar 17, 2014 4:52 pm


Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron