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

Search with wildcard does not work on TRA #302

Open
torlid opened this issue Jan 8, 2024 · 2 comments
Open

Search with wildcard does not work on TRA #302

torlid opened this issue Jan 8, 2024 · 2 comments

Comments

@torlid
Copy link

torlid commented Jan 8, 2024

Site = 'TRA', API = 'aspenone'
serach with no wildcard works:

ims.search('TRA-35PT3601A.PV')
[('TRA-35PT3601A.PV', 'Tog A gass innløp trykk')]

serach with wildcard does not:

ims.search("-35TI")
Traceback (most recent call last):
File "", line 1, in
File "c:\Users\torlid\OneDrive - Equinor\Python\pyCmpr.venv\lib\site-packages\tagreader\clients.py", line 313, in search
return self.handler.search(tag=tag, desc=desc, timeout=timeout)
File "c:\Users\torlid\OneDrive - Equinor\Python\pyCmpr.venv\lib\site-packages\tagreader\web_handlers.py", line 411, in search
description = self._get_tag_description(tagname)
File "c:\Users\torlid\OneDrive - Equinor\Python\pyCmpr.venv\lib\site-packages\tagreader\web_handlers.py", line 461, in get_tag_description
data = self.fetch(url, params=query)
File "c:\Users\torlid\OneDrive - Equinor\Python\pyCmpr.venv\lib\site-packages\tagreader\web_handlers.py", line 146, in fetch
return json.loads(txt)
File "C:\Program Files\Python310\lib\json_init
.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@torlid
Copy link
Author

torlid commented Jan 8, 2024

tagreader 5.1.3

@asmfstatoil
Copy link
Collaborator

Er problem med ein tag 'TRA-35PT3016.PV#del', skal sjå om eg finn ein måte å omgå den på

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