<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Configure timeout for webservice consumption]]></title><description><![CDATA[<p dir="auto">Hi guys. I am making an application in my m5stack fire which makes the call to a web service through these lines:</p>
<p dir="auto">import urequests</p>
<p dir="auto">response = urequests.get("<a href="http://myurl.com" target="_blank" rel="noopener noreferrer nofollow ugc">myurl.com</a>")<br />
if response.status_code == 200:<br />
jsonResponse = ujson.loads(response.text)<br />
response.close<br />
break<br />
else:<br />
label8.setText("Error web service")<br />
wait_ms(2000)</p>
<p dir="auto">Sometimes, the web service does not respond properly and the device continues to consume indefinitely.</p>
<p dir="auto">Can the web service be called in such a way that I can configure a timeout of x seconds, so that when the web service does not respond my application can continue its flow?</p>
<p dir="auto">My m5stack fire device uses UIFlow_Fire 1.13.1 firmware based on Micropython-1.12</p>
<p dir="auto">Thanks for your help.</p>
]]></description><link>https://community.m5stack.com/topic/6047/configure-timeout-for-webservice-consumption</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 17:06:25 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6047.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Feb 2024 21:14:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Configure timeout for webservice consumption on Mon, 05 Feb 2024 13:38:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> thanks for answering.<br />
Do you know what the final http function is that you tell me?</p>
]]></description><link>https://community.m5stack.com/post/23646</link><guid isPermaLink="true">https://community.m5stack.com/post/23646</guid><dc:creator><![CDATA[nestor.toro]]></dc:creator><pubDate>Mon, 05 Feb 2024 13:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Configure timeout for webservice consumption on Sat, 03 Feb 2024 10:41:09 GMT]]></title><description><![CDATA[<p dir="auto">I’m not sure as I haven’t tested but there is a http end request function that release the http request</p>
]]></description><link>https://community.m5stack.com/post/23613</link><guid isPermaLink="true">https://community.m5stack.com/post/23613</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 03 Feb 2024 10:41:09 GMT</pubDate></item></channel></rss>