New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error only .torrent files #19
Comments
Could you send me some of those .torrent files that don't work? I would like to try them for myself and see what's going wrong :) |
I have to think something on my setup is wrong or causing the issue. I actually tried to add the debian torrent. |
I could upload the debian torrent just fine to my demo Torrust: https://torrust.dutchbits.nl/torrent/2/Debian.ISO . I think it has something to do with your NGINX client_max_body_size setting being too low: https://docs.rackspace.com/support/how-to/limit-file-upload-size-in-nginx/#:~:text=By%20default%2C%20NGINX®%20has,location%20block%20to%20edit%20client_max_body_size. |
So I ditched everything last night and did a default install on my test box. |
I'm sorry for the issues you're running into. I will investigate this right now and let you know what I find. |
So the error "only .torrent files can be uploaded." gets thrown when the torrent field in the upload POST request does not have the type "application/x-bittorrent". Are you uploading the torrent through the Torrust Index upload form? |
@Pupwiz what browser are you using?
|
Tried both browser types - Edge / Chrome . Noticed Nginx didn't have mime type for .torrent and added it to the mime types nignx default server {
} Access logs to nginx show that GET request are 200 and all post are 400. Also tried these recommends [cannot-post-to-api-location-using-nginx]https://stackoverflow.com/questions/63893651/cannot-post-to-api-location-using-nginx] |
Have you tried cutting out Nginx and uploading directly via the API?
If that works we'll know the issue lays with Nginx. |
So I didn't try it until you suggested it. Found my bearer token in the browser console and added it manually. It has no problem taking it by issuing the above. |
My nginx server configs upstream netdata { server {
location = /netdata {
}
} include /etc/nginx/apps/*; |
Yes? events { http {
} |
This doesn't require nginx upload progress module does it? |
No, I'm just using a default NGINX setup. I honestly have no idea why it isn't working for you. |
So today I discovered by doing some testing that Asus router is blocking the upload function so there is nothing wrong with the scripts. I'll start a new thread for this issue. |
I'm not sure what I may be missing.
Everything seem to be working and all categories etc. show up.
Account created access seem to work. Doing a test with the debian net ISO and or any other torrent and I get " only
.torrent files can be uploaded" even though they are .torrent files.
The text was updated successfully, but these errors were encountered: