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

connection failed #80

Open
AnjaliNirmale opened this issue Jul 1, 2024 · 4 comments
Open

connection failed #80

AnjaliNirmale opened this issue Jul 1, 2024 · 4 comments

Comments

@AnjaliNirmale
Copy link

while connecting to the Theta camera through to iOS application.The user, who is on iOS version 17.4.1 is experiencing a timeout error with the following details:
Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.” UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3EC9BA23-7212-4579-85DD-00355DC28141>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
“LocalDataTask <3EC9BA23-7212-4579-85DD-00355DC28141>.<1>”
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://192.168.1.1/osc/info, NSErrorFailingURLKey=https://192.168.1.1/osc/info, _kCFStreamErrorDomainKey=4}

and camera Details :-
Firmware Version:2.51.0
Manufacturer: Ricoh Company, Ltd.
Model: RICOH THETA X

Interestingly,my camera works fine with the Theta app.
Thank you in advance for your assistance.

@simago
Copy link
Contributor

simago commented Jul 2, 2024

@AnjaliNirmale Theta does not support HTTPS.
Please try http://192.168.1.1/osc/info.

@AnjaliNirmale
Copy link
Author

@simago yes I agreed.. I m sending the http request, but I m unsure why the error response shows https..here is my request
Request: <URLRequest [
URL: "http://192.168.1.1/osc/info",
Method: "GET",
Headers: [
"Content-Length": "0"
],
CachePolicy: UseProtocolCachePolicy
]

@AnjaliNirmale
Copy link
Author

@simago any updates.?

@simago
Copy link
Contributor

simago commented Nov 8, 2024

@AnjaliNirmale info.plist of our iOS demo application includes following descriptions:

        <key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<false/>
		<key>NSExceptionDomains</key>
		<dict>
			<key>192.168.1.1</key>
			<dict>
				<key>NSIncludesSubdomain</key>
				<false/>
				<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
				<true/>
				<key>NSTemporaryExceptionRequiresForwardSecrecy</key>
				<false/>
			</dict>
		</dict>
	</dict>

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants