Closed timeday closed 1 year ago
My certificate is a valid certificate obtained by the customer,It's been bothering me for several days now Error message: Unable to sendViaPost to url[https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4] java.net.ConnectException: Connection timed out: connect
Other site access is normal, such as SP
Hey! Are u using the last version? This was corrected in version 4.00.24.
Yes, I am using the latest version。
The MG site was originally available, but I'm not sure what's going on lately? It's been bothering me for a week. Could you please help me? Thank you
The project uses JDK1.8
I also tried the testing method in the source code and reported that the connection was not working. I am in Shenzhen, China. Is this caused by my network issue? How should I handle this situation? Could you please give me a suggestion. thank you
I followed the customer's certificate pfx file on my computer and opened a network proxy that can be accessed through a browser https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4?wsdl And can be accessed using Postman https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4 This interface. But it is always inaccessible in the code.
I have solved the problem. It was caused by the network and the proxy was set up. Thank you
Hello, may I ask if I have used your open-source jar and found that the MG site cannot be debugged? Here is my code. Could you please help me take a look。 public static void main(String[] args) { try { Certificado certificado = CertificadoService.certificadoPfx("C:\Users\Lenovo\Desktop\bbbbbbb.pfx", "1234567890"); // Inicia As Configura??es (1) ConfiguracoesNfe config = ConfiguracoesNfe.criarConfiguracoes(EstadosEnum.MG, AmbienteEnum.PRODUCAO,certificado,""); //Efetua Consulta TRetConsStatServ retorno = Nfe.statusServico(config, DocumentoEnum.NFE); //Resultado System.out.println(); System.out.println("# Status: " + retorno.getCStat() + " - " + retorno.getXMotivo()); } catch (Exception e) { System.err.println("# Erro: "+e.getMessage()); } }