Coder Social home page Coder Social logo

Server traceback when reading a float about caproto HOT 3 OPEN

kc64 avatar kc64 commented on June 18, 2024
Server traceback when reading a float

from caproto.

Comments (3)

kc64 avatar kc64 commented on June 18, 2024

In verbose mode, I get this:

caproto-get -v A:CHILLER1:FLOW_RATE
[D 13:54:18.013       client:   59] Registering with the Channel Access repeater.
[D 13:54:18.014       client:   74] Searching for 'A:CHILLER1:FLOW_RATE'....
[D 13:54:18.015       client:  144] Found 'A:CHILLER1:FLOW_RATE' at 10.10.11.24:5064
[D 13:54:18.031       client:  198] 10.10.11.60:52565 <<<--- 10.10.11.24:5064 16B VersionResponse(version=13)
[D 13:54:18.072       client:  198] 10.10.11.60:52565 <<<--- 10.10.11.24:5064 16B AccessRightsResponse(cid=0, access_rights=<AccessRights.WRITE|READ: 3>)
[D 13:54:18.073       client:  198] 10.10.11.60:52565 <<<--- 10.10.11.24:5064 16B CreateChanResponse(data_type=<ChannelType.DOUBLE: 6>, data_count=1, cid=0, sid=0)
[I 13:54:18.073       client:  202] A:CHILLER1:FLOW_RATE Channel connected.
[D 13:54:18.073       client:  215] 10.10.11.24:5064 A:CHILLER1:FLOW_RATE Detected native data_type <ChannelType.DOUBLE: 6>.
[D 13:54:18.077       client:  239] 10.10.11.60:52565 <<<--- 10.10.11.24:5064 88B A:CHILLER1:FLOW_RATE ErrorResponse(original_request=MessageHeader(command=15, payload_size=0, data_type=6, data_count=0, parameter1=0, parameter2=0), cid=0, status=CAStatusCode(name='ECA_INTERNAL', code=17, code_with_severity=142, severity=<CASeverity.FATAL: 6>, success=0, defunct=False, description='Channel Access Internal Failure'), error_message=bytearray(b'Python exception: TypeError len() of unsized object\x00\x00\x00\x00\x00'))
Traceback (most recent call last):
  File "C:\python_v3.10.0\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\python_v3.10.0\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "c:\My Software\pype_dream2\.local\Scripts\caproto-get.exe\__main__.py", line 7, in <module>
  File "c:\My Software\pype_dream2\.local\lib\site-packages\caproto\commandline\get.py", line 172, in main
    response = read(pv_name=pv_name,
  File "c:\My Software\pype_dream2\.local\lib\site-packages\caproto\sync\client.py", line 353, in read
    return _read(chan, timeout, data_type=data_type, data_count=data_count,
  File "c:\My Software\pype_dream2\.local\lib\site-packages\caproto\sync\client.py", line 244, in _read
    raise ErrorResponseReceived(command)
caproto._utils.ErrorResponseReceived: ErrorResponse(original_request=MessageHeader(command=15, payload_size=0, data_type=6, data_count=0, parameter1=0, parameter2=0), cid=0, status=CAStatusCode(name='ECA_INTERNAL', code=17, code_with_severity=142, severity=<CASeverity.FATAL: 6>, success=0, defunct=False, description='Channel Access Internal Failure'), error_message=bytearray(b'Python exception: TypeError len() of unsized object\x00\x00\x00\x00\x00'))

[edited to fix markup]

from caproto.

tacaswell avatar tacaswell commented on June 18, 2024

Comparing to e.g.

A = pvproperty(
value=1,
doc='An integer',
)
I would expect that to work.

Can you share a minimal copy-pasteable example of an IOC that shows this problem?

from caproto.

kc64 avatar kc64 commented on June 18, 2024

We just discovered the issue. The data was being pushed into the pvdb as '2.3' (a string) instead of 2.3 (a float). Embarrassing but a relief. Thanks for trying to help.

from caproto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.