MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / safeFetch

Function safeFetch

apps/webapp/app/services/endpointApi.server.ts:431–440  ·  view source on GitHub ↗
(url: string, options: RequestInit)

Source from the content-addressed store, hash-verified

429}
430
431async function safeFetch(url: string, options: RequestInit) {
432 try {
433 return await fetch(url, addStandardRequestOptions(options));
434 } catch (error) {
435 logger.debug("Error while trying to connect to endpoint", {
436 url,
437 error,
438 });
439 }
440}
441
442function addStandardRequestOptions(options: RequestInit) {
443 return {

Callers 11

pingMethod · 0.85
indexEndpointMethod · 0.85
executeJobRequestMethod · 0.85
preprocessRunRequestMethod · 0.85
initializeTriggerMethod · 0.85
deliverWebhookRequestMethod · 0.85
validateMethod · 0.85
probeMethod · 0.85

Calls 3

debugMethod · 0.65
fetchFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…