After upgrading the classes from xsds to version 1.3.02, I am trying to pass EFD Reinf open (R1000) and close (R2099) events. I have been correcting the errors as they have appeared until I stop at the following:
MS0020 - Proxy System access failed Electronics. Wait some minutes and try again. (2478979111)
I could not progress from there. The CNPJ in the events is the matrix root, with eight digits, right aligned with zeros, which from queries to the manual and some forums was what I understood it should be. The certificate is an A1 that is registered with the E-CAC as the proxy of the company that transmits the data.
The message seems to be an internal error of theirs, but as I have not seen anyone else talking about this particular error I imagine it to be something in the padding. Here are the xmls (hashs and signatures omitted for brevity).
Shipping:
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/envioLoteEventos/v1_03_02">
<loteEventos>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200002">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtInfoContribuinte/v1_03_02">
<evtInfoContri id="ID1XXXXXXXXXXXXXX2018043013431200000">
<ideEvento>
<tpAmb>2</tpAmb>
<procEmi>1</procEmi>
<verProc>1.0</verProc>
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<infoContri>
<inclusao>
<idePeriodo>
<iniValid>2017-01</iniValid>
</idePeriodo>
<infoCadastro>
<classTrib>99</classTrib>
<indEscrituracao>0</indEscrituracao>
<indDesoneracao>0</indDesoneracao>
<indAcordoIsenMulta>0</indAcordoIsenMulta>
<indSitPJ>0</indSitPJ>
<contato>
<nmCtt>Teste</nmCtt>
<cpfCtt>12345678900</cpfCtt>
<foneFixo>2122223333</foneFixo>
<foneCel>21912345678</foneCel>
<email>[email protected]</email>
</contato>
</infoCadastro>
</inclusao>
</infoContri>
</evtInfoContri>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1XXXXXXXXXXXXXX2018043013431200000">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200003">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtFechamento/v1_03_02">
<evtFechaEvPer id="ID1XXXXXXXXXXXXXX2018043013431200001">
<ideEvento>
<perApur>2017-01</perApur>
<tpAmb>2</tpAmb>
<procEmi>1</procEmi>
<verProc>1</verProc>
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<ideRespInf>
<nmResp>Teste</nmResp>
<cpfResp>12345678900</cpfResp>
<telefone>2122223333</telefone>
<email>[email protected]</email>
</ideRespInf>
<infoFech>
<evtServTm>N</evtServTm>
<evtServPr>N</evtServPr>
<evtAssDespRec>N</evtAssDespRec>
<evtAssDespRep>N</evtAssDespRep>
<evtComProd>N</evtComProd>
<evtCPRB>N</evtCPRB>
<evtPgtos>N</evtPgtos>
</infoFech>
</evtFechaEvPer>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1XXXXXXXXXXXXXX2018043013431200001">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<DigestValue>a17VdbLyWAEaq1ABm7pMNLI340ZlQO2b4splHna5xKA=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
</loteEventos>
Answer:
<ReceberLoteEventosResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Body>
<ReceberLoteEventosResult>
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/retornoLoteEventos/v1_03_02">
<retornoLoteEventos id="IDB5853EC5FA5EE568D41CBEC09DD254E0">
<ideTransmissor>
<IdTransmissor>16567897000170</IdTransmissor>
</ideTransmissor>
<status>
<cdStatus>0</cdStatus>
<descRetorno>SUCESSO</descRetorno>
</status>
<retornoEventos>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200002">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtTotal/v1_03_02">
<evtTotal id="ID1525755225">
<ideEvento>
<perApur />
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<ideRecRetorno>
<ideStatus>
<cdRetorno>1</cdRetorno>
<descRetorno>ERRO</descRetorno>
<regOcorrs>
<tpOcorr>1</tpOcorr>
<localErroAviso />
<codResp>MS0020</codResp>
<dscResp>Ocorreu uma falha no acesso ao Sistema de Procuração Eletrônica. Aguarde alguns minutos e tente novamente. (2478979111)</dscResp>
</regOcorrs>
</ideStatus>
</ideRecRetorno>
<infoRecEv>
<dhProcess>2018-04-30T13:43:13.8918393-03:00</dhProcess>
<tpEv>1000</tpEv>
<idEv>ID1XXXXXXXXXXXXXX2018043013431200000</idEv>
<hash>...</hash>
</infoRecEv>
<infoTotal />
</evtTotal>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1525755225">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIHcDCCBVigAwIBAgICTGkwDQYJKoZIhvcNAQELBQAwgY4xCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMTYwNAYDVQQLDC1TZWNyZXRhcmlhIGRhIFJlY2VpdGEgRmVkZXJhbCBkbyBCcmFzaWwgLSBSRkIxMjAwBgNVBAMMKUF1dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBkbyBTRVJQUk9SRkIgU1NMMB4XDTE3MDkyNzE3MjI1MloXDTE4MDkyNzE3MjI1MlowgboxCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMTYwNAYDVQQLDC1TZWNyZXRhcmlhIGRhIFJlY2VpdGEgRmVkZXJhbCBkbyBCcmFzaWwgLSBSRkIxETAPBgNVBAsMCEFSU0VSUFJPMRowGAYDVQQLDBFSRkIgZS1TZXJ2aWRvciBBMTEvMC0GA1UEAwwmcHJlcHJvZGVmZHJlaW5mLnJlY2VpdGEuZmF6ZW5kYS5nb3YuYnIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDKOtmV56Mu/VbANmjngQ5L8o2INr+IQlXJC7rthuAitaPDS0SpSCxsETtFRik10Ri9bl/DDh1NMtRfGgLBh1RJI232gyoRcmqAG0XTY8ZQOLCd/VMpi5BOmypNnXjaj99evEI6QIvFplVJ/q63jdJX3G+pdvebbrX2EUeT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BQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggIBAEA7eq1vHVjPuVdP5K/zlUlJCW7hwhn0kJDCU5ybiPQE9xW48Wx8ypz6sM9axbp9PfNMV1JkBqiDK30nNYF+xOgS+OJsNFZfdAwMgOQeZYemuTZgc6V3/QZbrhehZ447qAlZxvYaHD0fZhJuP8pMOu5gS1JOxQHHbAke/qJEVo1SQhUFttFs9daCeTlEF0xtj8wUvnKF0BF86Cc6+LI+ab0F8CVmph64uWaxLDvJ/h6LftxOcnz59z5+uIOdEQLMQWl0Qgxk+PUvhU/CacwP2B94ouQdfyaCLbSgAFck7nhgwowxX7JA3V4OlQRw7aAjt8Kikh/NjWYTfF/GZeEy90XCW8DbBmg4bSIdnaAds9Y6ne4CjO1fPILoDZRXBAzKrvBYyN6/GOd/u1nlMe3OvEPa8zpc565kxbUZZGFqPk5Tv4+11od7rJ+l/4KTj0ok0hRXnpEWQBsbSQ/YsFSOIOaID2uvyl/Q2C0YRbea+OrtmRgMqMAXWUn9TxMbAw2KgoV/V4/3Gv4QVZ/HRGPLidv9UVxf10n8imNwYrjo1focwIym254uUmyeRYcrCWh+UR0x3dwU5agb2uRNkoJ8aTGwpNNhlFdUDCwIulzi8EQRBIp1nuqEW7mQPOnH+PdKwAxd7ESfehnESjmrw0i55AZJF0rhn7CW8lxi2RXmjj9S</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
<evento id="ID1XXXXXXXXXXXXXX2018043013431200003">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtTotal/v1_03_02">
<evtTotal id="ID1526439992">
<ideEvento>
<perApur>2017-01</perApur>
</ideEvento>
<ideContri>
<tpInsc>2</tpInsc>
<nrInsc>XXXXXXXXXXXXXX</nrInsc>
</ideContri>
<ideRecRetorno>
<ideStatus>
<cdRetorno>1</cdRetorno>
<descRetorno>ERRO</descRetorno>
<regOcorrs>
<tpOcorr>1</tpOcorr>
<localErroAviso />
<codResp>MS0020</codResp>
<dscResp>Ocorreu uma falha no acesso ao Sistema de Procuração Eletrônica. Aguarde alguns minutos e tente novamente. (2478979111)</dscResp>
</regOcorrs>
</ideStatus>
</ideRecRetorno>
<infoRecEv>
<dhProcess>2018-04-30T13:43:13.9543704-03:00</dhProcess>
<tpEv>2099</tpEv>
<idEv>ID1XXXXXXXXXXXXXX2018043013431200001</idEv>
<hash>...=</hash>
</infoRecEv>
<infoTotal />
</evtTotal>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID1526439992">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<DigestValue>...</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>...</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>...</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
</retornoEventos>
</retornoLoteEventos>
</Reinf>
</ReceberLoteEventosResult>
</Body>
If anyone has any ideas, thank you very much!