SII staging environment error
When attempting to use the staging environment with the AEAT URL, the following error occurs:
MaxRetryError
HTTPSConnectionPool(host='www7.aeat.es', port=443): Max retries exceeded with url: /wlpl/SSII-FACT/ws/fe/SiiFactFEV1SOAP (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa734556490>: Failed to establish a new connection: [Errno -2] Name or service not known'))
According to the information available at this URL, it appears that the URL "www7.aeat.es" has been invalid since March 2022.
It seems that the WS_URL (aeat key) is not up to date. Instead of "https://www7.aeat.es," it should return "https://prewww1.aeat.es" for the SuministroFactEmitidas staging endpoint, and possibly for other staging endpoints as well.
Edited by Adrià Tarroja Caubet