Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 361 for failed (0.21 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

          if (e is ConnectionShutdownException) {
            throw e // No request was sent so there's no response to read.
          }
          if (!exchange.hasFailure) {
            throw e // Don't attempt to read the response; we failed to send the request.
          }
          sendRequestException = e
        }
    
        try {
          if (responseBuilder == null) {
            responseBuilder = exchange.readResponseHeaders(expectContinue = false)!!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            ),
          )
          .assertLogMatch(
            Regex(
              """callFailed: \S+(?:SSLProtocolException|SSLHandshakeException|TlsFatalAlert): (?:Unexpected handshake message: client_hello|Handshake message sequence violation, 1|Read error|Handshake failed|unexpected_message\(10\)).*""",
            ),
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

          }
    
        assertFailsWith<IOException> {
          val failingResponse = uncompress(response)
          failingResponse.body.string()
        }.also { ioe ->
          assertThat(ioe).hasMessage("Brotli stream decoding failed")
          assertThat(ioe.cause?.javaClass?.simpleName).isEqualTo("BrotliRuntimeException")
        }
      }
    
      @Test
      fun testSkipUncompressNoContentResponse() {
        val response =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt

        client.newCall(Request(url)).enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              println("failed: $e")
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              println("response: ${response.code}")
              response.close()
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

      @Suppress("unused", "UNCHECKED_CAST")
      fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
        host: String,
      ): List<Certificate> {
        if (host in insecureHosts) return listOf()
        try {
          val method =
            checkServerTrustedMethod
              ?: throw CertificateException("Failed to call checkServerTrusted")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/batch/v1beta1/generated.proto

      // +optional
      optional string timeZone = 8;
    
      // Optional deadline in seconds for starting the job if it misses scheduled
      // time for any reason.  Missed jobs executions will be counted as failed ones.
      // +optional
      optional int64 startingDeadlineSeconds = 2;
    
      // Specifies how to treat concurrent executions of a Job.
      // Valid values are:
      //
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/AbstractBuildScanInfoCollectingService.kt

     * 2. Collect failed task paths and display a link which points to the corresponding task in the build scan, like `https://ge.gradle.org/s/xxx/console-log?task=yyy`.
     */
    abstract class AbstractBuildScanInfoCollectingService : BuildService<AbstractBuildScanInfoCollectingService.Params>, OperationCompletionListener {
        /**
         * To be compatible with configuration cache, this field must be Serializable.
         */
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Aug 11 07:01:27 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt

        try {
          call.execute().use { response ->
            System.out.printf(
              "%.2f Call was expected to fail, but completed: %s%n",
              (System.nanoTime() - startNanos) / 1e9f,
              response,
            )
          }
        } catch (e: IOException) {
          System.out.printf(
            "%.2f Call failed as expected: %s%n",
            (System.nanoTime() - startNanos) / 1e9f,
            e,
          )
        }
      }
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

          if (foundTrustedCertificate) {
            return result
          }
    
          // The last link isn't trusted. Fail.
          throw SSLPeerUnverifiedException(
            "Failed to find a trusted cert that signed $toVerify",
          )
        }
    
        throw SSLPeerUnverifiedException("Certificate chain too long: $result")
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

      private var nextProxyIndex: Int = 0
    
      // State for negotiating the next socket address to use.
      private var inetSocketAddresses = emptyList<InetSocketAddress>()
    
      // State for negotiating failed routes
      private val postponedRoutes = mutableListOf<Route>()
    
      init {
        resetNextProxy(address.url, address.proxy)
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
Back to top