You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The device is successfully added into Edgex but when we execute some command on the device such as StartStreaming the device-usb-camera service panics with the error panic: interface conversion: interface {} is nil, not string and eventually exits.
馃敟 Exception or Error
panic: interface conversion: interface {} is nil, not string
馃實 Your Environment
Deployment Environment: Docker, Docker + Dev Hybrid
EdgeX Version [REQUIRED]: 3.0
Anything else relevant?
This issue will be fixed in main. CardName and SerialNumber are optional parameters but the service does not have proper checks and when the device is added manually without one or both of these parameters the issue is seen. With the fixed service, based on their respective needs users can manually add a camera with or without these parameters.
The text was updated successfully, but these errors were encountered:
presatish
changed the title
Panic when device is missing CardName or SerialNumber
Panic when device is missing CardName or SerialNumber (Minnesota)
Jun 22, 2023
@presatish , the work around for this is to add blank CardName and SerialNumber correct?
There is no need for blank ones, the blank ones will lead to errors. Either the user can add these fields with their respective values or can completely omit them as we have in the examples now.
馃悶 Bug Report
Affected Services [REQUIRED]
device-usb-camera
Is this a regression?
No
Description and Minimal Reproduction [REQUIRED]
StartStreaming
the device-usb-camera service panics with the errorpanic: interface conversion: interface {} is nil, not string
and eventually exits.馃敟 Exception or Error
panic: interface conversion: interface {} is nil, not string
馃實 Your Environment
Deployment Environment: Docker, Docker + Dev Hybrid
EdgeX Version [REQUIRED]: 3.0
Anything else relevant?
This issue will be fixed in
main
.CardName
andSerialNumber
are optional parameters but the service does not have proper checks and when the device is added manually without one or both of these parameters the issue is seen. With the fixed service, based on their respective needs users can manually add a camera with or without these parameters.The text was updated successfully, but these errors were encountered: