Problem to run a site client

Create issue
Issue #21 resolved
Lamjed Ben Jabeur created an issue

I tried to ro run a site client and upload queries and documents. No connection adapters were found!

#!shell

$ ./bin/client-site --key SITEKEY -q -d

Traceback (most recent call last):
  File "./bin/client-site", line 28, in <module>
    Site()
  File "/home/ec2-user/ll-challenge/ll/client/site.py", line 95, in __init__
    self.store_queries(args.key, args.query_file)
  File "/home/ec2-user/ll-challenge/ll/client/site.py", line 116, in store_queries
    requests.put(url, data=json.dumps(queries), headers=HEADERS)
  File "/usr/lib/python2.6/site-packages/requests-2.1.0-py2.6.egg/requests/api.py", line 99, in put
    return request('put', url, data=data, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests-2.1.0-py2.6.egg/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.6/site-packages/requests-2.1.0-py2.6.egg/requests/sessions.py", line 382, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.6/site-packages/requests-2.1.0-py2.6.egg/requests/sessions.py", line 480, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/lib/python2.6/site-packages/requests-2.1.0-py2.6.egg/requests/sessions.py", line 525, in get_adapter
    raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for '127.0.0.1:5000/api/site/query/SITEKEY '

Comments (3)

  1. Lamjed Ben Jabeur reporter

    This problem can be resolved by adding host and port arguments to the command line. Host should be start with "http://".

    #!shell
    
     ./bin/client-site --key SITEKEY  -q -d --host http://127.0.0.01  --port 5000
    
  2. Log in to comment