{"action":"created","issue":{"url":"https://api.github.com/repos/pyeve/eve/issues/1179","repository_url":"https://api.github.com/repos/pyeve/eve","labels_url":"https://api.github.com/repos/pyeve/eve/issues/1179/labels{/name}","comments_url":"https://api.github.com/repos/pyeve/eve/issues/1179/comments","events_url":"https://api.github.com/repos/pyeve/eve/issues/1179/events","html_url":"https://github.com/pyeve/eve/issues/1179","id":347044028,"node_id":"MDU6SXNzdWUzNDcwNDQwMjg=","number":1179,"title":"Invalid URI scheme: URI must begin with 'mongodb://' or 'mongodb+srv://","user":{"login":"vaibhav293","id":13231328,"node_id":"MDQ6VXNlcjEzMjMxMzI4","avatar_url":"https://avatars3.githubusercontent.com/u/13231328?v=4","gravatar_id":"","url":"https://api.github.com/users/vaibhav293","html_url":"https://github.com/vaibhav293","followers_url":"https://api.github.com/users/vaibhav293/followers","following_url":"https://api.github.com/users/vaibhav293/following{/other_user}","gists_url":"https://api.github.com/users/vaibhav293/gists{/gist_id}","starred_url":"https://api.github.com/users/vaibhav293/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaibhav293/subscriptions","organizations_url":"https://api.github.com/users/vaibhav293/orgs","repos_url":"https://api.github.com/users/vaibhav293/repos","events_url":"https://api.github.com/users/vaibhav293/events{/privacy}","received_events_url":"https://api.github.com/users/vaibhav293/received_events","type":"User","site_admin":false},"labels":[{"id":17124194,"node_id":"MDU6TGFiZWwxNzEyNDE5NA==","url":"https://api.github.com/repos/pyeve/eve/labels/duplicate","name":"duplicate","color":"cccccc","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-02T14:44:44Z","updated_at":"2018-08-06T17:01:44Z","closed_at":"2018-08-06T17:01:44Z","author_association":"NONE","body":"We are running eve in a docker container and connecting to mongo using MONGO_URI ( not as depending mongodb docker). We keep getting the following error: \r\n\r\n```\r\n({'status': 'ERR', '_error': {'code': 500, 'message': \"Error in getting user Invalid URI scheme: URI must begin with 'mongodb://' or 'mongodb+srv://'\"}}, {'url': 'http://localhost:9001/api/v1/users/ecc1a', 'environ': {'HTTP_HOST': 'localhost:9001', 'REMOTE_PORT': 58994, 'wsgi.multithread': False, 'werkzeug.request': <Request 'http://localhost:9001/api/v1/users/ecc1a' [GET]>, 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>, 'wsgi.input': <_io.BufferedReader name=7>, 'CONTENT_TYPE': 'application/json', 'QUERY_STRING': '', 'HTTP_USER_AGENT': 'PostmanRuntime/7.1.1', 'SCRIPT_NAME': '', 'HTTP_POSTMAN_TOKEN': '6992a8f2-9a7f-4788-b90d-02e121a91a62', 'CONTENT_LENGTH': '', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_ACCEPT': 'application/json', 'wsgi.version': (1, 0), 'REQUEST_METHOD': 'GET', 'SERVER_SOFTWARE': 'Eve/0.7.4 Werkzeug/0.11.15', 'werkzeug.server.shutdown': <function WSGIRequestHandler.make_environ.<locals>.shutdown_server at 0x7fa9569e8598>, 'PATH_INFO': '/api/v1/users/4fe482ef7d5a5de0511be4d7b24ecc1a', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'SERVER_PROTOCOL': 'HTTP/1.1', 'REMOTE_ADDR': '172.17.0.1', 'wsgi.url_scheme': 'http', 'HTTP_CACHE_CONTROL': 'no-cache', 'wsgi.run_once': False, 'SERVER_NAME': '0.0.0.0', 'wsgi.multiprocess': False, 'SERVER_PORT': '5000'}, 'url_rule': <Rule '/api/v1/users/<user_id>/' (OPTIONS, HEAD, GET) -> get_user>, 'shallow': False, 'view_args': {'user_id': 'ecc1a'}})\r\n```\r\n\r\nIf we run the same without docker then our code works without any issues. \r\n\r\nOur Dockerfile looks like this:\r\n\r\n```\r\nFROM python:3.4.3\r\n\r\nRUN mkdir -p /usr/src/user-service\r\n\r\nWORKDIR /usr/src/user-service\r\n\r\nCOPY . /usr/src/user-service\r\n\r\nRUN pip install -r requirements.txt\r\n\r\nCMD [\"python\",\"-v\",\"application.py\"]\r\n```\r\n\r\n### Environment\r\n\r\n* Python version: 3.4.3\r\n* Eve version: 0.7.4\r\n"},"comment":{"url":"https://api.github.com/repos/pyeve/eve/issues/comments/410777782","html_url":"https://github.com/pyeve/eve/issues/1179#issuecomment-410777782","issue_url":"https://api.github.com/repos/pyeve/eve/issues/1179","id":410777782,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDc3Nzc4Mg==","user":{"login":"nicolaiarocci","id":512968,"node_id":"MDQ6VXNlcjUxMjk2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/512968?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolaiarocci","html_url":"https://github.com/nicolaiarocci","followers_url":"https://api.github.com/users/nicolaiarocci/followers","following_url":"https://api.github.com/users/nicolaiarocci/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiarocci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiarocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiarocci/subscriptions","organizations_url":"https://api.github.com/users/nicolaiarocci/orgs","repos_url":"https://api.github.com/users/nicolaiarocci/repos","events_url":"https://api.github.com/users/nicolaiarocci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiarocci/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T17:01:44Z","updated_at":"2018-08-06T17:01:44Z","author_association":"MEMBER","body":"Most likely. Probably, when running out of the container, you are using an older version of Flask-PyMongo. "}}
{"actor":{"display_login":"nicolaiarocci"}}