# Digiweb stops responding

**URL:** <https://forums.digi.com/t/digiweb-stops-responding/2954>\
**Category:** Python\
**Created:** [June 30, 2009, 8:25pm UTC](https://forums.digi.com/t/digiweb-stops-responding/2954 "2009-06-30T20:25:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boris1](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@Boris1](https://forums.digi.com/u/Boris1)\
**Post date:** [June 30, 2009, 8:25pm UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/1 "2009-06-30T20:25:28Z")

</div>

I have write application in python to periodically retreive data from sensor. Additionaly I register web callback routine to read data and return it in XML form. After some period the web callback routine stops responding I receive response:

Object Not Found  
Object Not FoundThe requested URL ‘/dms’ was not found on the embedded Digi ARM device.Return to last page

Regular response should be:

2370.8470.59

Is there a way to trace errors in runtime if I set program in Auto-start? Do I have any view inside execution environment?

---

<div class="post-metadata">

**Author:** ![pankajusic](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@pankajusic](https://forums.digi.com/u/pankajusic)\
**Post date:** [May 10, 2010, 8:24am UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/2 "2010-05-10T08:24:31Z")

</div>

I am doing M.Sc Electronics in Madurai. For my Project i am using Digi Drop in networking kit . I have finished Python programs . Now my prof asks to disp temperature and light values that i have acquired form Router in to Web page index.html. Unable to understand Digi web usage. Please help me with your examples. Please do this favour , my id is [pankaj@gaurishiv.org](mailto:pankaj@gaurishiv.org)

---

<div class="post-metadata">

**Author:** ![DigiGuy42](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DigiGuy42](https://forums.digi.com/u/DigiGuy42)\
**Post date:** [July 1, 2009, 2:28pm UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/3 "2009-07-01T14:28:33Z")

</div>

Yes, if you have the script set to auto-start in the ‘set python’ command, it will direct its sys.stdout and sys.stderr output to the trace facility built into the system.

You can then view the results by connecting to the CLI of the device and enabling trace with ‘set trace state=on’. This will cause the output to print out from the printf mask as a critical message. Since critical messages are on by default, you will not need to change the ‘mask’ parameter.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![jurkovicb](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jurkovicb](https://forums.digi.com/u/jurkovicb)\
**Post date:** [July 2, 2009, 6:07am UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/4 "2009-07-02T06:07:41Z")

</div>

Thank’s for the tip. I would certainly use it. In mean time I found the problem I have. I missed in one place to put try/except statement on ddo\_set\_param. It happened because battery died on remote sensor and the sensor stops responding. In that case ddo\_set\_param bails out with Exception.

Thank’s for the help anyway.

---

<div class="post-metadata">

**Author:** ![Admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Admin1](https://forums.digi.com/u/Admin1)\
**Post date:** [May 10, 2010, 11:46pm UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/5 "2010-05-10T23:46:16Z")

</div>

I’d recommend registering for then downloading the iDigi Dia python app, since it has examples to read the temperature/light values built into it. You can download this here: [http://www.idigi.com/resources.jsp](http://www.idigi.com/resources.jsp)

---

<div class="post-metadata">

**Author:** ![pankajusic](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@pankajusic](https://forums.digi.com/u/pankajusic)\
**Post date:** [May 13, 2010, 5:51am UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/6 "2010-05-13T05:51:24Z")

</div>

thanks for your valuable suggestion…  
i have one doubt that iDigi Dia python app will work in Connecport X4 gateway or not?  
waiting for ur reply

---

<div class="post-metadata">

**Author:** ![descalon](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/descalon/32/4288_2.png) [@descalon](https://forums.digi.com/u/descalon)\
**Post date:** [May 14, 2010, 10:57am UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/7 "2010-05-14T10:57:55Z")

</div>

Hello,  
You can also try and download the Digi ESP for Python and iDigi Dia. It is a graphic IDE recently released by Digi that contains the iDigi Dia app with lot of other features, examples, tutorials and getting started guides to ease the development process.

Read this post:

[http://www.digi.com/support/forum/viewthread\_thread,7503](http://www.digi.com/support/forum/viewthread_thread,7503)

Kind regards!

---

<div class="post-metadata">

**Author:** ![DigiGuy42](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DigiGuy42](https://forums.digi.com/u/DigiGuy42)\
**Post date:** [May 14, 2010, 4:21pm UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/8 "2010-05-14T16:21:53Z")

</div>

The Dia works great on an X4, the X4 and X8 are really the two products it was initially developed for and runs on them admirably.

I do second the use of the Digi IDE. It’s a great tool and getting even better all the time.

---

<div class="post-metadata">

**Author:** ![lynnl](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lynnl](https://forums.digi.com/u/lynnl)\
**Post date:** [May 14, 2010, 5:09pm UTC](https://forums.digi.com/t/digiweb-stops-responding/2954/9 "2010-05-14T17:09:10Z")

</div>

If you use X4/X8, you should look at the Digi ‘watchdog’ module:  
[http://www.digi.com/wiki/developer/index.php/Module:digiwdog](http://www.digi.com/wiki/developer/index.php/Module:digiwdog)

It allows you to reboot the gateway should particular threads halt due to a try:except: issue.

The X2 doesn’t have this because it lacks the external hardware to make it reliable.
