Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hello, fellow Kepwarers,
I ran into a problem that my Iot agent sent only empty response to my Django backend.
I set up an IoT agent as Rest Client and added a simulation tag. So that whenever the value changed, the agent should have sent a POST HTTP request to my backend. The template format were kept as the default settings. However, after I edited the tag value, the mechanism worked but the Django only recieved empty request (it showed "<QueryDict:{ }>").
Can anyone shed some light on this problem? Much appreciated!
Solved! Go to Solution.
Can you check to see if the endpoint is using a TSL/SSL connection? If so, you will need adjust the URL in the Agent Properties to use “ssl://”. You will also want to verify if the Django application is expecting a POST or PUT command. You will need to change the method setting to PUT if this what the Django application is utilizing. Since you are only testing with a single tag, I also recommend changing the default Narrow format to Wide Format. The Narrow format acts as a buffer. If adjusting these basic IoT Gateway Rest Client settings does not resolve the issue; I recommend opening a Support Ticket with the Kepware Technical Support team to analyze your configuration. Here is a link to my kepware portal login page where a support ticket can be logged:
https://my.kepware.com/s/login/
Thanks,
*Chris
Can you check to see if the endpoint is using a TSL/SSL connection? If so, you will need adjust the URL in the Agent Properties to use “ssl://”. You will also want to verify if the Django application is expecting a POST or PUT command. You will need to change the method setting to PUT if this what the Django application is utilizing. Since you are only testing with a single tag, I also recommend changing the default Narrow format to Wide Format. The Narrow format acts as a buffer. If adjusting these basic IoT Gateway Rest Client settings does not resolve the issue; I recommend opening a Support Ticket with the Kepware Technical Support team to analyze your configuration. Here is a link to my kepware portal login page where a support ticket can be logged:
https://my.kepware.com/s/login/
Thanks,
*Chris