collective / collective.embeddedpage

collective.embeddedpage allows to embed remote HTML pages in Plone.
0 stars 4 forks source link

error at creating embedded page #36

Closed animus888 closed 2 years ago

animus888 commented 3 years ago

Whenever I try to add a new embedded page I get following error at the end:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 371, in publish_module
  Module ZPublisher.WSGIPublisher, line 266, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 63, in call_object
  Module collective.embeddedpage.browser.embeddedpage, line 108, in __call__
  Module collective.embeddedpage.browser.embeddedpage, line 65, in process_page
  Module requests.api, line 76, in get
  Module requests.api, line 61, in request
  Module requests.sessions, line 542, in request
  Module requests.sessions, line 655, in send
  Module requests.adapters, line 516, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /index.html (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2c41e70d30>: Failed to establish a new connection: [Errno 111] Connection refused'))

Further information: I'm using Plone 5.2.4, latest collective.embeddedpage (=2.2.1), the html file in the url is very basic... Thanks!

animus888 commented 3 years ago

I got it all in a Docker container, maybe I cannot access the url inside the container and that's the problem... will check this

animus888 commented 3 years ago

it's not really an issue. When I use docker run --network host... for my Plone container, then everything works fine with adding an embedded page. Maybe you can add this to your README ;-)