Not able to register phone number on self-hosted Signal Server (Connection Error)
Issue
We have a self-hosted Signal-Server which runs and works fine for Android Clients (signal-android). With the iOS app (singal-iOS) there is a issue when trying to register a phone number. After pressing "Register" in the first screen, the error
Signal was unable to connect to the internet. Please try again.
appears.
Here is the Xcode log
2019-01-19 19:10:10:818 Signal[68612:16164580] [TSNetworkManager.m:104 -[TSNetworkManager makeRequestSync:completionQueue:success:failure:]]: Making Non-UD request: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:919 Signal[68612:16161863] [TSNetworkManager.m:264 +[TSNetworkManager logCurlForTask:]]: curl for failed request: curl -v -k -X GET -H 'User-Agent: Signal/2.33.1 (iPhone; iOS 12.1; Scale/3.00)' -H 'Accept-Language: en;q=1, de-AT;q=0.9' https://example.com/v1/accounts/sms/code/+12345678911111?client=ios
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSNetworkManager.m:299 +[TSNetworkManager errorPrettifyingForFailureBlock:request:]_block_invoke]: The network request failed because of a connectivity error: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSAccountManager.m:343 -[TSAccountManager registerWithPhoneNumber:success:failure:smsVerification:]_block_invoke]: Failed to request verification code request with error:Error Domain=SignalServiceKit.TSNetworkManager Code=0 "Signal was unable to connect to the internet. Please try again." UserInfo={NSUnderlyingError=0x7b0c000877e0 {Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, NSErrorFailingURLKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>, NSLocalizedDescription=cancelled}}, NSLocalizedDescription=Signal was unable to connect to the internet. Please try again., NSLocalizedRecoverySuggestion=Please check if you are online and try again.}
2019-01-19 19:10:10:926 Signal[68612:16161863] [UIApplication+OWS.swift:21 findFrontmostViewController(ignoringAlerts:)]: findFrontmostViewController: <UIWindow: 0x7b5c00001500; frame = (0 0; 375 812); autoresize = W+H; gestureRecognizers = <NSArray: 0x7b0c0007edb0>; layer = <UIWindowLayer: 0x7b0800066b20>>
2019-01-19 19:11:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:12:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:13:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:10:922 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:48:987 Signal[68612:16161863] [OWSDisappearingMessagesJob.m:353 -[OWSDisappearingMessagesJob fallbackTimerDidFire]]:
2019-01-19 19:14:48:988 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:145 -[OWSDisappearingMessagesJob runLoop]]: in runLoop
2019-01-19 19:14:48:992 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:135 -[OWSDisappearingMessagesJob deleteExpiredMessages]]: Removed 0 expired messages
2019-01-19 19:14:48:993 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:157 -[OWSDisappearingMessagesJob runLoop]]: No more expiring messages.
2019-01-19 19:15:10:923 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
As described, the Android app we compiled from source works fine.
ios
add a comment |
Issue
We have a self-hosted Signal-Server which runs and works fine for Android Clients (signal-android). With the iOS app (singal-iOS) there is a issue when trying to register a phone number. After pressing "Register" in the first screen, the error
Signal was unable to connect to the internet. Please try again.
appears.
Here is the Xcode log
2019-01-19 19:10:10:818 Signal[68612:16164580] [TSNetworkManager.m:104 -[TSNetworkManager makeRequestSync:completionQueue:success:failure:]]: Making Non-UD request: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:919 Signal[68612:16161863] [TSNetworkManager.m:264 +[TSNetworkManager logCurlForTask:]]: curl for failed request: curl -v -k -X GET -H 'User-Agent: Signal/2.33.1 (iPhone; iOS 12.1; Scale/3.00)' -H 'Accept-Language: en;q=1, de-AT;q=0.9' https://example.com/v1/accounts/sms/code/+12345678911111?client=ios
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSNetworkManager.m:299 +[TSNetworkManager errorPrettifyingForFailureBlock:request:]_block_invoke]: The network request failed because of a connectivity error: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSAccountManager.m:343 -[TSAccountManager registerWithPhoneNumber:success:failure:smsVerification:]_block_invoke]: Failed to request verification code request with error:Error Domain=SignalServiceKit.TSNetworkManager Code=0 "Signal was unable to connect to the internet. Please try again." UserInfo={NSUnderlyingError=0x7b0c000877e0 {Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, NSErrorFailingURLKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>, NSLocalizedDescription=cancelled}}, NSLocalizedDescription=Signal was unable to connect to the internet. Please try again., NSLocalizedRecoverySuggestion=Please check if you are online and try again.}
2019-01-19 19:10:10:926 Signal[68612:16161863] [UIApplication+OWS.swift:21 findFrontmostViewController(ignoringAlerts:)]: findFrontmostViewController: <UIWindow: 0x7b5c00001500; frame = (0 0; 375 812); autoresize = W+H; gestureRecognizers = <NSArray: 0x7b0c0007edb0>; layer = <UIWindowLayer: 0x7b0800066b20>>
2019-01-19 19:11:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:12:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:13:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:10:922 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:48:987 Signal[68612:16161863] [OWSDisappearingMessagesJob.m:353 -[OWSDisappearingMessagesJob fallbackTimerDidFire]]:
2019-01-19 19:14:48:988 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:145 -[OWSDisappearingMessagesJob runLoop]]: in runLoop
2019-01-19 19:14:48:992 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:135 -[OWSDisappearingMessagesJob deleteExpiredMessages]]: Removed 0 expired messages
2019-01-19 19:14:48:993 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:157 -[OWSDisappearingMessagesJob runLoop]]: No more expiring messages.
2019-01-19 19:15:10:923 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
As described, the Android app we compiled from source works fine.
ios
add a comment |
Issue
We have a self-hosted Signal-Server which runs and works fine for Android Clients (signal-android). With the iOS app (singal-iOS) there is a issue when trying to register a phone number. After pressing "Register" in the first screen, the error
Signal was unable to connect to the internet. Please try again.
appears.
Here is the Xcode log
2019-01-19 19:10:10:818 Signal[68612:16164580] [TSNetworkManager.m:104 -[TSNetworkManager makeRequestSync:completionQueue:success:failure:]]: Making Non-UD request: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:919 Signal[68612:16161863] [TSNetworkManager.m:264 +[TSNetworkManager logCurlForTask:]]: curl for failed request: curl -v -k -X GET -H 'User-Agent: Signal/2.33.1 (iPhone; iOS 12.1; Scale/3.00)' -H 'Accept-Language: en;q=1, de-AT;q=0.9' https://example.com/v1/accounts/sms/code/+12345678911111?client=ios
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSNetworkManager.m:299 +[TSNetworkManager errorPrettifyingForFailureBlock:request:]_block_invoke]: The network request failed because of a connectivity error: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSAccountManager.m:343 -[TSAccountManager registerWithPhoneNumber:success:failure:smsVerification:]_block_invoke]: Failed to request verification code request with error:Error Domain=SignalServiceKit.TSNetworkManager Code=0 "Signal was unable to connect to the internet. Please try again." UserInfo={NSUnderlyingError=0x7b0c000877e0 {Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, NSErrorFailingURLKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>, NSLocalizedDescription=cancelled}}, NSLocalizedDescription=Signal was unable to connect to the internet. Please try again., NSLocalizedRecoverySuggestion=Please check if you are online and try again.}
2019-01-19 19:10:10:926 Signal[68612:16161863] [UIApplication+OWS.swift:21 findFrontmostViewController(ignoringAlerts:)]: findFrontmostViewController: <UIWindow: 0x7b5c00001500; frame = (0 0; 375 812); autoresize = W+H; gestureRecognizers = <NSArray: 0x7b0c0007edb0>; layer = <UIWindowLayer: 0x7b0800066b20>>
2019-01-19 19:11:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:12:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:13:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:10:922 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:48:987 Signal[68612:16161863] [OWSDisappearingMessagesJob.m:353 -[OWSDisappearingMessagesJob fallbackTimerDidFire]]:
2019-01-19 19:14:48:988 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:145 -[OWSDisappearingMessagesJob runLoop]]: in runLoop
2019-01-19 19:14:48:992 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:135 -[OWSDisappearingMessagesJob deleteExpiredMessages]]: Removed 0 expired messages
2019-01-19 19:14:48:993 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:157 -[OWSDisappearingMessagesJob runLoop]]: No more expiring messages.
2019-01-19 19:15:10:923 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
As described, the Android app we compiled from source works fine.
ios
Issue
We have a self-hosted Signal-Server which runs and works fine for Android Clients (signal-android). With the iOS app (singal-iOS) there is a issue when trying to register a phone number. After pressing "Register" in the first screen, the error
Signal was unable to connect to the internet. Please try again.
appears.
Here is the Xcode log
2019-01-19 19:10:10:818 Signal[68612:16164580] [TSNetworkManager.m:104 -[TSNetworkManager makeRequestSync:completionQueue:success:failure:]]: Making Non-UD request: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:919 Signal[68612:16161863] [TSNetworkManager.m:264 +[TSNetworkManager logCurlForTask:]]: curl for failed request: curl -v -k -X GET -H 'User-Agent: Signal/2.33.1 (iPhone; iOS 12.1; Scale/3.00)' -H 'Accept-Language: en;q=1, de-AT;q=0.9' https://example.com/v1/accounts/sms/code/+12345678911111?client=ios
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSNetworkManager.m:299 +[TSNetworkManager errorPrettifyingForFailureBlock:request:]_block_invoke]: The network request failed because of a connectivity error: <TSRequest: 0x7b0c00071e50> { URL: v1/accounts/sms/code/+12345678911111?client=ios }
2019-01-19 19:10:10:920 Signal[68612:16161863] [TSAccountManager.m:343 -[TSAccountManager registerWithPhoneNumber:success:failure:smsVerification:]_block_invoke]: Failed to request verification code request with error:Error Domain=SignalServiceKit.TSNetworkManager Code=0 "Signal was unable to connect to the internet. Please try again." UserInfo={NSUnderlyingError=0x7b0c000877e0 {Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, NSErrorFailingURLKey=https://example.com/v1/accounts/sms/code/+12345678911111?client=ios, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <084BF9D2-8F6D-4E23-B1B1-06A38A58CF88>.<1>, NSLocalizedDescription=cancelled}}, NSLocalizedDescription=Signal was unable to connect to the internet. Please try again., NSLocalizedRecoverySuggestion=Please check if you are online and try again.}
2019-01-19 19:10:10:926 Signal[68612:16161863] [UIApplication+OWS.swift:21 findFrontmostViewController(ignoringAlerts:)]: findFrontmostViewController: <UIWindow: 0x7b5c00001500; frame = (0 0; 375 812); autoresize = W+H; gestureRecognizers = <NSArray: 0x7b0c0007edb0>; layer = <UIWindowLayer: 0x7b0800066b20>>
2019-01-19 19:11:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:12:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:13:10:921 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:10:922 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
2019-01-19 19:14:48:987 Signal[68612:16161863] [OWSDisappearingMessagesJob.m:353 -[OWSDisappearingMessagesJob fallbackTimerDidFire]]:
2019-01-19 19:14:48:988 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:145 -[OWSDisappearingMessagesJob runLoop]]: in runLoop
2019-01-19 19:14:48:992 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:135 -[OWSDisappearingMessagesJob deleteExpiredMessages]]: Removed 0 expired messages
2019-01-19 19:14:48:993 Signal[68612:16178879] [OWSDisappearingMessagesJob.m:157 -[OWSDisappearingMessagesJob runLoop]]: No more expiring messages.
2019-01-19 19:15:10:923 Signal[68612:16161863] [OutageDetection.swift:71 checkForOutageAsync()]:
As described, the Android app we compiled from source works fine.
ios
ios
asked Jan 19 at 18:24
Drazen MokicDrazen Mokic
1,42611930
1,42611930
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54270087%2fnot-able-to-register-phone-number-on-self-hosted-signal-server-connection-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54270087%2fnot-able-to-register-phone-number-on-self-hosted-signal-server-connection-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown