Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
indralimena
Employee
Employee

[API Key] POST http request failing (always executed as GET http request)

Hi,

 

i'm new to Qlik and i'm using QAA to access Public API end point. This is a very simple POST http request. 

API Key - POST method defined.png

but when it runs, somehow the API Key block/component runs as GET http request.

here's the input (the method is submitted as "POST")

API Key - input is POST.png

here's the output (the method is executed as GET). i did try for PUT request, and it is changed to GET in the runtime/execution.

API Key - output is GET.png

if anyone has any clue/idea why it behaves this way, please kindly share a hint to me and it will be much appreciated. Thanks 

 

Regards,

 

Indra

Labels (3)
2 Solutions

Accepted Solutions
Shai_E
Support
Support

Hi @LauraLangenaken , @Madhushree_BP ,

I can confirm that when testing with qlik sense update automation endpoint the block executed the request as a get request instead of updating the name of my automation can you advise on this?

Thanks


View solution in original post

Madhushree_BP
Support
Support

Hi @indralimena 

For the Raw API request blocks whenever there is an error the GET method is used all the time to display the error it's not that the wrong method is sent.

In your case, I see that it is saying 415, which means unsupported media type, can you add or verify the Content-Type?
Let me know if it works

Thanks!
Madhushree

 

View solution in original post

5 Replies
Shai_E
Support
Support

Hi @indra,

Two things that i wonder:

1. Did you save the configurations before running the automation?

2. What happens if you try running with only one "Raw API Request" block? (Deleting the other one from the automation)

 

indralimena
Employee
Employee
Author

Hi @Shai_E,

 

yes, i saved the automation before execution.

And here's my test with only 1 Raw API Request block just now.

Just 1 Raw API Request block.png 

still the same issue (defined as POST, but executed as GET request)

output of API Request block.png

 

 

Regards,

 

 

Indra Limena

Shai_E
Support
Support

Hi @LauraLangenaken , @Madhushree_BP ,

I can confirm that when testing with qlik sense update automation endpoint the block executed the request as a get request instead of updating the name of my automation can you advise on this?

Thanks


Madhushree_BP
Support
Support

Hi @indralimena 

For the Raw API request blocks whenever there is an error the GET method is used all the time to display the error it's not that the wrong method is sent.

In your case, I see that it is saying 415, which means unsupported media type, can you add or verify the Content-Type?
Let me know if it works

Thanks!
Madhushree

 

indralimena
Employee
Employee
Author

Hi @Madhushree_BP 

 

Thank you. you're spot on, "GET" on the output is the default response if any error on the http request.

i added http header, and it returns the result as per my expectation.

indralimena_0-1689290604214.png

indralimena_1-1689290616951.png

 

Thanks.

 

Regards,

 

Indra Limena