# Webthing-python/example/single-thing.py prints 404 verbose

**URL:** https://discourse.mozilla.org/t/webthing-python-example-single-thing-py-prints-404-verbose/38507
**Category:** WebThings
**Created:** [April 21, 2019, 1:01pm UTC](https://discourse.mozilla.org/t/webthing-python-example-single-thing-py-prints-404-verbose/38507 "2019-04-21T13:01:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Novski](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/novski/32/4829_2.png) [@Novski](https://discourse.mozilla.org/u/Novski)
#### Post date: [April 21, 2019, 1:01pm UTC](https://discourse.mozilla.org/t/webthing-python-example-single-thing-py-prints-404-verbose/38507/1 "2019-04-21T13:01:39Z")

</div>

I copied the [single-thing example](https://github.com/mozilla-iot/webthing-python/blob/master/example/single-thing.py#L26) and get many verbose 404.

```
2019-04-21 12:39:17,392 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 11.02ms
2019-04-21 12:39:17,469 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 9.59ms
2019-04-21 12:39:17,496 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 10.73ms
2019-04-21 12:39:17,534 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 12.54ms
2019-04-21 12:39:17,563 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 12.78ms
2019-04-21 12:39:17,592 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 11.35ms
2019-04-21 12:39:17,644 web.py:2162 INFO 200 GET / (192.168.178.56) 35.93ms
2019-04-21 12:39:17,680 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 11.75ms
2019-04-21 12:39:17,710 web.py:2162 INFO 200 GET /properties/on (192.168.178.56) 11.74ms
2019-04-21 12:39:17,751 web.py:2162 INFO 200 GET /properties/brightness (192.168.178.56) 14.33ms
2019-04-21 12:39:17,781 web.py:2162 INFO 101 GET / (192.168.178.56) 13.86ms
2019-04-21 12:39:17,823 web.py:2162 WARNING 404 GET /0 (192.168.178.56) 12.73ms

```

I get many 404 and once a while 200 & 101.

However, I have a special setup, I’m not sure if it’s related to my installation.  
I noticed that [multiple-things](https://github.com/mozilla-iot/webthing-python/blob/master/example/multiple-things.py#L28) are not miss behaving like that and its called in a class instead of a function.  
Why is that different?

---

<div class="post-metadata">

### Author: ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)
#### Post date: [April 21, 2019, 2:21pm UTC](https://discourse.mozilla.org/t/webthing-python-example-single-thing-py-prints-404-verbose/38507/2 "2019-04-21T14:21:08Z")

</div>

The URLs that the things are hosted on are different when using single and multiple things examples. the `/0` would be the first thing of a multiple things instance, while `/properties` and `/` is where the thing lives when there’s only one.

MultipleThings are also order dependent, so always have your things in the same order in the constructor to it (or however that works in python).
