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

Function apiClientMissingError

packages/trigger-sdk/src/v3/shared.ts:754–766  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

752}
753
754export function apiClientMissingError() {
755 const hasBaseUrl = !!apiClientManager.baseURL;
756 const hasAccessToken = !!apiClientManager.accessToken;
757 if (!hasBaseUrl && !hasAccessToken) {
758 return `You need to set the TRIGGER_API_URL and TRIGGER_SECRET_KEY environment variables.`;
759 } else if (!hasBaseUrl) {
760 return `You need to set the TRIGGER_API_URL environment variable.`;
761 } else if (!hasAccessToken) {
762 return `You need to set the TRIGGER_SECRET_KEY environment variable.`;
763 }
764
765 return `Unknown error`;
766}

Callers 15

listRunsFunction · 0.90
retrieveRunFunction · 0.90
replayRunFunction · 0.90
cancelRunFunction · 0.90
uploadFunction · 0.90
listFunction · 0.90
createFunction · 0.90
retrieveFunction · 0.90
delFunction · 0.90
updateFunction · 0.90
createFunction · 0.90
retrieveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…