# BPUP errors do not have a new line

**URL:** <https://forum.bondhome.io/t/bpup-errors-do-not-have-a-new-line/2887>\
**Category:** Integrations\
**Created:** [December 7, 2021, 7:24am UTC](https://forum.bondhome.io/t/bpup-errors-do-not-have-a-new-line/2887 "2021-12-07T07:24:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdraco](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bdraco](https://forum.bondhome.io/u/bdraco)\
**Post date:** [December 7, 2021, 7:24am UTC](https://forum.bondhome.io/t/bpup-errors-do-not-have-a-new-line/2887/1 "2021-12-07T07:24:42Z")

</div>

Documented error message:  
`{"B":"ZZBL12345","err_id":631,"err_msg":"BPUP client timeout"}\n`

Actual error message:  
`{"B":"KVPRBDGXXXXX","_error_id":633,"_error_msg":"BPUP client timeout"}`

The api docs show a newline at the end of messages

It looks like sometimes they are missing and are prefixed with an underscore

> <https://github.com/prystupa/bond-api/issues/14>
>
> \`\`\`
> 2021-11-30 17:24:55 ERROR (MainThread) \[homeassistant\] Error doing job: Exc…eption in callback \_SelectorDatagramTransport.\_read\_ready()
> Traceback (most recent call last):
> File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in \_run
> self.\_context.run(self.\_callback, \*self.\_args)
> File "/usr/local/lib/python3.9/asyncio/selector\_events.py", line 1029, in \_read\_ready
> self.\_protocol.datagram\_received(data, addr)
> File "/usr/local/lib/python3.9/site-packages/bond\_api/bpup.py", line 83, in datagram\_received
> self.bpup\_subscriptions.notify(json.loads(data.decode()\[:-1\]))
> File "/usr/local/lib/python3.9/json/\_\_init\_\_.py", line 346, in loads
> return \_default\_decoder.decode(s)
> File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
> obj, end = self.raw\_decode(s, idx=\_w(s, 0).end())
> File "/usr/local/lib/python3.9/json/decoder.py", line 353, in raw\_decode
> obj, end = self.scan\_once(s, idx)
> json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 71 (char 70)
> \`\`\`

---

<div class="post-metadata">

**Author:** ![endy](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/endy/32/1275_2.png) [@endy](https://forum.bondhome.io/u/endy)\
**Post date:** [December 17, 2021, 7:44pm UTC](https://forum.bondhome.io/t/bpup-errors-do-not-have-a-new-line/2887/2 "2021-12-17T19:44:59Z")

</div>

Thank you for the report!

I believe it should be standardized, will share it with the FW and documentation team on Monday morning.
