Backendless Support
 
Solved

v4 Codeless: Try / Catch block produces broken code

Hi Vlad! - I'm going to assume you're the one assigned for codeless stuff ;)

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":

e8aa0d3a79e8c013ac67f1bdf1f03bdc

Renato

Leave a Comment

Comments (6)

photo
1

Extra context:

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

22d36264e0af069b2916d4e2333f4f7b

But, when it is moved BELOW the print out, it's broken:

a78ed15b70836eff337901b254c25f6a

and if it's put before, the code isn't even replicated to where it should be:

82590362a11577b8265fc3213ad4916c

photo
1

Hi Renato

Thanks for reporting! I'll definitely forward it to Vlad ;) We'll notify you here when it will be fixed

Best Regards

photo
1

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

photo
1

Amazing, thank you Vlad! :)

photo
1

The fix is released.

Please check if everything works as expected

Regards, Vlad

photo
1

All good! Thanks Vlad!

photo