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

No JSON object could be decoded at Language Detection #13

Open
vinaychetu opened this issue Jan 21, 2019 · 0 comments
Open

No JSON object could be decoded at Language Detection #13

vinaychetu opened this issue Jan 21, 2019 · 0 comments

Comments

@vinaychetu
Copy link

vinaychetu commented Jan 21, 2019

I was testing the language detection(https://www.paralleldots.com/language-detection) by hitting a API within the terminal or like a web call it is throwing an error "ValueError at URL" No JSON object could be decoded
Even I've checked it on your website its not working even in any language refer screenshots.

Here is the error log from my console:

Internal Server Error: URL
Traceback (most recent call last):
File "/var/applications/env/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/var/applications/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/var/applications/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/var/applications/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
abuse_resp = parallel_dots.detect_language(message)
File "/var/applications/code/libraries/parallel_dots.py", line 14, in detect_language
return paralleldots.language_detection(text)
File "/var/applications/ltc/env/local/lib/python2.7/site-packages/paralleldots/paralleldots_apis.py", line 70, in get_language_detection
response = json.loads( response )
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")

1
2
3

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

1 participant