Comments (4)
@weichou1229 seems like a 503 - Service Unavailable
is the right code, but the message is the problem? Also 502 or 504 could potentially be used as well, but 503 probably makes the most sense.
from device-onvif-camera.
seems like a 503 - Service Unavailable is the right code
Yes, the 503 is right.
I thought the problem is we used 5s to create a new Onvif client. The HTTP request already timeout on the service level even if the Onvif client threw the unavailable error.
service HTTP timeout
Service:
...
RequestTimeout: "5s"
Onvlif client timeout
# Custom configs
[AppCustom]
# The number of seconds to wait when making an Onvif request before timing out
RequestTimeout = 5 # Seconds
device-onvif-camera/internal/driver/onvifclient.go
Lines 72 to 83 in 33d7f92
from device-onvif-camera.
@ajcasagrande This issue cause the automation test case failed. May we set the default AppCustom.RequestTimeout config to 4 (less than the service request tmieout)? Then, the service can reply the proper error content in the response. If you agree with this solution, I can assign someone to work on it. Thanks.
from device-onvif-camera.
@cloudxxx8 yes that is fine
from device-onvif-camera.
Related Issues (20)
- Geo vision - set network gateway not working correctly HOT 3
- Document how to disable Axis replay attack prevention
- Remove code that loads static provision watchers (functionality now in latest SDK)
- Hikvision-DS-2DE2A404IW-DE3- Get device capabilities gives an error HOT 4
- Hikvision-DS-2DE2A404IW-DE3- Get device service capabilities API gives an error HOT 4
- Hikvision-DS-2DE2A404IW-DE3- Set scopes API gives an error HOT 3
- Hikvision-DS-2DE2A404IW-DE3 camera- Configuration of Analytics profile - Add Configuration API not working HOT 5
- onvif camera + example app service HOT 9
- Remove obsolete code for type-safety
- refactor: Change configuration and provision watcher file format to YAML
- Implement Start API to resolve Device SDK cache inconsistency, causing device not found errors HOT 15
- Fail to start service with error "registry is not available" HOT 9
- Swagger file is missing definitions for some schemas
- Replace credential scripts with curl commands
- SEO: Certain Google searches lead to the now defunct device-camera-go HOT 1
- Replace gorilla/mux with echo library
- The Hikvision NVR device (model: IDS-7816NX) has enabled Onvif, but the device-onvif-camera cannot be automatically discovered. HOT 2
- DiscoverySubnets are empty!" HOT 8
- Failed to Get profiles of Camera Device that have been successfully deployed on EdgexFoudary ! 404 Error! HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from device-onvif-camera.