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

StartStreaming errors not passed to the caller #23

Closed
farshidtz opened this issue May 19, 2022 · 7 comments · Fixed by #113
Closed

StartStreaming errors not passed to the caller #23

farshidtz opened this issue May 19, 2022 · 7 comments · Fixed by #113
Labels
3-high priority denoting release-blocking issues bug Something isn't working
Milestone

Comments

@farshidtz
Copy link
Member

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in:

Is this a regression?

No

Description and Minimal Reproduction [REQUIRED]

Make sure that the rtsp is NOT running.

Start streaming:

$ curl -X PUT -d '{                                                                              
    "StartStreaming": {
      "InputImageSize": "640x480",
      "OutputVideoQuality": "5"
    }
}' http://localhost:59882/api/v2/device/name/Logitech_StreamCam-4B17BE45/StartStreaming
{"apiVersion":"v2","statusCode":200}

This returns 200 OK as if the requested operation was successful. If this HTTP request is just meant to accept the the operation and run it asynchornously, the response code should be 202 Accepted

Logs:

level=INFO ts=2022-05-19T11:48:31.864475627Z app=device-usb-camera source=driver.go:536 msg="start video streaming for device Logitech_StreamCam-4B17BE45"
level=ERROR ts=2022-05-19T11:48:32.774545384Z app=device-usb-camera source=driver.go:524 msg="the video streaming process for device Failed Finish FFMPEG ([-nostats -loglevel 0 -y -s 640x480 -i /dev/video0 -qscale 5 -f rtsp -hls_list_size 0 rtsp://localhost:8554/stream/Logitech_StreamCam-4B17BE45]) with exit status 1 message   has stopped, error: %!s(MISSING)"

🔥 Exception or Error





🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:

Anything else relevant?

@farshidtz farshidtz added the bug Something isn't working label May 19, 2022
@lenny-goodell
Copy link
Member

@farshidtz , did #24 address this issue?
@cloudxxx8 , if issue still needs addressing, can your team take it?

@lenny-goodell lenny-goodell added this to the Kamakura milestone Jul 19, 2022
@farshidtz
Copy link
Member Author

@farshidtz , did #24 address this issue?

No, that is a fix for another issue.

@cloudxxx8 cloudxxx8 assigned FelixTing and unassigned FelixTing Jul 20, 2022
@cloudxxx8 cloudxxx8 added the help wanted Extra attention is needed label Jul 21, 2022
@cloudxxx8
Copy link
Member

@farshidtz this is the normal command API, and it is a Set Command provided by this Device Service
Set Command only supports 200 response for now.
This should be applied to the new device function in the future
edgexfoundry/edgex-docs#644

@cloudxxx8 cloudxxx8 added question Further information is requested and removed bug Something isn't working help wanted Extra attention is needed labels Jul 22, 2022
@iain-anderson iain-anderson added bug Something isn't working and removed question Further information is requested labels Aug 29, 2022
@lenny-goodell
Copy link
Member

@iain-anderson , per @cloudxxx8 response, this is what it is due to Core Command capability.
Should we close as will not fix
or
should we discuss future refactoring of Core Command to allow for this?

@iain-anderson
Copy link
Member

I think close. The functionality we are trying to provide doesn't really fit the model we are working with, so some inconsistency will manifest. Long-term the fix is to do it via device functions as per the above.

@lenny-goodell lenny-goodell added the wontfix This will not be worked on label Sep 22, 2022
@lenny-goodell
Copy link
Member

Closing per above discussion

@lenny-goodell
Copy link
Member

Error needs to be captured prior to returning so the error can be returned.

@farshidtz farshidtz removed the wontfix This will not be worked on label Sep 26, 2022
@lenny-goodell lenny-goodell modified the milestones: Kamakura, Levski Oct 10, 2022
@lenny-goodell lenny-goodell added the 3-high priority denoting release-blocking issues label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3-high priority denoting release-blocking issues bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants