wizcarder / wizcard-server Goto Github PK
View Code? Open in Web Editor NEWWizcard Server
Wizcard Server
When i try to create the profile manually, First time the Designation/Title is not reflecting in the card, guess its some wrong field mapping.
when user does ocr_Req_Self path, there are 2 phone numbers to be handled
I think 2 is working ok, 1) needs to be fixed.
runs into an exception when verifying phones because we use .get instead of .filter.
Shows only 2 members but on the Exchange->Round Tables screen it shows count as 4 at times and reverts back to 2 at times. Looks intermittent but very visible.
There are 2 issues - On the existing DB it fails on register
DEBUG Wed, 11 Nov 2015 05:48:04 +0000 views 30838 140126877853440 {u'hash': u'da0f7402460b85205c85618edf685916', u'msgType': u'contacts_verify', u'deviceID': u'555C95AE-AEBD-4A9E-9AEA-7A17727BC17D'}
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in call
response = self.get_response(request)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, _args, *_kwargs)
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 66, in post
response = pdispatch.dispatch()
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 94, in dispatch
return self.headerProcess()
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 239, in headerProcess
response = msgTypesValidatorsAndHandlers[self.msg_type]HANDLER
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 482, in ContactsVerify
email)
File "/home/anand/testenv/wizcard-server/userprofile/models.py", line 88, in check_user_exists
return Wizcard.objects.get(email=query_key)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(_args, *_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/query.py", line 338, in get
(self.model._meta.object_name, num)
MultipleObjectsReturned: get() returned more than one Wizcard -- it returned 2!
On a new DB its raising an exception - WizConnectionRequest when it tries to create a future user.
Celery error:
[2015-11-11 05:40:35,931: ERROR/MainProcess] Task notifications.tasks.pushNotificationToApp[4d26d0a9-1641-411e-bb7f-cd50045292dc] raised unexpected: DoesNotExist('WizConnectionRequest matching query does not exist.',)
Traceback (most recent call last):
File "/home/anand/stgpython/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(_args, *_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in protected_call
return self.run(_args, *_kwargs)
File "/home/anand/testenv/wizcard-server/notifications/tasks.py", line 31, in pushNotificationToApp
a_content_type.get_object_for_this_type(pk=action_object_id)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 194, in get_object_for_this_type
return self.model_class()._base_manager.using(self._state.db).get(**kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/query.py", line 334, in get
self.model._meta.object_name
Exception: WizConnectionRequest matching query does not exist.
On Wizserver:
DEBUG Wed, 11 Nov 2015 05:40:37 +0000 views 30313 139961267541760 {u'hash': u'da0f7402460b85205c85618edf685916', u'msgType': u'edit_card', u'deviceID': u'555C95AE-AEBD-4A9E-9AEA-7A17727BC17B'}
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in call
response = self.get_response(request)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, _args, *_kwargs)
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 66, in post
response = pdispatch.dispatch()
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 94, in dispatch
return self.headerProcess()
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 239, in headerProcess
response = msgTypesValidatorsAndHandlers[self.msg_type]HANDLER
File "/home/anand/testenv/wizcard-server/wizserver/views.py", line 680, in WizcardEdit
f.generate_self_invite(self.user)
File "/home/anand/testenv/wizcard-server/userprofile/models.py", line 253, in generate_self_invite
cctx)
File "/home/anand/testenv/wizcard-server/wizcardship/models.py", line 77, in cardit
return wizcard1.add_relationship(wizcard2, status=status, ctx=cctx)
File "/home/anand/testenv/wizcard-server/wizcardship/models.py", line 255, in add_relationship
status=status)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(_args, *_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/query.py", line 348, in create
obj.save(force_insert=True, using=self.db)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/base.py", line 710, in save
force_update=force_update, update_fields=update_fields)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/base.py", line 738, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/base.py", line 822, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/base.py", line 861, in _do_insert
using=using, raw=raw)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(_args, *_kwargs)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 970, in execute_sql
for sql, params in self.as_sql():
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 928, in as_sql
for obj in self.query.objs
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/fields/init.py", line 710, in get_db_prep_save
prepared=False)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/fields/init.py", line 702, in get_db_prep_value
value = self.get_prep_value(value)
File "/home/anand/stgpython/local/lib/python2.7/site-packages/django/db/models/fields/init.py", line 1868, in get_prep_value
return int(value)
TypeError: int() argument must be a string or a number, not 'ConnectionContext'
[11/Nov/2015 05:40:37]"POST / HTTP/1.1" 500 59
to avoid duplication
I have 2 phones with the app installed.
One one phone (iphone 4 - mine ) the (iphone 6 - My wife ) user shows up but not vice versa.
On the iphone 6 phone, nearby doesnt seem to work. LocationServices are on.
wrong pre-check for resync was leading to resync not being done if there were no outbound arrows
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.