(provider, context)
| 74517 | return null; |
| 74518 | } |
| 74519 | try { |
| 74520 | return new URL(baseURL).host; |
| 74521 | } catch { |
| 74522 | return null; |
| 74523 | } |
| 74524 | } |
| 74525 | function getServiceUnavailableMessage(provider, context) { |
| 74526 | const endpointLabel = getCustomEndpointLabel(context?.baseURL); |
| 74527 | if (endpointLabel) { |
| 74528 | return `The configured API endpoint (${endpointLabel}) is temporarily unavailable.`; |
| 74529 | } |
| 74530 | if (context?.baseURL) { |
| 74531 | return "The configured API endpoint is temporarily unavailable."; |
no test coverage detected
searching dependent graphs…