Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Failed to add torrent. The retrieved content is not a valid... (http://www.bvlist.com/showthread.php?t=9389)

kubits 8th August 2013 09:07

Failed to add torrent. The retrieved content is not a valid...
 
Error in ruTorrent was:

Failed to add torrent. The retrieved content is not a valid torrent file.

It seems (I'm cleaning up the code from a TBDev) that I introduced an error as part of the code clean-up.

I thought I should detail it here as it seems to be the last repository for TBDev knowledge.

Upon examining the file with GHex (a hex editor on Ubuntu), the start of the file was (first line is binary, second is the representative text):
0A 64 38 3A 61 6E 6F 75 6E 63 65 37 34 3A 68 74 74 70 3A 2F 2F
. d 8 : a n n o u n c e 7 4 : h t t p : / /


The 0A (or '.') at the start shouldn't be there. The solution was to flush and clean before printing:

PHP Code:


ob_clean
();
flush();
print(
benc($dict)); 



All times are GMT +2. The time now is 14:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.