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!


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

Traceback (most recent call last):
  File "./bin/client-site", line 28, in <module>
  File "/home/ec2-user/ll-challenge/ll/client/", line 95, in __init__
    self.store_queries(args.key, args.query_file)
  File "/home/ec2-user/ll-challenge/ll/client/", 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/", 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/", 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/", 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/", 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/", line 525, in get_adapter
    raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for ' '

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://".

     ./bin/client-site --key SITEKEY  -q -d --host  --port 5000
  2. Log in to comment