-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Describe the bug
Using any of the Twitch components results in the action failing due to an error with Axios. After further investigation of the error I believe it's due to a recent change to the axios package which is noted in this issue in the Axios repo: axios/axios#5142. This seems to require some changes to what's provided in the configuration object to the axios package - specifically the paramsSerializer
option. This option requires a new key called encode
.
AxiosError
options must be an object
DETAILS
at Object.assertOptions
Note: see attached screen shot for error shown in my workflow
To Reproduce
Steps to reproduce the behavior:
- Add any Twitch component to a workflow
- Fill in all necessary fields for the Twitch component you chose
- Test the action using the Twitch component
- See the error
Expected behavior
Twitch actions to execute requests and return a result
Desktop (please complete the following information):
- Browser: Brave
- Version: Happy to share this but version of what? My browser? If so it's 1.44.112
Additional context
Axios seems to have made an update that's a breaking change based on this issue in their repo:
I believe this function in the pipedream Twitch component code needs to be updated:
_getParamsSerializer() { |
This issue for the Axios docs covers what I believe needs to change: axios/axios-docs#90
Before:
paramsSerializer: function (params) {
return Qs.stringify(params, {arrayFormat: 'brackets'})
},
After:
paramsSerializer: {
encode: function(params) {
return Qs.stringify(params, {arrayFormat: 'brackets'})
}
},