Coder Social home page Coder Social logo

Comments (15)

blurHY avatar blurHY commented on July 26, 2024

Fixed in 5133200

from horizon.

blurHY avatar blurHY commented on July 26, 2024

And when i search for something, it does nothing.

Could you paste the console log here,not only TypeError: page.corszitesForQuery is undefined
It works in lastest firefox.
I can't reproduce the bug that you said

from horizon.

slrslr avatar slrslr commented on July 26, 2024

Maybe You have not yet applied changes on the site as the error is still there.

These are dev. console log lines when i load the page and try to do a search:

2018-09-12-133238_1024x768_scrot

from horizon.

blurHY avatar blurHY commented on July 26, 2024

@slrslr
You are not using the latest version

from horizon.

slrslr avatar slrslr commented on July 26, 2024

I clicked "Check files" and "update" and did Ctrl+F5 already before i sent the previous screenshot with errors.. So i did it again now, update ZeroNet, i see i am runing probably latest available: r3597
Then i do (Check files, Update, Ctrl+F5 on Horizon site), but errors still there.

TypeError: page.corszitesForQuery is now on line: 145:1 appears during page load

The second type error, (same like in screenshot) appears when i try to search and this time on line: 240:1

My Firefox is 62.0 32 bit on Ubuntu 16.04

from horizon.

blurHY avatar blurHY commented on July 26, 2024

I'm testing it in firefox with a blank zeronet

from horizon.

blurHY avatar blurHY commented on July 26, 2024

Uh,it works well on firefox and chrome.

from horizon.

slrslr avatar slrslr commented on July 26, 2024

I also tried in Chromium (not chrome, i am on Ubuntu Linux atm. should return to Windows next week):

horizon-chromium-errors

I seen 2 other user also reported problem with search (nothing happening when hitting enter), @blurHY are you sure you signed & published the changes? Did you tried to use Horizon on different computer/device?

from horizon.

blurHY avatar blurHY commented on July 26, 2024

Please directlt download from github.When i publish it,it says published to 1/1 peer.So it will be slow to receive the update,especially you are not in China,i guess.

from horizon.

blurHY avatar blurHY commented on July 26, 2024

I'm trying to publish to more peers,ok,3/3 peers published

from horizon.

slrslr avatar slrslr commented on July 26, 2024

On ZeroHello it shown updated "7 HOURS AGO", but even after "Check files" and "Update", the errors are same. So as you said, i tried to delete all files in site directory and copy data from github. But then still same errors on site. But then i do "Check files" and "Update" and tried to search, engine said "Collecting more infomation" (but stays there for 20 minutes already, no overal significant HDD, CPU activity) and this error appear on console:
TypeError: page.settings.corszites is undefined[Learn More] horizon.js:999:1
And below this error are details

getFollowedCors
http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/horizon.js:999:1
searchCORS/</</<
http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/horizon.js:230:6
onMessage
http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/js/ZeroFrame.js:38:17
connect/<
http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/js/ZeroFrame.js:29:49

After page refresh/reload (F5) it ask me to increase site limit above 26MB...

then i see no longer undefined TypeError, but:
"TypeError: page.corszites_list is not iterable[Learn More] horizon.js:998:1"

The ZeroNet log says: Site:1CjMsv..uxBn DbQuery error: no such table: search_zite
(every time i refresh F5 the site, Check files, Update not prevent the above DbQuery error to appear)

from horizon.

blurHY avatar blurHY commented on July 26, 2024

Oh,i know.That's a bug that just new user would found it.
So i should clear the cache of zeronet of that zite
Thanks for the report.

from horizon.

blurHY avatar blurHY commented on July 26, 2024

@slrslr It should be fixed now

from horizon.

slrslr avatar slrslr commented on July 26, 2024

I see Horizon site updated around the time of your post, so on page load in console is:
[Show/hide message details.] TypeError: page.corszites_list is not iterable[Learn More] horizon.js:1053:1

In log file i found these related entries in the time i loaded the site:
[11:54:40] Site:1CjMsv..uxBn DbQuery error: no such table: search_zite
[11:54:49] Site:1CjMsv..uxBn DbQuery error: no such table: phrases
[11:54:49] Site:1CjMsv..uxBn DbQuery error: no such table: phrases

The engine message "Collecting more infomation" is taking several minutes and shows no results, so i deleted the Horizon site and revisit it to download it a new.

