Skip to content
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

failed with status 400 #5

Closed
Veraellyunjie opened this issue Mar 9, 2024 · 2 comments
Closed

failed with status 400 #5

Veraellyunjie opened this issue Mar 9, 2024 · 2 comments

Comments

@Veraellyunjie
Copy link

> utube
✔ - Check internet connection..

----------------  uTube  ----------------

# Stand With Palestine 

⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣟⠛⠛⠛⠛⠛⠛⠛⠛⠛
⣿⣿⣿⣿⡷⠀⠀⠀⠀⠀⠀⠀⠀
⣿⣿⣿⣯⣤⣤⣤⣤⣤⣤⣤⣤⣤
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿


? Enter (video/playlist) url: https://www.youtube.com/watch?v=lyekSI_4Qlc

  - Youtube video found ✅
  - getting video data..

✖ - Get video data..
  - Internet Connection Error!Error: Request to https://www.youtube.com/youtubei/vtrue/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false&alt=json failed with status 400
@omer73364
Copy link
Owner

Hello Veraellyunjie,
This issue was solved in new update
You can update it by running npm install -g utube-cli@latest

Thanks for notifying me :)

@Veraellyunjie
Copy link
Author

updated, now I get:

> utube
✔ - Check internet connection..

----------------  uTube  ----------------

# Stand With Palestine 

⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣟⠛⠛⠛⠛⠛⠛⠛⠛⠛
⣿⣿⣿⣿⡷⠀⠀⠀⠀⠀⠀⠀⠀
⣿⣿⣿⣯⣤⣤⣤⣤⣤⣤⣤⣤⣤
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿


? Enter (video/playlist) url: https://www.youtube.com/watch?v=lyekSI_4Qlc

  - Youtube video found ✅
  - getting video data..

⠦ - Get video data..[YOUTUBEJS][Parser]: InnertubeError: ClientSideToggleMenuItem not found!
This is a bug, want to help us fix it? Follow the instructions at https://github.com/LuanRT/YouTube.js/blob/main/docs/updating-the-parser.md or report it at https://github.com/LuanRT/YouTube.js/issues!
Introspected and JIT generated this class in the meantime:
class ClientSideToggleMenuItem extends YTNode {
  static type = 'ClientSideToggleMenuItem';

  default_text: Text;
  default_icon: {
    icon_type: string
  };
  toggled_text: Text;
  toggled_icon: {
    icon_type: string
  };
  menu_item_identifier: string;
  command: {
    click_tracking_params: string,
    toggle_live_chat_timestamps_endpoint: NavigationEndpoint
  };

  constructor(data: RawNode) {
    super();
    this.default_text = new Text(data.defaultText);
    this.default_icon = {
      icon_type: data.defaultIcon.iconType
    };
    this.toggled_text = new Text(data.toggledText);
    this.toggled_icon = {
      icon_type: data.toggledIcon.iconType
    };
    this.menu_item_identifier = data.menuItemIdentifier;
    this.command = {
      click_tracking_params: data.command.clickTrackingParams,
      toggle_live_chat_timestamps_endpoint: new NavigationEndpoint(data.command.toggleLiveChatTimestampsEndpoint)
    };
  }
}

    at ERROR_HANDLER (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/parser.js:66:27)
    at createRuntimeClass (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/generator.js:322:5)
    at generateRuntimeClass (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/generator.js:374:21)
    at parseItem (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/parser.js:361:17)
    at Module.parseArray (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/parser.js:404:28)
    at new Menu (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/classes/menus/Menu.js:6:29)
    at Module.parseItem (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/parser.js:384:28)
    at new LiveChatHeader (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/classes/LiveChatHeader.js:9:37)
    at Module.parseItem (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/parser.js:384:28)
    at new LiveChat (file:///usr/local/lib/node_modules/utube-cli/node_modules/youtubei.js/dist/src/parser/classes/LiveChat.js:8:30) {
  date: 2024-03-12T14:17:59.241Z,
  version: '9.1.0'
}
✔ - Get video data..
  --------------------  
  - title: THE SOUND OF SILENCE | Bass Singer Cover | Geoff Castellucci
  --------------------  

? - Choose quality: 
❯ 360p

The previous error is gone and the vid does download, but:

  1. new errors
  2. only 360p quality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants