Body:
Hi everyone,
I'm encountering an issue where my HTTPS polling is timing out with the following error:
RROR
-> 07:44:11 - Error : 12002. [ERROR_WINHTTP_TIMEOUT]
-> 07:44:11 - Get for JSONResponseBody had error : Error : 12002. [ERROR_WINHTTP_TIMEOUT]
-> 07:44:11 - Retrying get for JSONResponseBody
<- 07:44:11 - GET https://url.com:443
-> 07:44:15 - Error : 12002. [ERROR_WINHTTP_TIMEOUT]
-> 07:44:15 - Get for JSONResponseBody had error : Error : 12002. [ERROR_WINHTTP_TIMEOUT]
-> 07:44:15 - Retrying get for JSONResponseBody
<- 07:44:15 - GET https://url.com:443
-> 07:44:19 - Error : 12002. [ERROR_WINHTTP_TIMEOUT]
-> 07:44:19 - Get for JSONResponseBody had error : Error : 12002.
Here’s the situation:
-
I’m polling a table via HTTPS.
-
When I manually fetch the response using DataMiner and Postman, I receive the raw JSON values as expected.
-
However, when I create a QAction that deserializes and then re-serializes the response before polling the group, I end up with repeated timeout errors.
-
I’ve double-checked the URL (I’ve replaced it with a generic one here for security) and confirmed that the endpoint is reachable via other tools.
Is there a certain way I should poll the table through QAction? Please guide me if so.
Has anyone encountered this behavior? What could be causing the timeout during the QAction processing? Any guidance or troubleshooting steps would be greatly appreciated!
Thanks in advance for your help.
Hi,
Would it be possible to clarify a few things?
-There is mentioned "When I manually fetch the response using DataMiner... I receive the raw JSON values as expected". Does this mean that it is implemented like as explained here and that works correct? In that case you could add a QAction that triggers on the parameter used in Content pid of the response to parse the JSON result and fill it in a table.
-I don't fully understand what is being done with "When I create a QAction that deserializes and then re-serialized the response before polling the group". If a QAction is used to send a request, then this is done with a multi-threaded timer, as explained here , but if you only want to poll the same device then that way of working is not needed. I'm also not sure what is being described about a response before polling the group, as a response is the result that is entering while executing the group. Do you mean that you want to modify the request that is being sent out? Would it be possible to include the concept of how this is implemented e.g. how does the group look like and the group content items and the QAction concept of how it is triggered and if it returns some object?
Regards,
Hi Laurens,
Thanks for your response. To clarify:
HTTP Response & Status Code
I am successfully getting a 200 status code, and when I manually fetch the response (e.g., via Postman or using a direct DataMiner test), I do receive the raw JSON data as expected.
Polling to Table Issue
Although the JSON is being retrieved correctly, the table in my protocol remains empty—no rows are populated.
Timeout Error
I am still encountering the 12002 [ERROR_WINHTTP_TIMEOUT] during the polling process, even though the endpoint responds with a 200 status when tested separately.
Could you advise on what might cause the table to remain empty, despite having valid JSON data and a 200 status code? Any insights on how to address the recurring timeout error would also be greatly appreciated.
Thank you again for your assistance!
Kind regards,

Hi, what do you mean with a direct DataMiner test? Is this an element or something else that you're testing with?
Element and Postman

So you have a DataMiner element where it is possible to receive the data as raw JSON? Based on this you should trigger a QAction on the parameter with the incoming value and then from the QAction parse the JSON value and fill in the table.
Yes I could get raw json data. Can you give me an example of how to do that. Also, how do I solve the timeout error if you may know a solution for that as well.
each time its fetching the data its timing out and then it gives out the result