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

Some unknown errors #11

Open
vstadnytskyi opened this issue Feb 3, 2020 · 1 comment
Open

Some unknown errors #11

vstadnytskyi opened this issue Feb 3, 2020 · 1 comment

Comments

@vstadnytskyi
Copy link
Owner

vstadnytskyi commented Feb 3, 2020

I would randomly get this error:

Ignoring late response with ioid=1 regarding PV named BEAMLINE:m39.VAL because it arrived 11.781 seconds after the deadline specified by the timeout.

or this

Server failed to process command: EventAddRequest(data_type=<ChannelType.TIME_ENUM: 17>, data_count=0, sid=33, subscriptionid=67, low=0.0, high=
0.0, to=0.0, mask=5)
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_data.py", line 367, in subscribe
    metadata, values = self._content[data_type]
KeyError: <ChannelType.TIME_ENUM: 17>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_backend.py", line 114, in enum_to_int
    return enum_strings.index(v)
ValueError: tuple.index(x): x not in tuple

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_backend.py", line 325, in convert_values
    enum_strings=enum_strings)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_backend.py", line 123, in _preprocess_enum_values
    return [enum_to_int(v) for v in values]
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_backend.py", line 123, in <listcomp>
    return [enum_to_int(v) for v in values]
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_backend.py", line 116, in enum_to_int
    raise CaprotoConversionError(f'Invalid enum string: {v!r}')
caproto._utils.CaprotoConversionError: Invalid enum string: ''

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/server/common.py", line 182, in _command_queue_ite
ration
    response = await self._process_command(command)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/server/common.py", line 533, in _process_command
    sub)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_data.py", line 371, in subscribe
    metadata, values = await self._read(data_type)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_data.py", line 410, in _read
    direction=ConversionDirection.TO_WIRE)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/caproto/_backend.py", line 327, in convert_values
    raise CaprotoConversionError() from ex
caproto._utils.CaprotoConversionError
@danielballan
Copy link

I think we might have fixed this in https://caproto.github.io/caproto/release-notes.html#v0-5-0-2020-05-01. Still an issue?

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