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
@@ -94,8 +94,8 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
94
94
95
95
val response = client.newCall(request).execute()
96
96
if (!response.isSuccessful) {
97
-
response.close()
98
97
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while receiving message [${body}]")
98
+
response.close()
99
99
return
100
100
}
101
101
@@ -120,8 +120,8 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
120
120
121
121
val response = client.newCall(request).execute()
122
122
if (!response.isSuccessful) {
123
-
response.close()
124
123
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while sending heartbeat [$body] for owner [$phoneNumber]")
124
+
response.close()
125
125
return
126
126
}
127
127
@@ -156,8 +156,8 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
156
156
157
157
val response = client.newCall(request).execute()
158
158
if (!response.isSuccessful) {
159
+
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while sending [${event}] event [${body}] for message with ID [${messageId}]")
159
160
response.close()
160
-
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while sending [${event}] event [${body}] for message with ID [${messageId}]")
161
161
return
162
162
}
163
163
@@ -184,8 +184,8 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
184
184
185
185
val response = client.newCall(request).execute()
186
186
if (!response.isSuccessful) {
187
-
response.close()
188
187
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while sending fcm token [${body}]")
188
+
response.close()
189
189
returnnull
190
190
}
191
191
@@ -207,8 +207,8 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
207
207
try {
208
208
val response = client.newCall(request).execute()
209
209
if (!response.isSuccessful) {
210
-
response.close()
211
210
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while verifying apiKey [$apiKey]")
211
+
response.close()
212
212
returnPair("Cannot validate the API key. Check if it is correct and try again.", null)
0 commit comments