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.
2 parents d3d7f42 + 298e0b5 commit d9ecc69Copy full SHA for d9ecc69
src/mcp/tools/challenges/queryChallenges.tool.ts
@@ -54,6 +54,11 @@ export class QueryChallengesTool {
54
this.logger.error(
55
`Failed to fetch challenges from Topcoder API: ${challenges.statusText}`,
56
);
57
+ try {
58
+ this.logger.error(await challenges.json());
59
+ } catch (e) {
60
+ this.logger.error('Failed to log challenge error');
61
+ }
62
63
// Return an error response if the API call fails
64
return {
@@ -108,7 +113,7 @@ export class QueryChallengesTool {
108
113
},
109
114
};
110
115
} catch (error) {
111
- this.logger.error(`Error fetching challenges: ${error.message}`);
116
+ this.logger.error(`Error fetching challenges: ${error.message}`, error);
112
117
118
content: [
119
{
0 commit comments