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

Event streaming issue ERPNext: v13.11.1 #14333

Open
dufani1 opened this issue Oct 1, 2021 · 5 comments
Open

Event streaming issue ERPNext: v13.11.1 #14333

dufani1 opened this issue Oct 1, 2021 · 5 comments

Comments

@dufani1
Copy link

dufani1 commented Oct 1, 2021

I can not save Event Producer on Consumer site and got the following error:

cosumer site

error from browser:
consoul error

:82/app/event-consumer:1 Chrome is blocking ads on this site because this site tends to show ads that interrupt, distract, mislead, or prevent user control. You should fix the issues as soon as possible and submit your site for another review. Learn more at https://www.chromestatus.com/feature/5738264052891648
desk.min.js?ver=1632999536.0:1 Using this console may allow attackers to impersonate you and steal your information. Do not enter or paste code that you do not understand.
jquery.min.js:3 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://134.209.227.227:82/assets/frappe/css/fonts/fontawesome/fontawesome-webfont.woff2?v=4.7.0
:82/api/method/frappe.desk.form.save.savedocs:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
desk.min.js?ver=1632999536.0:1 Traceback (most recent call last):
  File "/home/your-username/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _save
    self.run_post_save_methods()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1001, in run_post_save_methods
    self.run_method("on_update")
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 860, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1158, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1141, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 854, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 31, in on_update
    self.update_consumer_status()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 45, in update_consumer_status
    event_producer = frappe._dict(event_producer)
TypeError: 'NoneType' object is not iterable

desk.min.js?ver=1632999536.0:1 Traceback (most recent call last):
  File "/home/your-username/frappe-bench/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/__init__.py", line 1198, in call
    return fn(*args, **newargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _save
    self.run_post_save_methods()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1001, in run_post_save_methods
    self.run_method("on_update")
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 860, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1158, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1141, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 854, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 31, in on_update
    self.update_consumer_status()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 45, in update_consumer_status
    event_producer = frappe._dict(event_producer)
TypeError: 'NoneType' object is not iterable

DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for http://134.209.227.227:82/assets/js/socket.io.slim.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://134.209.227.227:82/assets/js/desk.min.js.map: Load canceled due to load timeout
DevTools failed to load source map: Could not load content for http://134.209.227.227:82/assets/js/list.min.js.map: Load canceled due to load timeout
DevTools failed to load source map: Could not load content for http://134.209.227.227:82/assets/js/control.min.js.map: Load canceled due to load timeout
jquery.min.js:4 POST http://134.209.227.227:82/api/method/frappe.desk.form.save.savedocs 500 (INTERNAL SERVER ERROR)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
frappe.request.call @ desk.min.js?ver=1632999536.0:1
frappe.call @ desk.min.js?ver=1632999536.0:1
d @ save.js:201
frappe.ui.form.save @ save.js:25
(anonymous) @ form.js:634
Promise.then (async)
(anonymous) @ desk.min.js?ver=1632999536.0:1
frappe.run_serially @ desk.min.js?ver=1632999536.0:1
validate_and_save @ form.js:625
(anonymous) @ form.js:569
save @ form.js:566
Save @ toolbar.js:499
(anonymous) @ desk.min.js?ver=1632999536.0:1
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
desk.min.js?ver=1632999536.0:1 Traceback (most recent call last):
  File "/home/your-username/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _save
    self.run_post_save_methods()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1001, in run_post_save_methods
    self.run_method("on_update")
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 860, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1158, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1141, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 854, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 31, in on_update
    self.update_consumer_status()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 45, in update_consumer_status
    event_producer = frappe._dict(event_producer)
TypeError: 'NoneType' object is not iterable

desk.min.js?ver=1632999536.0:1 Traceback (most recent call last):
  File "/home/your-username/frappe-bench/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/__init__.py", line 1198, in call
    return fn(*args, **newargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _save
    self.run_post_save_methods()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1001, in run_post_save_methods
    self.run_method("on_update")
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 860, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1158, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 1141, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/your-username/frappe-bench/apps/frappe/frappe/model/document.py", line 854, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 31, in on_update
    self.update_consumer_status()
  File "/home/your-username/frappe-bench/apps/frappe/frappe/event_streaming/doctype/event_consumer/event_consumer.py", line 45, in update_consumer_status
    event_producer = frappe._dict(event_producer)
TypeError: 'NoneType' object is not iterable
@Olawale1
Copy link

Hi ,

Encountering the same issue! Any solution yet ?

Kind regards,

@Olawale1
Copy link

Adding "host_name" to the site_config in the Event Producer site helped us get past this. Now we're encountering an issue with the document (Sales Invoice) syncing... something about the root account must be a group :(

@cosymarie123
Copy link

cosymarie123 commented Jun 16, 2022

I’m running into the same issue. I got the error "Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR) " and don't submit " :8000/api/method/frappe.desk.form.save.savedocs".
Help me please!!
Kind regards.

@kittiu
Copy link
Contributor

kittiu commented Dec 10, 2022

Facing the exact same issue on V14.

@RomartM
Copy link

RomartM commented Sep 11, 2023

Since no one answers this issue. I resolve mine by fully implementing https. Both sites must implement HTTPS. If not, the get_url() method will use HTTP method instead of HTTPS. This can lead to an empty response when retrieving the event producer from the child site, which was initially declared as an HTTPS URL. You may refer to this link for https implementation: https://frappeframework.com/docs/user/en/bench/guides/configuring-https. They should include this in their documentation for dev's clarity...

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

5 participants