priore / SOAPEngine

This generic SOAP client allows you to access web services using a your iOS app, Mac OS X app and AppleTV app.
http://www.prioregroup.com
Other
482 stars 75 forks source link

iOS App not working #217

Closed Ankit-vtro closed 7 months ago

Ankit-vtro commented 1 year ago

Hi , I am trying to stream ip camera of HIKVISION brand - having user name and password in my iOS app (ONVIFCamera_Example - sample app) but it gives me below error

2023-04-14 12:00:22.466160+0530 ONVIFCamera_Example[6703:151526] Initializing SOAPEngine v.1.41 2023-04-14 12:00:22.640030+0530 ONVIFCamera_Example[6703:151525] Connection 1: received failure notification 2023-04-14 12:00:22.640221+0530 ONVIFCamera_Example[6703:151525] Connection 1: failed to connect 12:8, reason -1 2023-04-14 12:00:22.640319+0530 ONVIFCamera_Example[6703:151525] Connection 1: encountered error(12:8) 2023-04-14 12:00:22.641550+0530 ONVIFCamera_Example[6703:151525] Task <596E52E1-4CA5-4C23-BEA1-3343AF1203F4>.<1> HTTP load failed, 0/0 bytes (error code: -1003 [12:8]) 2023-04-14 12:00:22.667207+0530 ONVIFCamera_Example[6703:151527] Task <596E52E1-4CA5-4C23-BEA1-3343AF1203F4>.<1> finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x60000114eca0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <596E52E1-4CA5-4C23-BEA1-3343AF1203F4>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <596E52E1-4CA5-4C23-BEA1-3343AF1203F4>.<1>" ), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=http://rtsp://10.1.5/Streaming/Channels/102/?transportmode=unicast, NSErrorFailingURLKey=http://rtsp://10.1.5/Streaming/Channels/102/?transportmode=unicast, _kCFStreamErrorDomainKey=12} Thread Performance Checker: Thread running at QOS_CLASS_USER_INITIATED waiting on a lower QoS thread running at QOS_CLASS_BACKGROUND. Investigate ways to avoid priority inversions PID: 6703, TID: 151526 Backtrace

3 ONVIFCamera 0x0000000103c4c46d $s11ONVIFCamera14RealmRetrieverV4post33_DE5EB60F985AC4C6AD2B2B3032CD348ELL9urlStringSSSgSS_tF + 893 4 ONVIFCamera 0x0000000103c4c0e8 $s11ONVIFCamera14RealmRetrieverV5realm3forSSSgSS_tF + 40 5 ONVIFCamera 0x0000000103c472da $s11ONVIFCameraAAC14performRequest33_34D2AA8442435CFEE8408E0CFD5F02EFLL7request8response5erroryAA06CameraC0OySDySSypGcySScSgtFyycfU + 1354 6 ONVIFCamera 0x0000000103c48fd8 $sIeg_IeyB_TR + 40 7 libdispatch.dylib 0x0000000103ddfd18 _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x0000000103de0f5b _dispatch_client_callout + 8 9 libdispatch.dylib 0x0000000103de3a28 _dispatch_queue_override_invoke + 1488 10 libdispatch.dylib 0x0000000103df5e77 _dispatch_root_queue_drain + 414 11 libdispatch.dylib 0x0000000103df6b17 _dispatch_worker_thread2 + 278 12 libsystem_pthread.dylib 0x00007ff836172c9d _pthread_wqthread + 256 13 libsystem_pthread.dylib 0x00007ff836171c67 start_wqthread + 15 2023-04-14 12:00:22.679073+0530 ONVIFCamera_Example[6703:151525] Connection 2: received failure notification 2023-04-14 12:00:22.679238+0530 ONVIFCamera_Example[6703:151525] Connection 2: failed to connect 12:8, reason -1 2023-04-14 12:00:22.679358+0530 ONVIFCamera_Example[6703:151525] Connection 2: encountered error(12:8) 2023-04-14 12:00:22.680313+0530 ONVIFCamera_Example[6703:151525] Task <04E3D680-E56D-4937-BC2A-E759F648EAFF>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8]) 2023-04-14 12:00:22.680478+0530 ONVIFCamera_Example[6703:151527] NSURLConnection finished with error - code -1003 2023-04-14 12:00:22.680827+0530 ONVIFCamera_Example[6703:151526] SOAPEngine connection fail! - A server with the specified hostname could not be found. http://rtsp://10.1.5/Streaming/Channels/102/?transportmode=unicast/onvif/device_service Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x6000011406c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=http://rtsp://10.1./Streaming/Channels/102/?transportmode=unicast/onvif/device_service, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSErrorFailingURLKey=http://rtsp://10.1.5/Streaming/Channels/102/?transportmode=unicast/onvif/device_service, _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11]}}, NSErrorFailingURLStringKey=http://rtsp://10.1.5/Streaming/Channels/102/?transportmode=unicast/onvif/device_service, NSErrorFailingURLKey=http://rtsp://10.1.5/Streaming/Channels/102/?transportmode=unicast/onvif/device_service, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=A server with the specified hostname could not be found.} SOAP REQUEST: http://www.onvif.org/ver10/device/wsdl/GetServices

I tried replacing with YouTube live video link but its also not working - so I guess the issue might be because - WE DONT HAVE LICENSED SOAP ENGINE KEY.

So please let me know if we buy the key - will it work OR can you provide some sample key to atleast work in simulator ?

priore commented 1 year ago

Hello, no its not the licensing issue, but the url address is invalid format, not even safari or chrome would recognize it

thanks for your trust

Ankit-vtro commented 1 year ago

Hi , For security purpose I haven’t shared the original url - but just a part of url. Moreover when I enter in safari in MacBook - it opens in vlc player and asks for username and password - and upon entering that the streaming starts seamlessly but not in the simulator . So I want to ask - on entering it through the app nothing happens - just error logs are printed , what should I do? Note : we have firewall in the office network .

On Fri, 14 Apr 2023 at 8:01 PM, Prioregroup.com @.***> wrote:

Hello, no its not the licensing issue, but the url address is invalid format, not even safari or chrome would recognize it

thanks for your trust

— Reply to this email directly, view it on GitHub https://github.com/priore/SOAPEngine/issues/217#issuecomment-1508657366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUKFIAXX2KHTDSTDHGWPHILXBFNURANCNFSM6AAAAAAW6ANQDY . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks & Regards,

Ankit Tayde.

Mobile Tech Lead, VTRO MOTORS PVT LTD.

Phone : +91-20-27279999 Mobile : +91-9890431116

Website : www.vtro.in Address : 1st floor, Vasundhara Plaza, Vishal Nagar,Pimple-Nilakh,Pune - 411027.

-- Go Green !!!

Save a tree...… Please don't print this e-mail unless you really need to.

Disclaimer: Everything contained in, and transmitted by this e-mail is intended solely for the addressee/s.  This may contain information that is privileged and confidential.  Access to this email and/or to the attachment by anyone else is unauthorized.  If you are not the intended recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited and kindly delete this from your system and please inform the sender.

IF YOU ARE RECEIVING OUR EMAILS IN JUNK MAIL OR SPAM, PLEASE CLICK ON 'SAFE’ / ‘NOT SPAM’ / ‘NOT JUNK MAIL’ TO ENSURE THAT HENCEFORTH YOU RECEIVE THE EMAILS IN THE MAIN INBOX.

Thank you.

 

priore commented 1 year ago

This links are useful for you maybe ? issues185 and issues190