Closed jlopezjuy closed 1 month ago
Que codigo ejecutas para que te de ese error?
Hola buenas. ejecuto lo siguiente:
const cert = fs.readFileSync(certFilePath, { encoding: 'utf8' });
const key = fs.readFileSync(keyFilePath, { encoding: 'utf8' });
console.log(cert.toString());
console.log('');
console.log(key.toString());
const afip = new Afip({
CUIT: cuit,
key: key,
cert: cert,
production: empresa.enabled,
access_token: 'LZ9yOynyGQ6EqpRPQ9nUjRAHRgG4m8CMYeuTndovXGzdxRI5Igt7EMHWNppycxhj'
});
console.log('empresa.enabled');
console.log(empresa.enabled);
console.log(afip);
Y cuando va a buscar el ultimo comprobante es cuando se genera el error:
/**
* Número de la ultima Factura B
**/
console.log('last_voucher');
const last_voucher = await afip.ElectronicBilling.getLastVoucher(factura.puntoVenta, factura.tipoDeFactura);
console.log(last_voucher);
Te dejo un log completo de lo que pude sacar con console logs
<ref *1> Afip {
sdk_version_number: '1.1.1',
options: {
CUIT: '27308345438',
key: '-----BEGIN RSA PRIVATE KEY-----\r\n' +
'MIIEpAIBAAKCAQEAsUs+50ndWIyqPQS7DlA4w5bsUOUCkKCRvkWmVymRJsM/s2yR\r\n' +
'ErZyMCFGGwbUgBdDIAd2pyFcATyP+X3biSFWF6aWebX/msquXdgOVdljPie8DqZY\r\n' +
'2zWzdGxI3Q2LMqDvb0fO7BFn9q/N6Yx5KBZ1lOqAqmwx5+NSqZX5DyqhmJF5sXiH\r\n' +
'cdEP7k8C6pKOdw9/IxJQSskw+neCm4Qptwsjv9ds3npWLPjv0fUArwslKzG6FRgf\r\n' +
'pX6EJLJKKEv7Az9lVgQKuVNL+aZvrVLlepW3QSZZ9Bub6xpmaMLxF4scLFlIm3Xo\r\n' +
'wngq+25aZCGKDXjr3VmcHN70nhlJkdgKjVstEQIDAQABAoIBAEijfqM+dSzJfRpA\r\n' +
'7O7BWXBxTmMaYQGmd/AQE0XU5v6NsnStv4Z+L6yehV2fX8MXRM5DoI57MXnkOUzM\r\n' +
'Dv1RJjfMbgxxz8a40dXrJ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xCzAJBgNVBAYTAkFSMB4XDTI0MDcxMzAxMzcwNloX\n' +
'DTI2MDcxMzAxMzcwNlowMTEUMBIGA1UEAwwLdGVzdE1hcmllbGExGTAXBgNVBAUTEENVSVQgMjcz\n' +
'MDgzNDU0MzgwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCxSz7nSd1YjKo9BLsOUDjD\n' +
'luxQ5QKQoJG+RaZXKZEmwz+zbJEStnIwIUYbBtSAF0MgB3anIVwBPI/5fduJIVYXppZ5tf+ayq5d\n' +
'ja8RIZzWIH3yT28wHQYDVR0OBBYEFE0PbdfWZAg0q5qsxc8ejw0PixNaMA4GA1UdDwEB/wQEAwIF\n' +
'4DANBgkqhkiG9w0BAQ0FAAOCAQEAU+nPlPp1WkMqHEWTt9orJ0BdjSYCSTDYWiLKhlo3K9xMooMF\n' +
'QtiYAGI27jceZJc7UnT5BxZ5TTZweaHvgzaOTBWiVOX4ScCPbYRVl4RWgXyGLZNFpVewrTnCpw3G\n' +
'oNFNd9Q1pDg6eehPl4rswdJlwyv9Hbu189f78AgAK+87S9wuzN7oIBbliIhFlrkFNKq7B4vsXVLP\n' +
'0AF/jesBaH2X1dDMzQkdwSK3sUQVmX+sARtTIPVTZmf+rkOX8D2CWr6b9M1sQsEE/wB2RxKUyjvD\n' +
'ieyETSDvj0wWmz7NdxiB319RXrD89+vwDTmi8+RzfXvGB/r/X/eSVaSTAqNW+9tsZw==\n' +
'-----END CERTIFICATE-----',
production: false,
access_token: 'LZ9yOynyGQ6EqpRPQ9nUjRAHRgG4m8CMYeuTndovXGzdxRI5Igt7EMHWNppycxhj'
},
CUIT: '27308345438',
CERT: '-----BEGIN CERTIFICATE-----\n' +
'MIIDSzCCAjOgAwIBAgIIOJoZa0F07TMwDQYJKoZIhvcNAQENBQAwODEaMBgGA1UEAwwRQ29tcHV0\n' +
'YWRvcmVzIFRlc3QxDTALBgNVBAoMBEFGSVAxCzAJBgNVBAYTAkFSMB4XDTI0MDcxM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jv0fUArwslKzG6FRgf\r\n' +
'EjdEJAECgYEA29Pw56gQO1AnJCT2dBUoW3tN07HUvq0Zd96vbx4LP84LmMt2eBXa\r\n' +
'pZ5bSm80eCw/15NOcKYOncBSRADtKBolpoK/XwW/STEVAfE5zsd0X3DrBAZLPyem\r\n' +
'e8DmFIZTF5dGe6mcEurO3Q3PBLjrR4NH9q14YBKfEnAwKGaP55iSrcECgYEAzneZ\r\n' +
'LIQ37LYo0wp4vAft744uwEzoArQwvC2MLcw1dRxDe+XIg1KGWo3cH3ELktu0kc8j\r\n' +
'IEs2PD0mibNy/daSczwvWuhEnoaHId6ge7RIpjOhCD/djpMnzu6QMLUaGlTZstxH\r\n' +
'vpggw01AaTgZ0cRoHy9vtKN8WThzyCJhhJUE81ECgYAyNbmLoAZ9FbSq+8pS/1Yl\r\n' +
'dwdyt+aI2s67Y2Cct7cIDs71Slu31/4F4CKn4LiSTkESwzGiZztlar0fjTqd80Lw\r\n' +
'QmLlmFF1rUFIHUn/4ezBs+/qDmn3dd3/3DJxM7Ec7U+LBVWBuKIhOXs0b+xFfEXe\r\n' +
'oQaiov40Xu2Q/MQXuPCfwQKBgQCTCpYqIBf8G1dDxcdqknMgErC0/5CUrGOxAPc+\r\n' +
'fprrxq9BA8sjy5gn0bQdKFNHyfT1iwHHNAlyKVLS6txQb4ppS0mmgpisFb8TngvJ\r\n' +
'TgIXa9mZmHJf4emN9FT4e2IVsqxAN6VY1dsvfEsNJIku3aQR4aS6j1w15oB+3g15\r\n' +
'cO/PoQKBgQCdA9imWIrG5j0JVKzp6hxx0wLxkCckW7TUDCP93XymkKERECUsxzlC\r\n' +
'2ICdvjONDPb/Au9fR8NMS5U70hxk5ubTkw7igp4FUXrhpaRpaEJxFnoKVK97q4xU\r\n' +
'XfUTyeT0BIkeGGeZ5WyuLWTO2rlSB6x5rBay9iqntvB4Ce0paJ2iKA==\r\n' +
'-----END RSA PRIVATE KEY-----\r\n',
AdminClient: [Function: wrap] {
constructor: [Function: wrap],
request: [Function: wrap],
_request: [Function: wrap],
getUri: [Function: wrap],
delete: [Function: wrap],
get: [Function: wrap],
head: [Function: wrap],
options: [Function: wrap],
post: [Function: wrap],
postForm: [Function: wrap],
put: [Function: wrap],
putForm: [Function: wrap],
patch: [Function: wrap],
patchForm: [Function: wrap],
defaults: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 30000,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object],
baseURL: 'https://app.afipsdk.com/api/'
},
interceptors: { request: [InterceptorManager], response: [InterceptorManager] },
create: [Function: create]
},
ElectronicBilling: ElectronicBilling {
soapv12: true,
WSDL: 'wsfe-production.wsdl',
URL: 'https://servicios1.afip.gov.ar/wsfev1/service.asmx',
WSDL_TEST: 'wsfe.wsdl',
URL_TEST: 'https://wswhomo.afip.gov.ar/wsfev1/service.asmx',
afip: [Circular *1],
options: { service: 'wsfe' }
},
RegisterScopeFour: RegisterScopeFour {
soapv12: false,
WSDL: 'ws_sr_padron_a4-production.wsdl',
URL: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA4',
WSDL_TEST: 'ws_sr_padron_a4.wsdl',
URL_TEST: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA4',
afip: [Circular *1],
options: { service: 'ws_sr_padron_a4' }
},
RegisterScopeFive: RegisterScopeFive {
soapv12: false,
WSDL: 'ws_sr_padron_a5-production.wsdl',
URL: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA5',
WSDL_TEST: 'ws_sr_padron_a5.wsdl',
URL_TEST: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA5',
afip: [Circular *1],
options: { service: 'ws_sr_padron_a5' }
},
RegisterInscriptionProof: RegisterInscriptionProof {
soapv12: false,
WSDL: 'ws_sr_padron_a5-production.wsdl',
URL: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA5',
WSDL_TEST: 'ws_sr_padron_a5.wsdl',
URL_TEST: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA5',
afip: [Circular *1],
options: { service: 'ws_sr_constancia_inscripcion' }
},
RegisterScopeTen: RegisterScopeTen {
soapv12: false,
WSDL: 'ws_sr_padron_a10-production.wsdl',
URL: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA10',
WSDL_TEST: 'ws_sr_padron_a10.wsdl',
URL_TEST: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA10',
afip: [Circular *1],
options: { service: 'ws_sr_padron_a10' }
},
RegisterScopeThirteen: RegisterScopeThirteen {
soapv12: false,
WSDL: 'ws_sr_padron_a13-production.wsdl',
URL: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA13',
WSDL_TEST: 'ws_sr_padron_a13.wsdl',
URL_TEST: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA13',
afip: [Circular *1],
options: { service: 'ws_sr_padron_a13' }
}
}
last_voucher
error.message
Request failed with status code 500
newError
Error: Request failed with status code 500
at /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Afip.js:85:20
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Axios.request (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/node_modules/axios/lib/core/Axios.js:40:14)
at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/AfipWebService.js:125:18)
at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:347:19)
at async ElectronicBilling.getLastVoucher (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:66:11)
at async FacturaService.getDatosFacturaB (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/server/src/service/factura.service.ts:59:28)
at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-proxy.js:9:17 {
status: 500,
statusText: 'Internal Server Error',
data: { code: 'Internal', message: 'Error: Error http status codes' }
}
[Nest] 30899 - 07/13/2024, 12:48:50 PM [ExceptionsHandler] Request failed with status code 500 +11518ms
Error: Request failed with status code 500
at /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Afip.js:85:20
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Axios.request (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/node_modules/axios/lib/core/Axios.js:40:14)
at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/AfipWebService.js:125:18)
at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:347:19)
at async ElectronicBilling.getLastVoucher (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:66:11)
at async FacturaService.getDatosFacturaB (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/server/src/service/factura.service.ts:59:28)
at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-proxy.js:9:17
@jlopezjuy mi única recomendación es que des de baja ese certificado en producción cuanto antes porque ya fue expuesto y cualquiera puede usarlo (a pesar de editar el comentario), saludos!
Por cierto yo también estoy recibiendo ese error por parte de la API 'https://app.afipsdk.com/api/'
@jlopezjuy mi única recomendación es que des de baja ese certificado en producción cuanto antes porque ya fue expuesto y cualquiera puede usarlo (a pesar de editar el comentario), saludos!
era un cert de test... de todas formas ya lo he realizado.... muchas gracias
Si haces un try catch a la linea const last_voucher = await afip.ElectronicBilling.getLastVoucher(factura.puntoVenta, factura.tipoDeFactura);
y log del error que te da?
Lo que me sale es justo lo que coloque en la publicación principal... En el catch sale error 500 con el mensaje típico per nada específico
Estoy teniendo el mismo problema:
try{
const {voucherNumber} = await afip.ElectronicBilling?.createNextVoucher(data);
}catch(e){
console.log(e);
throw e;
}
Error http status codes
at finish (/home/teti/Archivos/LibrosSilvestres/backup/api/node_modules/soap/src/client.ts:325:37)
at parseSync (/home/teti/Archivos/LibrosSilvestres/backup/api/node_modules/soap/src/client.ts:379:14)
at /home/teti/Archivos/LibrosSilvestres/backup/api/node_modules/soap/src/client.ts:574:16
at handleBody (/home/teti/Archivos/LibrosSilvestres/backup/api/node_modules/soap/src/http.ts:210:9)
at /home/teti/Archivos/LibrosSilvestres/backup/api/node_modules/soap/src/http.ts:241:16
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
response: {
status: 503,
statusText: 'Service Unavailable',
headers: {
'content-type': 'text/html',
date: 'Sat, 13 Jul 2024 22:14:12 GMT',
connection: 'close',
'content-length': '28',
'set-cookie': [Array]
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Function: transformResponse],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: null,
headers: [Object],
url: 'https://wswhomo.afip.gov.ar/wsfev1/service.asmx',
method: 'post',
data: '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tns="http://ar.gov.afip.dif.FEV1/"><soap:Body><FECompUltimoAutorizado xmlns="http://ar.gov.afip.dif.FEV1/"><PtoVta>4</PtoVta><CbteTipo>11</CbteTipo><Auth><Token>=</Token><Sign></Sign><Cuit>20434919798</Cuit></Auth></FECompUltimoAutorizado></soap:Body></soap:Envelope>'
},
request: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 1433,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
_header: 'POST /wsfev1/service.asmx HTTP/1.1\r\n' +
'Accept: text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8\r\n' +
'Content-Type: application/soap+xml; charset=utf-8; action="http://ar.gov.afip.dif.FEV1/FECompUltimoAutorizado"\r\n' +
'User-Agent: node-soap/1.0.0\r\n' +
'Accept-Encoding: none\r\n' +
'Accept-Charset: utf-8\r\n' +
'Connection: close\r\n' +
'Host: wswhomo.afip.gov.ar\r\n' +
'Content-Length: 1433\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/wsfev1/service.asmx',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'wswhomo.afip.gov.ar',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: [TLSSocket],
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: '<h1>Service Unavailable</h1>'
},
body: '<h1>Service Unavailable</h1>'
}
La página https://wswhomo.afip.gov.ar/wsfev1/service.asmx?wsdl, está respondiendo con 503: Service Unavailable
Efectivamente esta caido el servicio de testing
Hola a todos... parece que esta ok el servicio de test... ya pude hacer facturas... gracias... cierro el ticket
Hola buenas, tengo un error al facturar en produccion, dejo el log de error que pude obtener...
Request failed with status code 500 newError Error: Request failed with status code 500 at /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Afip.js:85:20 at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Axios.request (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/node_modules/axios/lib/core/Axios.js:40:14) at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/AfipWebService.js:125:18) at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:347:19) at async ElectronicBilling.getLastVoucher (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:66:11) at async FacturaService.getDatosFacturaB (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/server/src/service/factura.service.ts:57:28) at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-execution-context.js:46:28 at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-proxy.js:9:17 { status: 500, statusText: 'Internal Server Error', data: { code: 'Internal', message: 'Error: Error http status codes' } } [Nest] 18837 - 07/12/2024, 10:04:52 PM [ExceptionsHandler] Request failed with status code 500 +61665ms Error: Request failed with status code 500 at /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Afip.js:85:20 at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Axios.request (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/node_modules/axios/lib/core/Axios.js:40:14) at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/AfipWebService.js:125:18) at async ElectronicBilling.executeRequest (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:347:19) at async ElectronicBilling.getLastVoucher (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@afipsdk/afip.js/src/Class/ElectronicBilling.js:66:11) at async FacturaService.getDatosFacturaB (/Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/server/src/service/factura.service.ts:57:28) at async /Users/mostrojuy/Proyectos/Propios/Empresas/Afip Empresas/node_modules/@nestjs/core/router/router-execution-context.js:46:28 at async /Users/mostrojuy/Proyectos/P