Giter Club home page Giter Club logo

afip.py's Issues

Error al correr createCert - Validacion de alias

Muchas gracias por este paquete! 馃槃
Si te parece forkeo y armo PR

TL;DR
Agregar una validaci贸n en la clase para el input del alias cuando se corre el metodo createCert en Afip

En la documentacion online dice:

# Alias para el certificado (Nombre para reconocerlo en AFIP)
# un alias puede tener muchos certificados, si estas renovando
# un certificado podes utilizar el mismo alias
cert_alias = "afipsdk"

Estuve peleando bastante y termin茅 yendo a la web para generar el certificado y ah铆 me di cuenta de que en la consola de python estaba agregando un caracter especial para identificar el certificado. Mensaje que claramente no venia en la respuesta de la API {"status":"error","data":{"message":"Unable to get cert, try again"}}

image

El error que devuelve la API es
image

En producci贸n: Debe setear el sdk en modo testing

El problema que encontr茅 con la suscripci贸n paga.
Intentando utilizar la librer铆a en producci贸n con los certificados con sus alias respectivos y autorizaciones validadas en el website de Afip:
Exception: {"statusCode":400,"message":"Debe setear el sdk en modo testing. Agregue \"production: false\" al instanciar la libreria . ns1:cms.cert.untrusted"}

No puedo hacer las consultas en Afip ambiente productivo. solo testing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.