Skip to content

Getting Error making payment to Supplier #15

@rahmed-dev

Description

@rahmed-dev
Image

Traceback:

desk.bundle.V5U6DPDS.js:sourcemap:288 localStorage cleared
desk.bundle.V5U6DPDS.js:sourcemap:288 Cleared App Cache.
desk.bundle.V5U6DPDS.js:sourcemap:288 localStorage cleared
desk.bundle.V5U6DPDS.js:sourcemap:1526 Using this console may allow attackers to impersonate you and steal your information. Do not enter or paste code that you do not understand.
desk.bundle.V5U6DPDS.js:sourcemap:471 throttled
/socket.io/?EIO=4&transport=polling&t=PiiPeq9:1  Failed to load resource: net::ERR_INTERNET_DISCONNECTED
desk.bundle.V5U6DPDS.js:sourcemap:471 Error connecting to socket.io: xhr poll error
(anonymous) @ desk.bundle.V5U6DPDS.js:sourcemap:471
/socket.io/?EIO=4&transport=polling&t=PiiPfRV:1  Failed to load resource: net::ERR_INTERNET_DISCONNECTED
desk.bundle.V5U6DPDS.js:sourcemap:471 Error connecting to socket.io: xhr poll error
(anonymous) @ desk.bundle.V5U6DPDS.js:sourcemap:471
/socket.io/?EIO=4&transport=polling&t=Piivikb:1  Failed to load resource: net::ERR_INTERNET_DISCONNECTED
desk.bundle.V5U6DPDS.js:sourcemap:471 Error connecting to socket.io: xhr poll error
(anonymous) @ desk.bundle.V5U6DPDS.js:sourcemap:471
ACC-PAY-2025-00001:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
ACC-PAY-2025-00001:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
/api/method/frappe.desk.form.save.savedocs:1  Failed to load resource: the server responded with a status of 500 ()
desk.bundle.V5U6DPDS.js:sourcemap:467 Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 120, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 52, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 40, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 52, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1754, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 32, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/desk/form/save.py", line 37, in savedocs
    doc.submit()
  File "apps/frappe/frappe/utils/typing_validations.py", line 32, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1097, in submit
    return self._submit()
           ^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1080, in _submit
    return self.save()
           ^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 378, in save
    return self._save(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 414, in _save
    self.run_before_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1144, in run_before_save_methods
    self.run_method("before_submit")
  File "apps/frappe/frappe/model/document.py", line 1011, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1371, in composer
    return composed(self, method, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1355, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/mexico_einvoice/mexico_einvoice/utils.py", line 180, in update_payment
    customer = get_customer_from_payment(doc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/mexico_einvoice/mexico_einvoice/utils.py", line 153, in get_customer_from_payment
    customer_name, tax_id, tax_system = frappe.db.get_value('Customer', doc.party, ['customer_name', 'tax_id', 'tax_system'])
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object

(anonymous) @ desk.bundle.V5U6DPDS.js:sourcemap:467

Setup:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions