Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No encuentra "afip.pem" #19

Open
juansecalvinio opened this issue Sep 2, 2020 · 1 comment
Open

No encuentra "afip.pem" #19

juansecalvinio opened this issue Sep 2, 2020 · 1 comment

Comments

@juansecalvinio
Copy link

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
Copy link

pimgux commented Sep 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants