YouTube2PeerTube icon indicating copy to clipboard operation
YouTube2PeerTube copied to clipboard

Upload fails for Peertube2

Open georgkrause opened this issue 5 years ago • 14 comments

I tested this script on a peertube2 instance, but the upload always fails

uploading T8aNDavyGho to Peertube...
you have no tags in your configuration file for this channel
<Response [400]>
error !

georgkrause avatar Jan 13 '20 13:01 georgkrause

Problem seems to be pt_channel_category, it works when i comment it out in line 176

georgkrause avatar Jan 13 '20 13:01 georgkrause

Thank you, i will look into this. @georgkrause can you give me some more information? Is this issue specific to a particular instance? what is the version number of the instance where this happens? is the configuration file different between two channels/instances you are using? Specifically the tags and categories? Thanks.

mister-monster avatar Jan 15 '20 19:01 mister-monster

Actually I just tried on one instance: https://tube.netzspielplatz.de Sadly I do not have access to any log files on this server. I could try to test on another server tomorrow. I currently use this script with this line commented out, which works quite well.

georgkrause avatar Jan 15 '20 19:01 georgkrause

Alright I'll leave thisbooen though, feel free to update me if you figure anything else out and I will try to get to the bottom of it when I get a chance.

mister-monster avatar Jan 18 '20 00:01 mister-monster

Had this error too, setting the category to a known good one worked.

ghost avatar Feb 15 '20 15:02 ghost

@toogley can you give me some details? Did you set the category to a number, or to one that does not exist in Peertube?

mister-monster avatar Feb 16 '20 15:02 mister-monster

animals for instance worked. initially, i wanted to upload to news & politics, but that failed, as far as i remember. -> i think the list is outdated.

ghost avatar Feb 22 '20 20:02 ghost

Alright I'll look into it and update the list. Thanks a lot for the feedback.

mister-monster avatar Feb 25 '20 02:02 mister-monster

https://github.com/Chocobozzz/PeerTube/blob/develop/server/initializers/constants.ts#L325

There is the list with currently supported Categories.

georgkrause avatar May 14 '20 14:05 georgkrause

I'm currently getting an error 400 every time it goes to upload a video, but not sure if it's this issue. I've got my categories set to ones from the official peertube list. It doesn't provide any other output other than error 400.

Casuallynoted avatar Oct 20 '20 15:10 Casuallynoted

Have you tried turning download off and using Peertube HTTP mirror directly? See if that works.

mister-monster avatar Oct 23 '20 20:10 mister-monster

Have you tried turning download off and using Peertube HTTP mirror directly? See if that works.

What’s weird is when I do that manually on my instance itself, it works. But when I enable the option on YouTube2PeerTube it still gives error 400

Casuallynoted avatar Oct 23 '20 20:10 Casuallynoted

I have the same problem. I get a <Response [400]> when I try to import videos to my Peertube instances with the following setting use_pt_http_import = "false". For info I have my Peertube instance set up with Docker.

If I use the obtion use_pt_http_import = "true" the import works but the research image is unfortunately not the right dimensions.

I also tried to set the correct pt_channel_category but it doesn't work.

Is there a solution for this problem?

ichbinder avatar Mar 04 '21 06:03 ichbinder

I have created a PR #20 that should fix the problem.

ichbinder avatar Mar 06 '21 02:03 ichbinder