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

MultiValueKeyError Exception #706

Open
saloneerege opened this issue Oct 12, 2015 · 16 comments
Open

MultiValueKeyError Exception #706

saloneerege opened this issue Oct 12, 2015 · 16 comments

Comments

@saloneerege
Copy link

Hello,
When I try to create a new project and then add my URL seed list it throws an exception MultivalueKey error. If however on the other hand I first add the seed list and use it in a new project that I create it adds the URL list successfully.

@brittainhard
Copy link
Contributor

Can you do me a favor and post the traceback?

@saloneerege
Copy link
Author

Environment:

Request Method: POST
Request URL: http://localhost:8000/projects/crawling/

Django Version: 1.7.3
Python Version: 2.7.8
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'base',
'task_manager',
'rest_framework',
'apps.crawl_space',
'debug_toolbar')
Installed Middleware:
(u'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                 response = wrapped_callback(request, _callback_args, *_callback_kwargs)
    
    File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py" in view
  2.         return self.dispatch(request, _args, *_kwargs)
    
    File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  3.     return handler(request, _args, *_kwargs)
    
    File "/home/salonee/memex-explorer/source/base/views.py" in post
  4.     if request.POST["action"] == "index_status":
    
    File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py" in getitem
  5.         raise MultiValueDictKeyError(repr(key))
    

Exception Type: MultiValueDictKeyError at /projects/crawling/
Exception Value: "'action'"

@brittainhard
Copy link
Contributor

So I think that these errors are connected. Can you give me a step-by-step explanation of how this error comes about? As in, what buttons you pushed, what data you entered, etc.

Thanks for reporting these errors by the way, theres no other way we would discover them.

@saloneerege
Copy link
Author

Hello, what I noticed is that if I first create a seed list and then create a project and include that already created seedlist everything works fine. But If I first create a new project and then add a new seed list it throws the multivalue key excpetion. This should not be happening. It should work either way right?

@brittainhard
Copy link
Contributor

Yes, this shouldn't be happening. This line if request.POST["action"] == "index_status": gets the status of any indexes that have been created. It doesn't have anything to do with creating seeds lists. Moreover, this script is only loaded on the project overview page, so the error is somehow coming from that page.

@saloneerege
Copy link
Author

I tried a variety of URLs like even facebook or google and the oones that I gave work fine when I try to create the seed list first and then the project. But if I first create a new project and then create a seed list it throws that exception.

@brittainhard
Copy link
Contributor

How are you creating the seeds list. Are you doing it from the project page or the /seeds page?

@brittainhard
Copy link
Contributor

Also, can you post the content of memex-explorer/source/memex/logs/debug.log ? That will probably help a lot.

@saloneerege
Copy link
Author

I am first creating the seed list from the seed list page and only then creating a new project to add the previously created seedlist. That works. But the other way around does not work.

@saloneerege
Copy link
Author

Internal Server Error: /projects/firstcrawl/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Not Found: /favicon.ico
Not Found: /favicon.ico
Internal Server Error: /projects/firstcrawl/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/firstcrawl/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Not Found: /bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.woff
Not Found: /bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.ttf
Not Found: /bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.woff
Not Found: /bokehjs/static/js/vendor/font-awesome-4.2.0/fonts/fontawesome-webfont.ttf
Internal Server Error: /projects/crawling/
Traceback (most recent call last):
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, _args, *_kwargs)
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, _args, *_kwargs)
File "/home/salonee/memex-explorer/source/base/views.py", line 108, in post
if request.POST["action"] == "index_status":
File "/home/salonee/miniconda3/envs/memex/lib/python2.7/site-packages/django/utils/datastructures.py", line 319, in getitem
raise MultiValueDictKeyError(repr(key))
MultiValueDictKeyError: "'action'"
Not Found: /favicon.ico

Contents of the debug.log

@brittainhard
Copy link
Contributor

What browser are you using, by chance?

@saloneerege
Copy link
Author

I'm using mozilla firefox. I have been using memex on ubuntu. Do you think the version of mozilla firefox make a difference to using memex explorer ?

@brittainhard
Copy link
Contributor

I really don't know. I'm trying it in different browsers and not getting the error. Try opening the developer console in firefox and post any errors you might see there. I think that there may be some errors in one of the javascript files, maybe.

@ahmadia
Copy link
Contributor

ahmadia commented Oct 17, 2015

@brittainhard - Did any of your recent PRs address/fix this?

@brittainhard
Copy link
Contributor

@ahmadia I was not able to replicate this bug, sadly. I know of a small fix that may fix it, but since I cant replicate it, I cant make sure that the fix is working.

@ahmadia
Copy link
Contributor

ahmadia commented Oct 19, 2015

@saloneerege - If you have time this week I'd like to chase this down. Can you reproduce this with the latest version of Memex Explorer? Let me know if you need help updating to the latest version.

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

3 participants