Support Topics Documentation Slack YouTube Blog

v4 Codeless: Try / Catch block produces broken code


(Renato N) #1

Hi Vlad! - I’m going to assume you’re the one assigned for codeless stuff :wink:

I think the try/catch block is broken, since it is producing weird code output like we’ve run into before …

    I created a try/catch block where I want to login a user, then log the same user out in the "finally" chunk. When I use the "Logout current user" block in the finally, it "sticks" for the time being When I deploy, it gets jumbled when I open the designer again (and other code also disappears) Upon closer look at the code, it seems like the "finally" block isn't even created in the code. If I add a simple print statement to the finally chunk, it gets created in code (and uses the logout call), but there is that weird parse error with the "99":
http://support.backendless.com/public/attachments/e8aa0d3a79e8c013ac67f1bdf1f03bdc.png</img>

Renato


(Renato N) #2

Extra context:

Appears to be fine when the block is dropped on the canvas window:

http://support.backendless.com/public/attachments/22d36264e0af069b2916d4e2333f4f7b.png</img>

But, when it is moved BELOW the print out, it’s broken:
http://support.backendless.com/public/attachments/a78ed15b70836eff337901b254c25f6a.png</img>

and if it’s put before, the code isn’t even replicated to where it should be:
http://support.backendless.com/public/attachments/82590362a11577b8265fc3213ad4916c.png</img>


(Anton Govorushkin) #3

Hi Renato

Thanks for reporting! I’ll definitely forward it to Vlad :wink: We’ll notify you here when it will be fixed

Best Regards


(Vladimir Upirov) #4

Hi Renato

Yeah, thanks for your report.
“Logout current user” is one of the first blocks and some logic has been little changed.
I checked all the other blocks where may be the same problem and catch yet one block with this behaviour (Recover User Password)

so, all the blocks has been fixed and we will release this changes asap

Regards, Vlad


(Renato N) #5

Amazing, thank you Vlad! :slight_smile:


(Vladimir Upirov) #6

The fix is released.

Please check if everything works as expected

Regards, Vlad


(Renato N) #7

All good! Thanks Vlad!