Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Downgrading to v2 #59

Closed
MistakingManx opened this issue Feb 10, 2022 · 5 comments
Closed

Downgrading to v2 #59

MistakingManx opened this issue Feb 10, 2022 · 5 comments

Comments

@MistakingManx
Copy link

I have to specify v2 when using this package, because it errors relentlessly with v3, I'm not quite sure why.

@ChunkyProgrammer
Copy link
Member

V3 changed the way that the methods are called. You now have to pass an object as a parameter.

Ex:

const payload = {
   channelId: 'UCXuqSBlHAE6Xw-yeJA0Tunw', // Required
   channelIdType: 0,
   httpsAgent: agent
}

ytch.getChannelInfo(payload).then((response) => {
   if (!response.alertMessage) {
      console.log(response)
   } else {
      console.log('Channel could not be found.')
      // throw response.alertMessage
   }
}).catch((err) => {
   console.log(err)
})

You can look at the updated README for changes to the other methods

@MistakingManx
Copy link
Author

Yeah I figured that out super quickly, but it errors regardless, it didn't even reference my files in the errors!

@ChunkyProgrammer
Copy link
Member

This PR might fix the issue you're having: #61

@efb4f5ff-1298-471a-8973-3d47447115dc

@MistakingManx did #61 fix it for u?

@efb4f5ff-1298-471a-8973-3d47447115dc

Closing because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

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

No branches or pull requests

3 participants