Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ErrorDetail (0.15 sec)

  1. src/cmd/go/internal/web/api.go

    	}
    }
    
    // formatErrorDetail converts r.errorDetail (a prefix of the output of r.Body)
    // into a short, tab-indented summary.
    func (r *Response) formatErrorDetail() string {
    	if r.Body != &r.errorDetail {
    		return "" // Error detail collection not enabled.
    	}
    
    	// Ensure that r.errorDetail has been populated.
    	_, _ = io.Copy(io.Discard, r.Body)
    
    	s := r.errorDetail.buf.String()
    	if !utf8.ValidString(s) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:00:34 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/web/http.go

    			case "us-ascii", "utf-8", "":
    				// Body claims to be plain text in UTF-8 or a subset thereof.
    				// Try to extract a useful error message from it.
    				r.errorDetail.r = res.Body
    				r.Body = &r.errorDetail
    			}
    		}
    	}
    
    	return r, nil
    }
    
    func getFile(u *urlpkg.URL) (*Response, error) {
    	path, err := urlToFilePath(u)
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. pkg/xds/server.go

    	// will be different from the version sent. But it is fragile to rely on that.
    	if request.ErrorDetail != nil {
    		errCode := codes.Code(request.ErrorDetail.Code)
    		log.Warnf("ADS:%s: ACK ERROR %s %s:%s", stype, id, errCode.String(), request.ErrorDetail.GetMessage())
    		IncrementXDSRejects(request.TypeUrl, w.GetID(), errCode.String())
    		return false, emptyResourceDelta
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. pilot/pkg/xds/delta.go

    	// will be different from the version sent. But it is fragile to rely on that.
    	if request.ErrorDetail != nil {
    		errCode := codes.Code(request.ErrorDetail.Code)
    		deltaLog.Warnf("ADS:%s: ACK ERROR %s %s:%s", stype, con.ID(), errCode.String(), request.ErrorDetail.GetMessage())
    		xds.IncrementXDSRejects(request.TypeUrl, con.proxy.ID, errCode.String())
    		return false
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. pkg/istio-agent/xds_proxy_delta.go

    						Message: err.Error(),
    					}
    				}
    				// Send ACK/NACK
    				con.sendDeltaRequest(&discovery.DeltaDiscoveryRequest{
    					TypeUrl:       resp.TypeUrl,
    					ResponseNonce: resp.Nonce,
    					ErrorDetail:   errorResp,
    				})
    				continue
    			}
    			switch resp.TypeUrl {
    			case model.ExtensionConfigurationType:
    				if features.WasmRemoteLoadConversion {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 04 20:29:08 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. pkg/istio-agent/xds_proxy.go

    		if !healthEvent.Healthy {
    			req.ErrorDetail = &google_rpc.Status{
    				Code:    int32(codes.Internal),
    				Message: healthEvent.UnhealthyMessage,
    			}
    		}
    		proxy.sendHealthCheckRequest(req)
    		deltaReq := &discovery.DeltaDiscoveryRequest{TypeUrl: model.HealthInfoType}
    		if !healthEvent.Healthy {
    			deltaReq.ErrorDetail = &google_rpc.Status{
    				Code:    int32(codes.Internal),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. pilot/pkg/xds/adstest.go

    	t.Helper()
    	if req == nil {
    		req = &discovery.DiscoveryRequest{}
    	}
    	a.Request(t, req)
    	resp := a.ExpectResponse(t)
    	req.ResponseNonce = resp.Nonce
    	req.ErrorDetail = &status.Status{Message: "Test request NACK"}
    	a.Request(t, req)
    	return resp
    }
    
    func (a *AdsTest) WithID(id string) *AdsTest {
    	a.ID = id
    	return a
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. pilot/pkg/xds/deltaadstest.go

    	}
    	a.Request(req)
    	resp := a.ExpectResponse()
    	a.Request(&discovery.DeltaDiscoveryRequest{
    		Node:          req.Node,
    		TypeUrl:       req.TypeUrl,
    		ResponseNonce: req.ResponseNonce,
    		ErrorDetail:   &status.Status{Message: "Test request NACK"},
    	})
    	return resp
    }
    
    func (a *DeltaAdsTest) WithID(id string) *DeltaAdsTest {
    	a.ID = id
    	return a
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. pilot/pkg/xds/ads.go

    	if features.WorkloadEntryHealthChecks {
    		event := autoregistration.HealthEvent{}
    		event.Healthy = req.ErrorDetail == nil
    		if !event.Healthy {
    			event.Message = req.ErrorDetail.Message
    		}
    		s.WorkloadEntryController.QueueWorkloadEntryHealth(proxy, event)
    	}
    }
    
    // DeltaAggregatedResources is not implemented.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. pkg/apis/core/validation/validation_test.go

    		expectErr   bool
    		errorType   field.ErrorType
    		errorDetail string
    	}{
    		"valid SC, windows, no error": {
    			podSec:    &core.PodSpec{SecurityContext: validWindowsSC},
    			expectErr: false,
    		},
    		"invalid SC, windows, error": {
    			podSec:      &core.PodSpec{SecurityContext: invalidWindowsSC},
    			errorType:   "FieldValueForbidden",
    			errorDetail: "cannot be set for a windows pod",
    			expectErr:   true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top