API action, changes not saved

Have had this issue for a long time:
When changing things in an api action (although this also happens in other places, like extensions), it doesn’t save what I’ve changed.

To reproduce:

  1. Create server action
  2. Create api action
  3. Create a ‘set value’
  4. Put some data in a grid or the json field:
  5. Click away from the field (blur) to save
  6. Save the file (control+s)
  7. Click on another server action (the set value from step 3)
  8. Click back to the api action
  9. See that your changes are reverted. (I’m doing these same steps in the video above)

On Wappler 5.2.0

PS In my example I am copy pasting something instead of manually typing something (in step 3)

This issue lies deeper apparently…

Wappler doesn’t allow me to use 359009875036997205

See, even in a normal set value wappler doesn’t accept it or changes the value.

This is quite frustrating as it’s a contact ID that I need to pass to an external API endpoint, so I can’t change this ID.

Any workarounds until it’s fixed?

There must be something wrong with your specific server action that causes it. Changes in the setvalue step are properly working here.
Does the same thing happen in a new, empty server action?

Yes just tested it in a new server action, it seems to be rounding the value?

Please see this video where I show a couple of examples (I also double checked that I’m not pasting anything weird, by just typing the number manually)

Is the value being rounded in the UI only or also when you run the server action in the browser?

Both

The input is xxx2039

So in the ui it gets rounded to xxx2000:

In the browser it’s seen as xxx2000

In the actual .json file it’s also rounded to xxx2000

Fixed in Wappler 5.2.2

This topic was automatically closed after 47 hours. New replies are no longer allowed.