Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error log when getting stats #110

Open
jacomago opened this issue Jun 28, 2023 · 1 comment
Open

Error log when getting stats #110

jacomago opened this issue Jun 28, 2023 · 1 comment

Comments

@jacomago
Copy link

jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: ERROR:p4p.gw:Error during periodic sweep
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: Traceback (most recent call last):
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: File "/opt/conda/envs/pva-gateway/lib/python3.7/site-packages/p4p/gw.py", line 723, in run
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: self.stats.update_stats(period)
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: File "/opt/conda/envs/pva-gateway/lib/python3.7/site-packages/p4p/gw.py", line 328, in update_stats
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: C.executemany('INSERT INTO ds VALUES (?,?,?,?,?,?,?,?)', _gw.Server_report(server, norm))
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: File "_gw.pyx", line 319, in p4p._gw.Server_report
jun 28 13:25:37 idmz-ro-epics-gw-tn.esss.lu.se pvagw[1019]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 10: invalid continuation byte

From release 4.1.7

I'm guessing a pvAccess Server is providing weird credentials details.

@mdavidsaver
Copy link
Member

https://github.com/mdavidsaver/p4p/blob/739b6eeef938f1eb889f243e4d898f1d7ae24677/src/p4p/_gw.pyx#L319

I'm guessing a pvAccess Server is providing weird credentials details.

Does ESS assign user names with an encoding other than utf-8?

At the least, a better error message is called for. eg. with the peer name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants