⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
acme
/
__pycache__
/
View File Name :
errors.cpython-310.pyc
o 6a @ sH d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl Z ej r1ddlmZ G d d d e ZG dd deZG d d dejZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd d eZG d!d" d"eZG d#d$ d$eZdS )%zACME errors. N)Any)List)Mapping)Set)errors)messagesc @ e Zd ZdZdS )ErrorzGeneric ACME error.N__name__ __module____qualname____doc__ r r -/usr/lib/python3/dist-packages/acme/errors.pyr r c @ r )DependencyErrorzDependency errorNr r r r r r r r c @ r )SchemaValidationErrorz)JSON schema ACME object validation error.Nr r r r r r r r c @ r )ClientErrorzNetwork error.Nr r r r r r r r c @ r )UnexpectedUpdatezUnexpected update error.Nr r r r r r ! r r c @ r ) NonceErrorzServer response nonce error.Nr r r r r r % r r c s@ e Zd ZdZdedededdf fddZdefd d Z Z S )BadNoncezBad nonce error.nonceerrorargsreturnNc s t j| || _|| _d S N)super__init__r r )selfr r r __class__r r r + s zBadNonce.__init__c C s d | j| jS )NzInvalid nonce ({0!r}): {1})formatr r r r r r __str__0 s zBadNonce.__str__) r r r r str Exceptionr r r$ __classcell__r r r r r ) s r c s> e Zd ZdZdejdeddf fddZdefdd Z Z S ) MissingNoncezMissing nonce error. According to the specification an "ACME server MUST include an Replay-Nonce header field in each successful response to a POST it provides to a client (...)". :ivar requests.Response ~.response: HTTP Response responser r Nc s t j| || _d S r )r r r) )r r) r r r r r > s zMissingNonce.__init__c C s d | jjj| jjS )Nz_Server {0} response did not include a replay nonce, headers: {1} (This may be a service outage))r" r) requestmethodheadersr# r r r r$ B s zMissingNonce.__str__)r r r r requestsResponser r r% r$ r' r r r r r( 4 s r( c sV e Zd ZdZded ded ddf fdd Zedefd dZ de fdd Z ZS ) PollErrora Generic error when polling for authorization fails. This might be caused by either timeout (`exhausted` will be non-empty) or by some authorization being invalid. :ivar exhausted: Set of `.AuthorizationResource` that didn't finish within max allowed attempts. :ivar updated: Mapping from original `.AuthorizationResource` to the most recently updated one exhaustedmessages.AuthorizationResourceupdated)r1 r1 r Nc s || _ || _t d S r )r0 r2 r r )r r0 r2 r r r r T s zPollError.__init__c C s t | jS )z Was the error caused by timeout?)boolr0 r# r r r timeout\ s zPollError.timeoutc C s d | jj| j| jS )Nz#{0}(exhausted={1!r}, updated={2!r}))r" r! r r0 r2 r# r r r __repr__a s zPollError.__repr__) r r r r r r r propertyr3 r4 r% r5 r' r r r r r/ H s r/ c s. e Zd ZdZded ddf fddZ ZS )ValidationErrorzError for authorization failures. Contains a list of authorization resources, each of which is invalid and should have an error field. failed_authzrsr1 r Nc || _ t d S r )r8 r r )r r8 r r r r j zValidationError.__init__)r r r r r r r' r r r r r7 f s "r7 c @ r )TimeoutErrorz>Error for when polling an authorization or an order times out.Nr r r r r r; o r r; c s" e Zd ZdZd fddZ ZS ) IssuanceErrorzDError sent by the server after requesting issuance of a certificate.r messages.Errorr Nc s || _ t dS )z\Initialize. :param messages.Error error: The error provided by the server. N)r r r )r r r r r r v s zIssuanceError.__init__)r r= r N)r r r r r r' r r r r r<