DuckDns ist immer wieder nicht verfügbar #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connection.py:196, in HTTPConnection._new_conn(self)
195 try:
--> 196 sock = connection.create_connection(
197 (self._dns_host, self.port),
198 self.timeout,
199 source_address=self.source_address,
200 socket_options=self.socket_options,
201 )
202 except socket.gaierror as e:
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\util\connection.py:60, in create_connection(address, timeout, source_address, socket_options)
58 raise LocationParseError(f"'{host}', label empty or too long") from None
---> 60 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
61 af, socktype, proto, canonname, sa = res
File ~\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\socket.py:976, in getaddrinfo(host, port, family, type, proto, flags)
975 addrlist = []
--> 976 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
977 af, socktype, proto, canonname, sa = res
gaierror: [Errno 11002] getaddrinfo failed
The above exception was the direct cause of the following exception:
NameResolutionError Traceback (most recent call last)
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connectionpool.py:789, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
788 # Make the request on the HTTPConnection object
--> 789 response = self._make_request(
790 conn,
791 method,
792 url,
793 timeout=timeout_obj,
794 body=body,
795 headers=headers,
796 chunked=chunked,
797 retries=retries,
798 response_conn=response_conn,
799 preload_content=preload_content,
800 decode_content=decode_content,
801 **response_kw,
802 )
804 # Everything went great!
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connectionpool.py:490, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
489 new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
--> 490 raise new_e
492 # conn.request() calls http.client.*.request, not the method in
493 # urllib3.request. It also calls makefile (recv) on the socket.
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connectionpool.py:466, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
465 try:
--> 466 self._validate_conn(conn)
467 except (SocketTimeout, BaseSSLError) as e:
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connectionpool.py:1095, in HTTPSConnectionPool._validate_conn(self, conn)
1094 if conn.is_closed:
-> 1095 conn.connect()
1097 # TODO revise this, see https://github.com/urllib3/urllib3/issues/2791
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connection.py:615, in HTTPSConnection.connect(self)
614 sock: socket.socket | ssl.SSLSocket
--> 615 self.sock = sock = self._new_conn()
616 server_hostname: str = self.host
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connection.py:203, in HTTPConnection._new_conn(self)
202 except socket.gaierror as e:
--> 203 raise NameResolutionError(self.host, self, e) from e
204 except SocketTimeout as e:
Fehlermeldung:
NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x00000263A4C13BC0>: Failed to resolve 'farmos.wagframe.duckdns.org' ([Errno 11002] getaddrinfo failed)
The above exception was the direct cause of the following exception:
MaxRetryError Traceback (most recent call last)
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\requests\adapters.py:667, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
666 try:
--> 667 resp = conn.urlopen(
668 method=request.method,
669 url=url,
670 body=request.body,
671 headers=request.headers,
672 redirect=False,
673 assert_same_host=False,
674 preload_content=False,
675 decode_content=False,
676 retries=self.max_retries,
677 timeout=timeout,
678 chunked=chunked,
679 )
681 except (ProtocolError, OSError) as err:
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\connectionpool.py:843, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)
841 new_e = ProtocolError("Connection aborted.", new_e)
--> 843 retries = retries.increment(
844 method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
845 )
846 retries.sleep()
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\urllib3\util\retry.py:519, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
518 reason = error or ResponseError(cause)
--> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
MaxRetryError: HTTPSConnectionPool(host='farmos.wagframe.duckdns.org', port=443): Max retries exceeded with url: /oauth/token/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x00000263A4C13BC0>: Failed to resolve 'farmos.wagframe.duckdns.org' ([Errno 11002] getaddrinfo failed)"))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import neofarm.lib as neo
2 import pandas as pd
3 from datetime import datetime
File ~\Documents\FarmOS\JupyterLab\farmos.py-wagner\neofarm\lib.py:32
29 jsonapi_requests.configuration.default = api
30 return api
---> 32 api = init_api()
33 MyMeta.set_api(api)
34 # orm stuff classes imported here to allow inheritance from MyMeta
File ~\Documents\FarmOS\JupyterLab\farmos.py-wagner\neofarm\lib.py:17, in init_api()
15 client = BackendApplicationClient(client_id=client_id)
16 oauth_session = OAuth2Session(client=client)
---> 17 token = oauth_session.fetch_token(
18 token_url = token_url,
19 client_id = client_id,
20 client_secret = client_secret
21 )
22 oauth = OAuth2(client_id=client_id, client=client, token=token)
24 api = jsonapi_requests.orm.OrmApi.config({
25 'API_ROOT': api_root,
26 'AUTH': oauth,
27 'TIMEOUT': 1,
28 })
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\requests_oauthlib\oauth2_session.py:341, in OAuth2Session.fetch_token(self, token_url, code, authorization_response, body, auth, username, password, method, force_querystring, timeout, headers, verify, proxies, include_client_id, client_secret, cert, **kwargs)
338 else:
339 raise ValueError("The method kwarg must be POST or GET.")
--> 341 r = self.request(
342 method=method,
343 url=token_url,
344 timeout=timeout,
345 headers=headers,
346 auth=auth,
347 verify=verify,
348 proxies=proxies,
349 cert=cert,
350 **request_kwargs
351 )
353 log.debug("Request to fetch token completed with status %s.", r.status_code)
354 log.debug("Request url was %s", r.request.url)
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\requests_oauthlib\oauth2_session.py:521, in OAuth2Session.request(self, method, url, data, headers, withhold_token, client_id, client_secret, **kwargs)
519 log.debug("Supplying headers %s and data %s", headers, data)
520 log.debug("Passing through key word arguments %s.", kwargs)
--> 521 return super(OAuth2Session, self).request(
522 method, url, headers=headers, data=data, **kwargs
523 )
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\requests\sessions.py:589, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
584 send_kwargs = {
585 "timeout": timeout,
586 "allow_redirects": allow_redirects,
587 }
588 send_kwargs.update(settings)
--> 589 resp = self.send(prep, **send_kwargs)
591 return resp
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\requests\sessions.py:703, in Session.send(self, request, **kwargs)
700 start = preferred_clock()
702 # Send the request
--> 703 r = adapter.send(request, **kwargs)
705 # Total elapsed time of the request (approximately)
706 elapsed = preferred_clock() - start
File \?\C:\Users\Wir\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\requests\adapters.py:700, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
696 if isinstance(e.reason, _SSLError):
697 # This branch is for urllib3 v1.22 and later.
698 raise SSLError(e, request=request)
--> 700 raise ConnectionError(e, request=request)
702 except ClosedPoolError as e:
703 raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='farmos.wagframe.duckdns.org', port=443): Max retries exceeded with url: /oauth/token/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x00000263A4C13BC0>: Failed to resolve 'farmos.wagframe.duckdns.org' ([Errno 11002] getaddrinfo failed)"))
hoffentlich durch
275bc49ffdgefixt