API Connector Triggers this error : "Response was not valid JSON"

Hi guys, @Teodor so I am using the API available at https://api.paystack.co/transaction/verify/ It is a payment api. I need to pull the data for each payment transaction eg. Auth_Code etc.

Using the Wappler API connector, I am able to connect to the API. (You can use this live url as a sample https://api.paystack.co/transaction/verify/T633279853602942.

However, when I “Define API Schema” Call, the data I want shows in Wappler “Define API Schema” window. Like below:

But on my page, nothing shows. When I display the error message it shows this error message: Highlighted “Response was not valid JSON”.

An example of the data I want to retrieve is highlighted below:

Can anyone advise me on what to do to fix this? @George

While I was setting up, I went from error code 400 - 404 especially hitting error code 401 (indicating auth problem) however after fixing all those issues it ended up here and I am stuck. Ive been trying for a few hours now and nothing seems to work.

Can I get some help please? Thank you.

Try using the API Action in Server Connect and then include this on your page App Structure / Data / Server Connect and select the API Action you created.

1 Like

@Dave big respect. Thank you. It worked perfectly.

1 Like