In the API response triggered from Feathery, the status field randomly switches between status_code and statusCode. What could be causing this?
Hi @Dakshayini_dev , What api are you using? Are there any scenarios that it populates statusCode/status_code? or it is pure random?
I’m testing the form integration with a GET API that retrieves some object details. The two scenarios I’m validating are:
-
Rendering via embedded code inside a JavaScript function, which is triggered by a click event — gives status_code in API response.
-
Rendering the form by embedding the script directly in a simple HTML page — gives statusCode in API response.
@Dakshayini_dev , If this is a feathery API, can I know which one exactly are you using? I would like to replicate what you are experiencing for us to be in the same picture
Hey @Kenny, just a clarification — it’s not a Feathery API, it’s an API from our own application. We’re just using feathery.http.get(url) to invoke it
Got it. I’ll try to replicate what you experienced and coordinate it with our engineers. Will keep you posted
@Kenny Just checking — is there any chance this behavior depends on the specific version of SDK we’re using?
@Dakshayini_dev , We are not able to replicate the scenario you experienced. Can you try getting the latest version of our SDK and see if it’ll become consistent?
We identified the issue — the status_code
attribute behaves differently between the React SDK and the JavaScript SDK.