API Action and API Form Client Side - no parameters passing to the API

======== TEMPLATE BUG FORM ========

Wappler Version : 3.2.2.
Operating System : Mac
Project: NodeJS

Expected behavior

I have a perfectly working API call to a third party in my original Bubble project. I’ve copied the same API Call to the API Action on the Front End (as I need to send a file).

I expect a 200 response and for the call to be accepted.

…YOUR TEXT HERE …

Actual behavior

Adding the API keys as API Header, OR Query Parameter, OR Input Data - none are received by the API. If I add the API keys in the POST url - the keys are received by the third party API.

However, when I then try to send data via Input Parameter OR Query Parameter such as a simple Email or file I just get errors that the data is invalid or missing.

How to reproduce

Setup a API Call on the client side for either API Action with POST or API Form with POST and try to pass parameters via anything other than the actual URL.

Bump, this has been an issue for a couple of weeks now I believe.

Bump again, no acknowledgement of the bug from the team so just pushing it up so it doesn’t get lost.

Noting, the API Call itself is the exact same setup a the one used in Bubble, which is working perfectly.

Are you saying that the POST data is not being set, the values that you set using the input data?

Yep. I’ll take some screens in a second.

This is the error I receive from the API when I include the key manually in the actual URL:

Screen Shot 2020-09-16 at 8.48.08 am

If I remove the key from the URL but include in query param or header param:

Screen Shot 2020-09-16 at 8.49.13 am

No input/query params display when trying to Define API Schema, as would be expected and as works on the Server Connect side with an API Action.

Parameters setup, exactly as per they are in the working Bubble API call.

Screen Shot 2020-09-16 at 8.50.21 am

Do you have some documentation about how the request to the api should look like?

Of course - but all I’m doing is replicating a working API call from Bubble, to Wappler - do you need this to test yourself (I’ll need to send you the keys privately), or are you assuming it’s just setup incorrectly?

I think that it is probably not setup correctly, but for that I need to know how the api expects its data.

Ok. I will send you the info via message in 5 mins.

I have sent all API information from the provider, and also screenshots of my setup to a personal message.

Just confirming this has been identified as a bug and is being looked into.

@patrick just bumping this - is this likely to be fixed soon?

Any update here, or confirmation this will be fixed at some point?

@mgaussie I think I am having the same issue. I’m trying to set a dynamic API request header using the data from another request’s response, but the value is not getting passed.

I’m making API call to fetch data from bubble database from client side of wappler but having the issue of unauthorization. If I put static bearer token in header for testing in wappler like this
image
it works fine


but when I test it in browser by putting a dynamic value stored in local storage (ike this: Bearer tokenvalue)
image
it throws an error of unauthorization.

Experiencing the same thing here… Is there a solution??? Made the same api request attempt with stripe… initializes properly to set the data schema but in the browser… I get an error saying I didnt set authentication… the value is static not dynamic so its not an issue of setting the variable @patrick @Teodor @ben @George

1 Like

when trying to run a post request clientside to stripe i get this response…


defining the api schema returns a valid response… but when running the api call in the browser i get an error.
Screen Shot 2020-11-14 at 4.16.13 PM

{
“error”: {
“code”: “parameter_unknown”,
“doc_url”: “https://stripe.com/docs/error-codes/parameter-unknown”,
“message”: “Received unknown parameter: ------WebKitFormBoundaryUQNo5M8XA0anFRuT–\r\n”,
“param”: “------WebKitFormBoundaryUQNo5M8XA0anFRuT–\r\n”,
“type”: “invalid_request_error”
}
}

Screen Shot 2020-11-14 at 4.17.50 PM Screen Shot 2020-11-14 at 4.18.09 PM

does anyone else get this error?? and know the solution?..

1 Like

Did anyone figure this out?