Loss of formatting in code

Status: Open · Asked by testing_pabbly on · 0 views

testing_pabbly — Question ·

Everytime I open up one of my workflows that contains Pabbly Code (Python) it looses the indentations required and you have to re-insert code from a code editor and then you have to re-enter all of the variables. Is there a fix to this?

Arshil Ahmad — Reply ·

Hi @testing_pabbly,

Could you please make a short screen recording showing the issue you are referring to?

martexx — Reply ·

I have exactly the same, the editor removes the indents after saving, so when u reopen and test it wont work.
blabla
if this is true
then this works
else
thiswouldwork

becomes
blabla
if this is true
then this works
else
thiswouldwork

and that doesnt get accepted. I am on chrome

Arshil Ahmad — Reply ·
I have exactly the same, the editor removes the indents after saving, so when u reopen and test it wont work.
blabla
if this is true
then this works
else
thiswouldwork

becomes
blabla
if this is true
then this works
else
thiswouldwork

and that doesnt get accepted. I am on chrome


Could you please create a short screen recording to demonstrate this issue? Also, share the Workflow URL where you have this concern.
Arshil Ahmad — Reply ·
https://connect.pabbly.com/workflow/mapping/IjU3NjYwNTZmMDYzMDA0MzQ1MjZhNTUzMTUxMzci_pc
please note that its about step 8 for python and step 9 for api

step 8:
https://www.awesomescreenshot.com/video/35187954?key=f2399cc1cca9b3abbbacaf99380d1392


Please allow me some time to discuss this issue with my team. We will get back to you with an update soon.

step 9 the error is now different, dont know why
https://www.awesomescreenshot.com/video/35187996?key=4714cae4feb3a392d23942a18296a085

Could you please share the API documentation and cURL command of the endpoint you are attempting to execute?
martexx — Reply ·

curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'apiKey: xxxxx' -F EntityID=f8133f32-fcef-4085-94fa-2185c0c02dd8 'https://private.ms:31527/ExternalApi/api/CrewingDocumentsContent/UploadFile'

I am struggling for a long time to get it to work.
I would like to download a file from my server v ia a dynamic url, but pabbly for some reason can not download it.
So i tgired via upload to google drive first, and dropbox, that worked sometimes.
So now i sent it via email to pabbly, its way more stable, after i have the file url i need to upload it via this api, but via api module i cant get it to work, probably my lack of understanding, so a buddy wrote the pythin for me that worked, but not always, and the ident formatting issue makes it less usable.

But i am new here, so probably my bad :)

Arshil Ahmad — Reply ·
Please allow me some time to discuss this issue with my team. We will get back to you with an update soon.

I had a discussion with the technical team, and they informed me that the indents might break during setup but will work correctly during automation. Currently, it is not possible to maintain the indents during workflow setup, so you will need to add them again while editing the code.

curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'apiKey: xxxxx' -F EntityID=f8133f32-fcef-4085-94fa-2185c0c02dd8 'https://private.ms:31527/ExternalApi/api/CrewingDocumentsContent/UploadFile'

Thank you for sharing the cURL command. However, it seems to be incomplete and does not indicate where the file URL should be placed. Please try executing this endpoint in Postman. If you successfully execute the endpoint in Postman, copy the cURL from there and share it in this thread. We will then set up the endpoint on your behalf.

If you encounter any issues in Postman, please contact the support team of the application whose endpoint you are trying to execute. Ask them to demonstrate how to set it up in Postman. Once you have successfully executed it in Postman, share the cURL with us, and we will set up the endpoint for you in Pabbly Connect.

Back to all forum threads · Log in to reply