Why Does the "Use Any X API in Python" Step Lose Configuration When Updating Code?

This topic was automatically generated from Slack. You can find the original thread here.

I have been experiencing the following annoyance when working with “Use any X API in Python” step for certain APIs. The issue has occurred with HubSpot and GitHub, but may be occurring for more. I initially configure the step to be associated with a specific account for either service. I then write the code and test. If I then need to update the code, it loses the configuration and requires me to select the specific account again. It does this every time I subsequently edit the code block. The recording shows this happening. Obviously this isn’t the end of the world, but it is very annoying to deal with. I am on Mac and have used Safari and Chrome and gotten the same result in both browsers.

Screenshot 2023-01-16 at 12.07.07 PM.png

Same thing happens for me - Mac with chrome

Hi could you please share this as a bug report on our public issue tracker?

Then we can prioritize a fix

Strange. and @U04A4QR0284, does that only happen in Python steps? You have not encountered that with Node steps?

No its not just been python steps for me - when testing steps and then edit retest I have to select the account again - its frustrating but I assumed it was the same for everyone

I have only had it happen on python api steps, but I haven’t tested extensively with other types of steps yet

Noted, thanks for reporting. I hadn’t seen that, but that is definitely not ideal or intentional! We’ll post updates to that ticket you created: Use any X API with Python Configuration Bug · Issue #5204 · PipedreamHQ/pipedream · GitHub

FYI we just pushed a fix for this! Thank you both for reporting :pray::skin-tone-2: :tada:

Just tested out and seems to be fixed. Thanks!