tagreader-python icon indicating copy to clipboard operation
tagreader-python copied to clipboard

KeyError: 'Next' in module 'search'

Open RoseDeSable opened this issue 1 year ago • 0 comments

Hi, I'm working like in this example:

c = tagreader.IMSClient(...) <= here is my server with the database name and so ... c.connect() c.search("cd158") c.search(desc="reactor") c.search(tag="BA:", desc="Temperature")

In each search-call I see this failure:

c.search(tag="1") <== one of my search call Traceback (most recent call last): File "", line 1, in File "C:\Users\a038775\AppData\Roaming\Python\Python310\site-packages\tagreader\clients.py", line 313, in search return self.handler.search(tag=tag, desc=desc, timeout=timeout) File "C:\Users\a038775\AppData\Roaming\Python\Python310\site-packages\tagreader\web_handlers.py", line 807, in search next_start = int(data["Links"]["Next"].split("=")[-1]) KeyError: 'Next'

I'm running under Windows and use python: '3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]'

What shall I do ?

RoseDeSable avatar Feb 28 '24 14:02 RoseDeSable