scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.22k stars 1.41k forks source link

Network issue while browsing webpage #844

Open swathimithran opened 6 years ago

swathimithran commented 6 years ago

Hi Team,

Thanks for the project, We have installed it in our system using docker on Ubuntu 16.04. we are able to access the portia dashboard and create the project too. But we try to browse the website we get network error #3

[01/Feb/2018 12:02:23] "GET /api/projects HTTP/1.0" 200 62 [01/Feb/2018 12:02:23] "GET /server_capabilities HTTP/1.0" 200 207 [01/Feb/2018 12:02:28] "POST /api/projects HTTP/1.0" 201 561 process 16: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory See the manual page for dbus-uuidgen to correct this issue. 2018-02-01 12:03:58.679137 [render] [140454449639504] loadFinished: RenderErrorInfo(type='Network', code=3, text=u'Host www.abc.com not found', url=u'http://www.abc.com/') 2018-02-01 12:03:58.687303 [-] {'js_error_type': u'Error', 'js_error': u"Error: Event target doesn't exist.", 'type': 'JS_ERROR', 'message': 'JS error: u"Error: Event target doesn\'t exist."', 'js_error_message': u"Event target doesn't exist."}

Failed loading page (Host www.abc.com not found) http://www.abc.com/ Network error #3

Please let us know how to rectify the issue

rajat-np commented 6 years ago

This issue is probably related to x-org session. try running - dbus-uuidgen > /var/lib/dbus/machine-id

If you have not installed dbus-uuidgen , install it using apt.

fabiozappo commented 5 years ago

I have the same error, always using docker on Ubuntu 16.04. Trying to open a page i get the following error:

(2019-02-15 20:31:05.086471 [-] {'message': 'JS error: "Error: Event target doesn\'t exist."', 'js_error_message': "Event target doesn't exist.", 'js_error': "Error: Event target doesn't exist.", 'type': 'JS_ERROR', 'js_error_type': 'Error'})

divakarsivashankar commented 3 years ago

I am facing the same issue. Is there a fix for it?