Code Monkey home page Code Monkey logo

Comments (1)

gusarg81 avatar gusarg81 commented on July 30, 2024

Hugo,

Hoy al subir un nuevo .crt (en la creación de un nuevo TaxPayer), me sale el error:

module 'lib' has no attribute 'PKCS7_sign'

¿Tiene que ver con esto no?

¿Hay algún paso extra que puedo/debo hacer para solucionarlo?

Django_afip: v7.1.2

EDIT: hice un downgrade de cryptography (a la 3.0) pero ahora tengo el siguiente error:

Traceback (most recent call last):
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/venv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 179, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/ebiller/apps/management/views_settings.py", line 119, in settings_taxpayer_admin
    taxpayer.fetch_points_of_sales()
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/venv/lib/python3.6/site-packages/django_afip/models.py", line 408, in fetch_points_of_sales
    ticket = ticket or self.get_or_create_ticket('wsfe')
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/venv/lib/python3.6/site-packages/django_afip/models.py", line 397, in get_or_create_ticket
    return self.get_ticket(service) or self.create_ticket(service)
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/venv/lib/python3.6/site-packages/django_afip/models.py", line 378, in create_ticket
    ticket.authorize()
  File "/var/www/virtual/gdnet.ar/ebiller/htdocs/eBiller/venv/lib/python3.6/site-packages/django_afip/models.py", line 698, in authorize
    raise exceptions.AuthenticationError(str(e)) from e
django_afip.exceptions.AuthenticationError: No se puede decodificar el BASE64

EDIT2: volví a generar el certificado y ahora funciona... raro. Quizás sin querer mezclé el certificado de testing con el de producción.

from django-afip.

Related Issues (20)

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.