Skip to content

[BUG] Axios Error - Twitch Component Won't Execute Due to Error #4565 #4576

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

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/twitch/actions/block-user/block-user.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Block User",
key: "twitch-block-user",
description: "Blocks a user; that is, adds a specified target user to your blocks list",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Check Channel Subscription",
key: "twitch-check-channel-subscription",
description: "Checks if you are subscribed to the specified user's channel",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/delete-video/delete-video.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Delete Video",
key: "twitch-delete-video",
description: "Deletes a specified video",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Channel Editors",
key: "twitch-get-channel-editors",
description: "Gets a list of users who are editors for your channel",
version: "0.0.2",
version: "0.0.3",
type: "action",
async run() {
// get the userID of the authenticated user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Channel Information",
key: "twitch-get-channel-information",
description: "Retrieves information about a particular broadcaster's channel",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Channel Teams",
key: "twitch-get-channel-teams",
description: "Gets a list of teams to which a specified channel belongs",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/get-clips/get-clips.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Clips",
key: "twitch-get-clips",
description: "Gets clip information by clip ID, user ID, or game ID",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Followed Channels",
key: "twitch-get-followed-channels",
description: "Retrieves a list of channels that the authenticated user follows",
version: "0.0.2",
version: "0.0.3",
type: "action",
async run() {
// get the userID of the authenticated user
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/get-followers/get-followers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Followers",
key: "twitch-get-followers",
description: "Retrieves a list of users who follow the specified user",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get My Followers",
key: "twitch-get-my-followers",
description: "Retrieves a list of users who follow the authenticated user",
version: "0.0.2",
version: "0.0.3",
type: "action",
async run() {
// get the userID of the authenticated user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Stream By User",
key: "twitch-get-stream-by-user",
description: "Gets stream information (the stream object) for a specified user",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/get-top-games/get-top-games.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Top Games",
key: "twitch-get-top-games",
description: "Gets games sorted by number of current viewers on Twitch, most popular first",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/get-users/get-users.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Users",
key: "twitch-get-users",
description: "Gets the user objects for the specified Twitch login names",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/get-videos/get-videos.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Videos",
key: "twitch-get-videos",
description: "Gets video information by video ID, user ID, or game ID",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
description: `Returns a list of channels (users who have streamed within the past 6 months)
that match the query via channel name or description either entirely or partially. Results
include both live and offline channels.`,
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/search-games/search-games.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
description: `Searches for games based on a specified query parameter. A game is
returned if the query parameter is matched entirely or partially in the channel
description or game name`,
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/actions/unblock-user/unblock-user.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Unblock User",
key: "twitch-unblock-user",
description: "Unblocks a user; that is, deletes a specified target user to your blocks list",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "twitch-update-channel",
description: `Update information for the channel owned by the authenticated user.
At least one parameter must be provided.`,
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/twitch",
"version": "0.0.2",
"version": "0.0.3",
"description": "Pipedream Twitch Components",
"main": "twitch.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Followed Streams",
key: "twitch-followed-streams",
description: "Emit new event when a followed stream is live.",
version: "0.0.4",
version: "0.0.5",
type: "source",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New Clip By Streamer",
key: "twitch-new-clip-by-streamer",
description: "Emit new event when there is a new clip for the specified streamer.",
version: "0.0.1",
version: "0.0.2",
type: "source",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/sources/new-clips/new-clips.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New Clips",
key: "twitch-new-clips",
description: "Emit new event when there is a new clip for the specified game.",
version: "0.0.2",
version: "0.0.3",
type: "source",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/sources/new-follower/new-follower.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "twitch-new-follower",
description: "Emit new event when a new user follows your channel.",
type: "source",
version: "0.0.4",
version: "0.0.5",
methods: {
...common.methods,
async getTopics() {
Expand Down
2 changes: 1 addition & 1 deletion components/twitch/sources/new-videos/new-videos.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New Videos",
key: "twitch-new-videos",
description: "Emit new event when there is a new video from channels you follow.",
version: "0.0.2",
version: "0.0.3",
type: "source",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New Streams By Game",
key: "twitch-streams-by-game",
description: "Emit new event when a live stream starts from any stream matching the game and language specified.",
version: "0.0.2",
version: "0.0.3",
type: "source",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Streams By Streamer",
key: "twitch-streams-by-streamer",
description: "Emit new event when a live stream starts from the streamers you specify.",
version: "0.0.4",
version: "0.0.5",
type: "source",
props: {
...common.props,
Expand Down
6 changes: 4 additions & 2 deletions components/twitch/twitch.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
_getParamsSerializer() {
return (p) =>
qs.stringify(p, {
arrayFormat: "repeat",
arrayFormat: "brackets",
});
},
async _makeRequest(method, endpoint, params = {}) {
Expand All @@ -62,7 +62,9 @@ export default {
url: `${this._getBaseUrl()}/${endpoint}`,
headers: this._getHeaders(),
params,
paramsSerializer: this._getParamsSerializer(params),
paramsSerializer: {
serializer: this._getParamsSerializer(params),
},
};
return await axios(config);
},
Expand Down