{"action":"created","issue":{"url":"https://api.github.com/repos/RDFLib/sparqlwrapper/issues/56","labels_url":"https://api.github.com/repos/RDFLib/sparqlwrapper/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/RDFLib/sparqlwrapper/issues/56/comments","events_url":"https://api.github.com/repos/RDFLib/sparqlwrapper/issues/56/events","html_url":"https://github.com/RDFLib/sparqlwrapper/issues/56","id":105572380,"number":56,"title":"I got an error when using setCredentials","user":{"login":"cryptid11","id":5619681,"avatar_url":"https://avatars.githubusercontent.com/u/5619681?v=3","gravatar_id":"","url":"https://api.github.com/users/cryptid11","html_url":"https://github.com/cryptid11","followers_url":"https://api.github.com/users/cryptid11/followers","following_url":"https://api.github.com/users/cryptid11/following{/other_user}","gists_url":"https://api.github.com/users/cryptid11/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptid11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptid11/subscriptions","organizations_url":"https://api.github.com/users/cryptid11/orgs","repos_url":"https://api.github.com/users/cryptid11/repos","events_url":"https://api.github.com/users/cryptid11/events{/privacy}","received_events_url":"https://api.github.com/users/cryptid11/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-09T10:50:21Z","updated_at":"2015-09-09T14:58:16Z","closed_at":"2015-09-09T14:56:53Z","body":"ValueError: Invalid header value 'Basic pokwepdokwo\\n'\r\n\r\n\r\npokwepdokwo is the actual encoding of user:password that I see also in the Authorization field in the Request header for example in Chrome, so there is a wrongfully added \\n at the end, is this an error or it's me do something wrong?"},"comment":{"url":"https://api.github.com/repos/RDFLib/sparqlwrapper/issues/comments/138938051","html_url":"https://github.com/RDFLib/sparqlwrapper/issues/56#issuecomment-138938051","issue_url":"https://api.github.com/repos/RDFLib/sparqlwrapper/issues/56","id":138938051,"user":{"login":"cryptid11","id":5619681,"avatar_url":"https://avatars.githubusercontent.com/u/5619681?v=3","gravatar_id":"","url":"https://api.github.com/users/cryptid11","html_url":"https://github.com/cryptid11","followers_url":"https://api.github.com/users/cryptid11/followers","following_url":"https://api.github.com/users/cryptid11/following{/other_user}","gists_url":"https://api.github.com/users/cryptid11/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptid11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptid11/subscriptions","organizations_url":"https://api.github.com/users/cryptid11/orgs","repos_url":"https://api.github.com/users/cryptid11/repos","events_url":"https://api.github.com/users/cryptid11/events{/privacy}","received_events_url":"https://api.github.com/users/cryptid11/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T14:58:16Z","updated_at":"2015-09-09T14:58:16Z","body":"But I have another problem you can add to resolve in a row, \r\n\r\n     urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>\r\n\r\nI solve this adding this here https://github.com/RDFLib/sparqlwrapper/blob/master/SPARQLWrapper/Wrapper.py#L537:\r\n\r\n            import ssl\r\n            ctx = ssl.create_default_context()\r\n            ctx.check_hostname = False\r\n            ctx.verify_mode = ssl.CERT_NONE\r\n            response = urlopener(request, context=ctx)"}}