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

Seemingly random POST bug #128

Open
Duchadian opened this issue Jan 8, 2018 · 0 comments
Open

Seemingly random POST bug #128

Duchadian opened this issue Jan 8, 2018 · 0 comments
Assignees
Labels

Comments

@Duchadian
Copy link

Error occurred during annotation of an item with a larger span, where the first item was selected twice.
Example:
zo zeer -> zozeer , where part 'zo' was selected twice.

Editor submission failed: HTTPError at /merged_annotations/page1144.tested.tagged/query/
HTTP Error 404: Not Found

Request Method: POST
Request URL: https://flat.science.ru.nl/merged_annotations/page1144.tested.tagged/query/
Django Version: 2.0
Python Executable: /usr/bin/uwsgi
Python Version: 3.5.2
Python Path: ['.', '', '/var/www/lamachine/lib/python35.zip', '/var/www/lamachine/lib/python3.5', '/var/www/lamachine/lib/python3.5/plat-x86_64-linux-gnu', '/var/www/lamachine/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/var/www/lamachine/lib/python3.5/site-packages', '/var/www/lamachine/lib/python3.5/site-packages/LuigiNLP-0.3-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/sciluigi-0.9.5b6-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/natsort-5.1.0-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/luigi-2.6.2-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/python_daemon-2.1.2-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/tornado-4.5.1-py3.5-linux-x86_64.egg', '/var/www/lamachine/lib/python3.5/site-packages/lockfile-0.12.2-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/python_Levenshtein-0.12.0-py3.5-linux-x86_64.egg', '/var/www/lamachine/lib/python3.5/site-packages/PICCL-0.4-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/alex_asr-1.0.4-py3.5-linux-x86_64.egg', '/var/www/lamachine/lib/python3.5/site-packages/pystache-0.5.4-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/Gecco-0.2.3-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/FoLiA_tools-1.5.0.57-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/foliadocserve-0.6.4-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/CLAM-2.2.2-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/CLAMServices-1.4.4-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages', '/var/www/lamachine/lib/python3.5/site-packages/sciluigi-0.9.5b6-py3.5.egg', '/var/www/lamachine/lib/python3.5/site-packages/natsort-5.1.0-py3.5.egg', '/var/www/flat/etc/']
Server time: Mon, 8 Jan 2018 11:49:41 +0100
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'flat.users',
'flat.modes.viewer',
'flat.modes.editor',
'flat.modes.structureeditor',
'flat.modes.metadata')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:

File "/var/www/lamachine/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
35. response = get_response(request)

File "/var/www/lamachine/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
128. response = self.process_exception_by_middleware(e, request)

File "/var/www/lamachine/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
126. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/var/www/lamachine/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
21. return view_func(request, *args, **kwargs)

File "/var/www/lamachine/lib/python3.5/site-packages/flat/views.py" in query
234. return query_helper(request, namespace,docid, request.session['configuration'])

File "/var/www/lamachine/lib/python3.5/site-packages/flat/views.py" in query_helper
223. return HttpResponseForbidden("FoLiA Document Server error: " + docserveerror(e)['fatalerror_text'])

File "/var/www/lamachine/lib/python3.5/site-packages/flat/views.py" in docserveerror
94. raise e

File "/var/www/lamachine/lib/python3.5/site-packages/flat/views.py" in query_helper
217. d = flat.comm.query(request, query,**flatargs)

File "/var/www/lamachine/lib/python3.5/site-packages/flat/comm.py" in query
58. f = urlopen(docservereq,urlencode(data).encode('utf-8')) #or opener.open()

File "/usr/lib/python3.5/urllib/request.py" in urlopen
163. return opener.open(url, data, timeout)

File "/usr/lib/python3.5/urllib/request.py" in open
472. response = meth(req, response)

File "/usr/lib/python3.5/urllib/request.py" in http_response
582. 'http', request, response, code, msg, hdrs)

File "/usr/lib/python3.5/urllib/request.py" in error
510. return self._call_chain(*args)

File "/usr/lib/python3.5/urllib/request.py" in _call_chain
444. result = func(*args)

File "/usr/lib/python3.5/urllib/request.py" in http_error_default
590. raise HTTPError(req.full_url, code, msg, hdrs, fp)

Exception Type: HTTPError at /merged_annotations/page1144.tested.tagged/query/
Exception Value: HTTP Error 404: Not Found
Request information:
USER: duchs

GET: No GET data

POST: No POST data

FILES: No FILES data

COOKIES:
csrftoken = 'EHoVZKkzKNc1oiE2XXHz8Boovs0CCSu9zNZCaEs6rd6oHWLtcGidUO7G2npHhNqc'
sessionid = 'a8pp39xos7z3hthw3st90opcdzp6p1e7'
__lc.visitor_id.1038190 = 'S1511187429.37d8051d8b'

