We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2793e5 commit c4a8ab0Copy full SHA for c4a8ab0
src/lib/clients/http_client.ts
@@ -87,6 +87,10 @@ export abstract class ContestSiteApiClient {
87
errorMessage,
88
validateResponse,
89
}: FetchAPIConfig<T>): Promise<T> {
90
+ if (!baseApiUrl) {
91
+ throw new Error('baseApiUrl is required when using ContestSiteApiClient');
92
+ }
93
+
94
try {
95
const url = new URL(endpoint, baseApiUrl).toString();
96
const data = await fetchAPI<T>(url, errorMessage);
0 commit comments