overwatch-api
overwatch-api copied to clipboard
Fix `message` value on error responses
https://github.com/alfg/overwatch-api/blob/6e3ae07431d2ba1ef5f5aba7a1d4774f3ec4d9ad/server/routes/owl/standings.js#L29
this line leads to { message: [object Object] } as a response. I think you must change to err.message or just drop the .toString() call
Ah, good catch. I think the OWL endpoint https://api.overwatchleague.com/v2/standings was probably returning a bad response. This happens sometimes when the server gets rate limited.
I'll probably update this to a generic error response message.