-
Notifications
You must be signed in to change notification settings - Fork 40
infinite loop when api is saved as blank #70
Comments
I also get an infinite loop, the user searches for a file “Torrent” the Db does not find it, and it goes to an infinite loop of 500 the Api is your torrent list, but to be sure I wonder on a live site if it is necessary as well?? This can only be answered by the Programmer, who in my eyes has done a fantastic job! To give you an idea how I am running it, I have one server with both bitcannon and mongodb running, they are running in local host, so that the server can send it out as a hidden service thru Tor , the second server, I just run bitcannon, and in the config file I point it to the mongodb on server 1 , I then setup firewall rules so that only the two servers can see each other. In the 0.1.0 version I had no infinite loops, but now with 0.1.1 I do, so I am just as lost, I think it has to be a loop in the search parameters.. Regards Andrew From: marafa [mailto:[email protected]] to reproduce [martini] Started GET /search/as/s/0 for 192.168.0.99:36818 (what is the api url anyways? do we need it? can we get rid of it?) version 0.11.1 release 25/2/2015 — |
Whoops, not sure why this is happening but I will fix this asap! Unfortunately, I don't have much time today, but I'll get to it as soon as I can. |
Great, and thanks for putting the time in, it is not easy working/school and programing! Lol when do you have time to do anything else?!? Regards Andrew From: Stephen Smith [mailto:[email protected]] Whoops, not sure why this is happening but I will fix this asap! Unfortunately, I don't have much time today, but I'll get to it as soon as I can. — |
The api url is the address to the bitcannon binary (ip/host:port). It defaults to blank which means the same host and port that the webapp is served from - if you are using the built in webserver in the BitCannon binary, blank is the correct value. Are you sure you updated the bitcannon binary? In between v0.1.0 and v0.1.1, I changed the api path from /search/:query/p/:page to /search/:query/s/:skip. The only reason I think it would be returning 404 is if the api doesn't know about the new path. This does uncover another error - the web ui should stop requesting more results if the api has an error. Instead of restarting the server, you should be able to close the browser window to stop the infinite loop. Also, I don't think this should choke up the server, as it should be able to handle lots of requests. Does it choke up your bitcannon when it's doing this? Also, do you happen to be using the webapp zip in another web server or the one built into bitcannon? Using the webapp zip is the only way I think the api could have gotten out of sync with the web app. At least in the windows one I can see that the api doesn't 404 and the webapp is making the right requests. I will fix the other error. Try redownloading the bitcannon binary and see if it still gives 404 on /search/:query/s/:skip P.S. Andrew, I am looking at your bitcannon and I don't seem to be able to reproduce the issue. I searched for "as" in all and it returns 0 results and makes no extra requests. The server returns 200 OK. |
Same issue here, first time trying out Bitcannon, Clicked the Settings button to see what was offered and then clicked saved. Now when I search for anything this is what happens: Clicking Reset to default didn't help. Versions: |
I'm unfortunately unable to reproduce this issue still, but I've attempted a fix of what I think might be causing the problem. The last build I made is located here, please try it out and let me know if it helps! ftp://ftp.bitcannon.co.uk/git/ |
Good news, what ever fix you did seems to work. Tried a handful of different searches, all worked and no more of that odd infinite loop issue for now. Imported some large databases such as Kickass, Bitsnoop and the ISOHunt Openbay and searches working just fine. Though I have this odd issue, how can I get rid of it? (Will open new Issue if needed) |
Hmm, that looks like something unexpected was imported - do you know what sources you used when importing to bitcannon? |
to reproduce
go to settings click save
view logs
[martini] Started GET /search/as/s/0 for 192.168.0.99:36818
[martini] Completed 404 Not Found in 378.127µs
[martini] Started GET /search/as/s/0 for 192.168.0.99:36818
[martini] Completed 404 Not Found in 362.413µs
[martini] Started GET /search/as/s/0 for 192.168.0.99:36818
(what is the api url anyways? do we need it? can we get rid of it?)
version 0.11.1 release 25/2/2015
The text was updated successfully, but these errors were encountered: