https://www.activepieces.com logo
is there a way to get previous run data
# 🐶|general
b
is there a way to get previous run data as sample data for testing?
k
Hi @Bubble Man Pius which trigger you are using?
b
webhook
https://jmp.sh/JVaJXizn see i have previous runs, and when i test webhook no data comes in, even though i send the data to the webhook. Comes up as a run, but not for the test.
I have also tried just pasting the output of the run as sample data for the test, but it doesn't get the information that i need to pass for subsequent steps
k
Could you please unpublish the flow and then try testing the trigger by sending data to the webhook URL?
b
actually sorry for the trouble. I tried again pasting the data and once done it brought in the previous run data as tests.
k
Awesome! Also, could you let us know which Stripe webhook trigger you’re using (e.g., customer created, customer updated)? We’ll add test data directly in the Stripe piece so you won’t have to manually set up the webhook step.
b
charge failed.
well @Kishan Parmar the default stripe integration doesnt work-- this is why we went with the webhook. when i tried the stripe "piece" the error is that the API is old
Copy code
"{\n  \"message\": \"Failed to run test step, please ensure settings are correct.\",\n  \"error\": \"HttpError: {\\\"response\\\":{\\\"status\\\":400,\\\"body\\\":{\\\"error\\\":{\\\"message\\\":\\\"Search is not supported on api version 2019-02-19. Update your API version, or set the API Version of this request to 2020-08-27 or greater.\\\",\\\"request_log_url\\\":\\\"https://dashboard.stripe.com/acct_14E5kV4lUfz5CscJ/workbench/logs?object=req_uf4pC8fmTy8pDq\\\",\\\"type\\\":\\\"invalid_request_error\\\"}}},\\\"request\\\":{}}\\n    at AxiosHttpClient.<anonymous> (/usr/src/app/cache/v9/common/node_modules/.pnpm/@activepieces+pieces-common@0.11.6/node_modules/@activepieces/pieces-common/src/lib/http/axios/axios-http-client.js:69:39)\\n    at Generator.throw (<anonymous>)\\n    at rejected (/usr/src/app/cache/v9/common/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:167:69)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {\\n  requestBody: undefined,\\n  status: 400,\\n  responseBody: {\\n    error: {\\n      message: 'Search is not supported on api version 2019-02-19. Update your API version, or set the API Version of this request to 2020-08-27 or greater.',\\n      request_log_url: 'https://dashboard.stripe.com/acct_14E5kV4lUfz5CscJ/workbench/logs?object=req_uf4pC8fmTy8pDq',\\n      type: 'invalid_request_error'\\n    }\\n  }\\n}\"\n}"
we are on a self hosted instance. so IDK if there is a newer version of stripe in action pieces ( we are on v 0,6,5)
k
v0.6.5 is the latest version
this is for
search customers
action or trigger ?
b
yea, i just created a new trigger to get the error. but this error is present for any trigger
Copy code
"{\n  \"message\": \"Failed to run test step, please ensure settings are correct.\",\n  \"error\": \"HttpError: {\\\"response\\\":{\\\"status\\\":400,\\\"body\\\":{\\\"error\\\":{\\\"message\\\":\\\"Search is not supported on api version 2019-02-19. Update your API version, or set the API Version of this request to 2020-08-27 or greater.\\\",\\\"request_log_url\\\":\\\"https://dashboard.stripe.com/acct_14E5kV4lUfz5CscJ/workbench/logs?object=req_0uQA3SoKvFibE7\\\",\\\"type\\\":\\\"invalid_request_error\\\"}}},\\\"request\\\":{}}\\n    at AxiosHttpClient.<anonymous> (/usr/src/app/cache/v9/common/node_modules/.pnpm/@activepieces+pieces-common@0.11.6/node_modules/@activepieces/pieces-common/src/lib/http/axios/axios-http-client.js:69:39)\\n    at Generator.throw (<anonymous>)\\n    at rejected (/usr/src/app/cache/v9/common/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js:167:69)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {\\n  requestBody: undefined,\\n  status: 400,\\n  responseBody: {\\n    error: {\\n      message: 'Search is not supported on api version 2019-02-19. Update your API version, or set the API Version of this request to 2020-08-27 or greater.',\\n      request_log_url: 'https://dashboard.stripe.com/acct_14E5kV4lUfz5CscJ/workbench/logs?object=req_0uQA3SoKvFibE7',\\n      type: 'invalid_request_error'\\n    }\\n  }\\n}\"\n}"
payment failed, etc
k
Thanks for the update. We’ll update the piece to use the latest version. Apologies for the inconvenience.
@Bubble Man Pius The piece has been updated. Please upgrade it to version 0.6.6 and test the trigger and the “Search Customer” action.