Notifications
Clear all

Webservice Headers

4 Posts
2 Users
2 Reactions
1,943 Views
(@mark-4541)
Posts: 2
Member
Topic starter
 

I am trying to connect to an API using the webservice GET request method, however my request is always rejected by the server. The GET request requires a header key "TLG-API-Key" and value "XXXXXXX-API Key-XXXXXXXX". I have added these headers accordingly and tested the connection, but I think that are not being sent with the GET request, hence the rejection. 

I can use GET with Postman successfully with the header described above.

I have used Postman Proxy to intercept the GET request from QHMI when I press the "Connection Test" and I cannot see the header key "TLG-API-Key" so I don't think it's being sent.

What am I missing here. Apologies if this is obvious but I am not an expert in this. Attached some screen shots that might help

QHMI Get Reject
Postman Proxy capture
Postman GET success

 

Thank you for any advice you may have.


 
Posted : 13/02/2025 8:22 am CET
MarAlz-RW reacted
Matthias
(@m-folte-9469)
Posts: 34
Member Admin
 

Hello mark-4541,

It appears you’re not missing anything. The ability to add custom headers to the web service datasource was introduced in a later update, and we seem to have overlooked including those headers in the request during the connection test and when importing variables.

Could you please confirm whether, despite the failed connection test, the datasource is functioning correctly at runtime?

We will fix this oversight in one of the next updates. Possibly next week.


 
Posted : 13/02/2025 9:28 am CET
MarAlz-RW reacted
(@mark-4541)
Posts: 2
Member
Topic starter
 

Hi Matthias, I updated the editor to the latest version now everything is working perfectly. Thank you for your prompt assistance, really appreciate it 👍 

Cheers Mark.


 
Posted : 14/02/2025 7:06 am CET
Matthias
(@m-folte-9469)
Posts: 34
Member Admin
 

Hello mark-4541,

thanks for your feedback. Glad we were able to quickly solve this problem.


 
Posted : 17/02/2025 10:19 am CET