When I clone an API the parameters get deleted.
Status: Closed · Asked by mcorona on · 0 views
I was trying to duplicate an api by pabbly, I've tried this twice now. When I clone it, all the parameters are erase.
I make sure to save the module before I clone it. the Parameters are erase on both the original and clone.
Hey @mcorona
We tried to clone the API module and we did not experience this issue. All the parameters are there in the API. Could you please clear the browser cache and then again try the same thing with the API module?
Hey @mcoronaWe tried to clone the API module and we did not experience this issue. All the parameters are there in the API. Could you please clear the browser cache and then again try the same thing with the API module?
It's actually worse than I thought. The parameters keep randomly erasing. It seems like it has nothing to do with the cloning at all. Even now I tried adding headers. As soon as I hit save, all the Label values were erased.
Attachments

I cleared cache, logged out, and back in... and now now the set parameters box is unchecked. Everything is gone.
Attachments

Here's a video of the behavior. It happens with every parameter. Also sometimes the 'set parameters' box is unticked and then everything is gone including the values.
I see the problem now, it is not liking the quotes in the labels I'm putting in. Unfortunately even though I've selected the format to be JSON, it's sending in javascript. The keys values don't have quotes like they are supposed and the receiver is having an issue with that.
Hey @mcorona
Yes, you did not need to pass the parameter inside double quotes. You need to pass the parameter as it is.
Kindly let us know if you have any questions or comments.
The problem is that when it sends the data as JSON, its sending it without the quotes. Which is improper formatting for JSON, that's proper format for Javascript. It needs those quotes.
Hey @mcorona,
Looks like you have resolved the issue by using action event as custom request and you are now able to pass the JSON without any issue.

Kindly let us know if you have any further questions or comments.