Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 8th August 2013, 09:07
kubits's Avatar
kubits kubits is offline
Member
 
Join Date: Jul 2013
P2P
Posts: 6
Default 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)); 
Reply With Quote
Reply

Tags
add , content , failed , retrieved , torrent , valid

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 10:07. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.