bimmer_connected: OSError 104 ECONNRESET: Authentication failed

I’m not be able to use the api… even if I change the password… (I’m able to login on bmw connect drive portal and on my iOS app)

`./bimmerconnected vehiclefinder myemail mypassword rest_of_world myvin DEBUG:bimmer_connected.account:Getting vehicle list DEBUG:bimmer_connected.account:getting new oauth token DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): customer.bmwgroup.com ERROR:bimmer_connected.account:Authentication failed. Maybe your password is invalid? ERROR:bimmer_connected.account:(‘Connection aborted.’, OSError(“(104, ‘ECONNRESET’)”)) Traceback (most recent call last): File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 598, in urlopen httplib_response = self._make_request(conn, method, url, File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 387, in _make_request six.raise_from(e, None) File “<string>”, line 2, in raise_from File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 383, in _make_request httplib_response = conn.getresponse() File “/usr/lib/python3.8/http/client.py”, line 1347, in getresponse response.begin() File “/usr/lib/python3.8/http/client.py”, line 307, in begin version, status, reason = self._read_status() File “/usr/lib/python3.8/http/client.py”, line 268, in _read_status line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”) File “/usr/lib/python3.8/socket.py”, line 669, in readinto return self._sock.recv_into(b) File “/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py”, line 285, in recv_into raise SocketError(str(e)) OSError: (104, ‘ECONNRESET’)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/usr/local/lib/python3.8/dist-packages/requests/adapters.py”, line 430, in send resp = conn.urlopen( File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File “/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py”, line 357, in increment raise six.reraise(type(error), error, _stacktrace) File “/usr/local/lib/python3.8/dist-packages/urllib3/packages/six.py”, line 685, in reraise raise value.with_traceback(tb) File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 598, in urlopen httplib_response = self._make_request(conn, method, url, File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 387, in _make_request six.raise_from(e, None) File “<string>”, line 2, in raise_from File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 383, in _make_request httplib_response = conn.getresponse() File “/usr/lib/python3.8/http/client.py”, line 1347, in getresponse response.begin() File “/usr/lib/python3.8/http/client.py”, line 307, in begin version, status, reason = self._read_status() File “/usr/lib/python3.8/http/client.py”, line 268, in _read_status line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”) File “/usr/lib/python3.8/socket.py”, line 669, in readinto return self._sock.recv_into(b) File “/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py”, line 285, in recv_into raise SocketError(str(e)) urllib3.exceptions.ProtocolError: (‘Connection aborted.’, OSError(“(104, ‘ECONNRESET’)”))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 111, in _get_oauth_token response = self.send_request(url, data=data, headers=headers, allow_redirects=False, File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 154, in send_request response = requests.post(url, headers=headers, data=data, allow_redirects=allow_redirects, File “/usr/local/lib/python3.8/dist-packages/requests/api.py”, line 112, in post return request(‘post’, url, data=data, json=json, **kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/api.py”, line 58, in request return session.request(method=method, url=url, **kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/sessions.py”, line 508, in request resp = self.send(prep, **send_kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/sessions.py”, line 618, in send r = adapter.send(request, **kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/adapters.py”, line 490, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: (‘Connection aborted.’, OSError(“(104, ‘ECONNRESET’)”)) Traceback (most recent call last): File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 598, in urlopen httplib_response = self._make_request(conn, method, url, File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 387, in _make_request six.raise_from(e, None) File “<string>”, line 2, in raise_from File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 383, in _make_request httplib_response = conn.getresponse() File “/usr/lib/python3.8/http/client.py”, line 1347, in getresponse response.begin() File “/usr/lib/python3.8/http/client.py”, line 307, in begin version, status, reason = self._read_status() File “/usr/lib/python3.8/http/client.py”, line 268, in _read_status line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”) File “/usr/lib/python3.8/socket.py”, line 669, in readinto return self._sock.recv_into(b) File “/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py”, line 285, in recv_into raise SocketError(str(e)) OSError: (104, ‘ECONNRESET’)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/usr/local/lib/python3.8/dist-packages/requests/adapters.py”, line 430, in send resp = conn.urlopen( File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File “/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py”, line 357, in increment raise six.reraise(type(error), error, _stacktrace) File “/usr/local/lib/python3.8/dist-packages/urllib3/packages/six.py”, line 685, in reraise raise value.with_traceback(tb) File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 598, in urlopen httplib_response = self._make_request(conn, method, url, File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 387, in _make_request six.raise_from(e, None) File “<string>”, line 2, in raise_from File “/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py”, line 383, in _make_request httplib_response = conn.getresponse() File “/usr/lib/python3.8/http/client.py”, line 1347, in getresponse response.begin() File “/usr/lib/python3.8/http/client.py”, line 307, in begin version, status, reason = self._read_status() File “/usr/lib/python3.8/http/client.py”, line 268, in _read_status line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”) File “/usr/lib/python3.8/socket.py”, line 669, in readinto return self._sock.recv_into(b) File “/usr/local/lib/python3.8/dist-packages/urllib3/contrib/pyopenssl.py”, line 285, in recv_into raise SocketError(str(e)) urllib3.exceptions.ProtocolError: (‘Connection aborted.’, OSError(“(104, ‘ECONNRESET’)”))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 111, in _get_oauth_token response = self.send_request(url, data=data, headers=headers, allow_redirects=False, File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 154, in send_request response = requests.post(url, headers=headers, data=data, allow_redirects=allow_redirects, File “/usr/local/lib/python3.8/dist-packages/requests/api.py”, line 112, in post return request(‘post’, url, data=data, json=json, **kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/api.py”, line 58, in request return session.request(method=method, url=url, **kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/sessions.py”, line 508, in request resp = self.send(prep, **send_kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/sessions.py”, line 618, in send r = adapter.send(request, **kwargs) File “/usr/local/lib/python3.8/dist-packages/requests/adapters.py”, line 490, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: (‘Connection aborted.’, OSError(“(104, ‘ECONNRESET’)”))

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “./bimmerconnected”, line 8, in <module> sys.exit(main()) File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/cli.py”, line 240, in main args.func(args) File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/cli.py”, line 140, in vehicle_finder account = ConnectedDriveAccount(args.username, args.password, get_region_from_name(args.region)) File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 61, in init self._get_vehicles() File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 226, in _get_vehicles self._get_oauth_token() File “/home/myuser/.local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 117, in _get_oauth_token raise OSError(msg) from exception OSError: Authentication failed. Maybe your password is invalid? `

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 59 (11 by maintainers)

Most upvoted comments

bimmer_connected 0.7.8 has been published to PyPI. When using HA you should now be able to manually update by pip3 install bimmer-connected==0.7.8. I will create a PR for HA later today.

@danibiza looks like you’ll need to wait for the change above to work it’s way through the system.