It is loading quite long time on my old PC (meaning green progress bar on the top and high CPU utilization of the Zeronet's start.py process).

In the log i see:
12:00:43] - UiWSGIHandler error: error: [Errno 32] Broken pipe in UiServer.py line 40 > pywsgi.py line 871 > pywsgi.py line 866 > _socket2.py line 412 > _socket2.py line 351 > _socket2.py line 320

several times. It asked me read permissions to ZeroTalk etc. i seen several more UiWSGIHandler error.

But after like 5 minutes the green downloading bar on Horizon site completed (page was loaded) and i tried search, it took like 5 seconds (not showed any information that the search is in progress, which may be improved so user knows something is going on during waiting) and then showed results and console shows no error at all! :)

I closed the page and reopened it confirming to increase site storage limit

The developer console show this on page load:
[Wrapper] Setting title to Horizon - ZeroNet all.js:1699:14 [Show/hide message details.] **TypeError: page.corszitesForQuery is undefined[Learn More] horizon.js:145:1** f http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/horizon.js:145:1 initFollowedCORS http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/horizon.js:156:3 initCORS/</</< http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/horizon.js:135:6 onMessage http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/js/ZeroFrame.js:38:17 connect/< http://127.0.0.1:43110/1CjMsvhJ2JsV4B5qo3FDHnF3mvRCcHuxBn/js/ZeroFrame.js:29:49 [ZeroFrame] Unknown incoming message: undefined ZeroFrame.js:98:9 Use of Mutation Events is deprecated. Use MutationObserver instead. content.js:30:251 [Wrapper] Invalid message: Object { msg: "dh5a:send-msg-to-frames", msgToSend: {…} } all.js:1699:14 [Wrapper] Invalid message: Object { msg: "dh5a:input-recieved", event: "mousedown", value: true } all.js:1699:14 hideProgress all.js:609:7 [Wrapper] Invalid message: Object { msg: "dh5a:send-msg-to-frames", msgToSend: {…} } all.js:1699:14 [Wrapper] Invalid message: Object { msg: "dh5a:input-recieved", event: "mousedown", value: false } all.js:1699:14 hideProgress

Then when i try to search, there is another TypeError:
TypeError: page.corszitesForQuery is undefined[Learn More] horizon.js:240:1
and no results, no reaction on submitting search query.

It is strange that first time it worked, but after closing page and open again, it again not working.

Interesting is that on ZeroHello, Horizon site shows last updated 9 hours ago, while before site delete the update was much earlier. So i now tried to Check files and Update, but nothing updated, refreshed ZeroHello still shows last update of Horizon 9 hours ago. Maybe there is too low number of peers who have up to date site, i am passive peer myself (closed port). Trackers 13/15

btw. here is the zeronet log for the time of deleting and re-downloading site from peers to this moment.

from horizon.

blurHY avatar blurHY commented on July 26, 2024

These bug should be fixed i think,uh

  • page.corszites_list is not iterable[Learn More] horizon.js:1053:1
  • page.corszitesForQuery is undefined[Learn More] horizon.js:145:

In log file i found these related entries in the time i loaded the site:
[11:54:40] Site:1CjMsv..uxBn DbQuery error: no such table: search_zite
[11:54:49] Site:1CjMsv..uxBn DbQuery error: no such table: phrases
[11:54:49] Site:1CjMsv..uxBn DbQuery error: no such table: phrases

I think the file is not downloaded completely.So the table is missing.I uploaded the json files just now,then you can use the file on the github.

In the log i see:
12:00:43] - UiWSGIHandler error: error: [Errno 32] Broken pipe in UiServer.py line 40 > pywsgi.py line 871 > pywsgi.py line 866 > _socket2.py line 412 > _socket2.py line 351 > _socket2.py line 320

That should be a bug of zeronet,please report it.

several times. It asked me read permissions to ZeroTalk etc. i seen several more UiWSGIHandler error.

That's for cors search(search in zerotalk)

But after like 5 minutes the green downloading bar on Horizon site completed (page was loaded) and i tried search, it took like 5 seconds (not showed any information that the search is in progress, which may be improved so user knows something is going on during waiting) and then showed results and console shows no error at all! :)

Todo added

I closed the page and reopened it confirming to increase site storage limit

Yeah,it's 26MB

Interesting is that on ZeroHello, Horizon site shows last updated 9 hours ago, while before site delete the update was much earlier. So i now tried to Check files and Update, but nothing updated, refreshed ZeroHello still shows last update of Horizon 9 hours ago. Maybe there is too low number of peers who have up to date site, i am passive peer myself (closed port). Trackers 13/15

I'm a passive peer too,so would take a long time to receive the update

from horizon.

Related Issues (18)

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.