META:
CONTENT_LENGTH = '502'
CONTENT_TYPE = 'application/json'
CONTEXT_DOCUMENT_ROOT = '/var/www/html'
CONTEXT_PREFIX = ''
CSRF_COOKIE = 'EHoVZKkzKNc1oiE2XXHz8Boovs0CCSu9zNZCaEs6rd6oHWLtcGidUO7G2npHhNqc'
DOCUMENT_ROOT = '/var/www/html'
GATEWAY_INTERFACE = 'CGI/1.1'
HTTPS = 'on'
HTTP_ACCEPT = 'application/json, text/javascript, /; q=0.01'
HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.5'
HTTP_CONNECTION = 'keep-alive'
HTTP_COOKIE = '__lc.visitor_id.1038190=S1511187429.37d8051d8b; csrftoken=EHoVZKkzKNc1oiE2XXHz8Boovs0CCSu9zNZCaEs6rd6oHWLtcGidUO7G2npHhNqc; sessionid=a8pp39xos7z3hthw3st90opcdzp6p1e7'
HTTP_DNT = '1'
HTTP_HOST = 'flat.science.ru.nl'
HTTP_REFERER = 'https://flat.science.ru.nl/editor/merged_annotations/page1144.tested.tagged/'
HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0'
HTTP_X_CSRFTOKEN = 'EHoVZKkzKNc1oiE2XXHz8Boovs0CCSu9zNZCaEs6rd6oHWLtcGidUO7G2npHhNqc'
HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
HTTP_X_SESSIONID = '959523110'
PATH = '/usr/local/bin:/usr/bin:/bin'
PATH_INFO = '/merged_annotations/page1144.tested.tagged/query/'
QUERY_STRING = ''
REMOTE_ADDR = '145.102.26.243'
REMOTE_PORT = '50884'
REQUEST_METHOD = 'POST'
REQUEST_SCHEME = 'https'
REQUEST_URI = '/merged_annotations/page1144.tested.tagged/query/'
SCRIPT_FILENAME = 'proxy:uwsgi://127.0.0.1:8213/merged_annotations/page1144.tested.tagged/query/'
SCRIPT_NAME = ''
SERVER_ADDR = '131.174.114.206'
SERVER_ADMIN = '[no address given]'
SERVER_NAME = 'flat.science.ru.nl'
SERVER_PORT = '443'
SERVER_PROTOCOL = 'HTTP/1.1'
SERVER_SIGNATURE = '

Apache/2.4.18 (Ubuntu) Server at flat.science.ru.nl Port 443\n'
SERVER_SOFTWARE = 'Apache/2.4.18 (Ubuntu)'
SSL_TLS_SNI = 'flat.science.ru.nl'
uwsgi.node = b'mlp01'
uwsgi.version = b'2.0.12-debian'
wsgi.errors = <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>
wsgi.file_wrapper = ''
wsgi.input = <uwsgi._Input object at 0x7ff9b4b259d8>
wsgi.multiprocess = False
wsgi.multithread = False
wsgi.run_once = False
wsgi.url_scheme = 'https'
wsgi.version = '(1, 0)'

Settings:
Using settings module rusettings
ABSOLUTE_URL_OVERRIDES = {}
ADMINS = "(('Maarten van Gompel', '[email protected]'),)"
ALLOWED_HOSTS = ['localhost', 'flat.science.ru.nl', 'new.flat.science.ru.nl', 'applejack.science.ru.nl', 'spitfire', 'applejack', 'mlp01', '127.0.0.1']
ALLOWPUBLICUPLOAD = True
ALLOWREGISTRATION = True
APPEND_SLASH = True
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS = ''
AUTH_USER_MODEL = 'auth.User'
BASE_DIR = '/var/www/lamachine/lib/python3.5/site-packages/flat/'
CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_KEY_PREFIX = '
'
CACHE_MIDDLEWARE_SECONDS = 600
CONFIGURATIONS = {'sinfex': {'allowdeclare': False, 'annotationfocustype': 'entity', 'initialeditannotations': ('entity/https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml',), 'allowededitannotations': ('entity/https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml',), 'initialglobviewannotations': ('entity/https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml',), 'allowaddfields': False, 'editformnew': True, 'editformalternative': False, 'allowedannotationfocus': ('entity/https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml',), 'alloweditformalternative': False, 'allowedviewannotations': ('t', 'entity/https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml'), 'editformcorrection': False, 'alloweditformnew': True, 'alloweditformcorrection': False, 'annotationfocusset': 'https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml', 'allowupload': True, 'initialviewannotations': ('t', 'entity/https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml'), 'name': 'Sinfex Annotation Task', 'modes': [('editor', 'Annotation Editor')], 'autodeclare': [('entity', 'https://github.com/ahurriyetoglu/sinfexfolia/raw/master/sinfex-entities.foliaset.xml')], 'alloweditformdirect': True, 'slices': 'event:200', 'perspectives': ['event'], 'editformdirect': True}, 'parsemedemo': {'allowdeclare': False, 'requiredeclaration': [('entity', 'https://github.com/proycon/parseme-support/raw/master/parseme-mwe.foliaset.xml')], 'initialeditannotations': ('entity/https://github.com/proycon/parseme-support/raw/master/parseme-mwe.foliaset.xml',), 'editformcorrection': False, 'allowededita

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

No branches or pull requests

2 participants