Upload fails for Peertube2 #13

Closed
opened 2026-10-05 06:12:33 +02:00 by adam · 14 comments
Owner

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 !
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 ! ``` <!-- github-sync-id:548915203 -->
adam closed this issue 2026-10-05 06:12:33 +02:00
Author
Owner

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

Problem seems to be `pt_channel_category`, it works when i comment it out in line 176 <!-- github-comment-id:573673526 -->
Author
Owner

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.

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. <!-- github-comment-id:574826366 -->
Author
Owner

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.

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. <!-- github-comment-id:574827194 -->
Author
Owner

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.

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. <!-- github-comment-id:575848164 -->
Author
Owner

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

Had this error too, setting the category to a known good one worked. <!-- github-comment-id:586600425 -->
Author
Owner

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

@toogley can you give me some details? Did you set the category to a number, or to one that does not exist in Peertube? <!-- github-comment-id:586720157 -->
Author
Owner

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.

`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. <!-- github-comment-id:589994744 -->
Author
Owner

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

Alright I'll look into it and update the list. Thanks a lot for the feedback. <!-- github-comment-id:590652215 -->
Author
Owner
https://github.com/Chocobozzz/PeerTube/blob/develop/server/initializers/constants.ts#L325 There is the list with currently supported Categories. <!-- github-comment-id:628660962 -->
Author
Owner

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.

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. <!-- github-comment-id:712951671 -->
Author
Owner

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

Have you tried turning download off and using Peertube HTTP mirror directly? See if that works. <!-- github-comment-id:715578835 -->
Author
Owner

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

> 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 <!-- github-comment-id:715583964 -->
Author
Owner

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?

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? <!-- github-comment-id:790330043 -->
Author
Owner

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

I have created a PR #20 that should fix the problem. <!-- github-comment-id:791843026 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/YouTube2PeerTube#13