sarriaroman / AFIP-API

Afip API hecha simple y rápida de consumir. Este API permite consumir los webservices de Factura Electrónica de AFIP.
183 stars 68 forks source link

No encuentra "afip.pem" #19

Open juansecalvinio opened 4 years ago

juansecalvinio commented 4 years ago

Hola, buenas noches! Estoy probando el proyecto, y luego de generar el certificado, cuando quiero correro en homo me indica lo siguiente:

`➜ afip-api git:(master) ✗ HOMO=true node server.js

(node:62951) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/juansecalvinio/Documents/programacion/antecedentes/afip-api/keys/afip.pem' at Object.openSync (fs.js:439:3) at Object.readFileSync (fs.js:344:35) at new Tokens (/Users/juansecalvinio/Documents/programacion/antecedentes/afip-api/helpers/wsaa.js:14:23) at Object. (/Users/juansecalvinio/Documents/programacion/antecedentes/afip-api/helpers/wsaa.js:180:18) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object. (/Users/juansecalvinio/Documents/programacion/antecedentes/afip-api/routes/api/endpoints.js:2:9) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) (node:62951) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:62951) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

Saben qué puede ser? O tal vez me falta alguna acción previa?

Saludos!

pimgux commented 3 years ago

Hola tenes que generar el certificado y guardarlo en /Users/juansecalvinio/Documents/programacion/antecedentes/afip-api/keys/ Saludos