Repository navigation
some tweaks to handling 304 Not Modified responses - #3421
Conversation
|
Looking at the original error log again, it seems like these are the two code paths that aren't being handled correctly: This one can be traced back to I believe this is the error that's being displayed to the user in #3399, which will be handled better now. This one is even more puzzling. Aside from storing an empty string instead of |
joshaber
left a comment
There was a problem hiding this comment.
Just one question around logging.
| log.warn(`fetchAll: '${path}' returned a 404`) | ||
|
|
||
| if (response.status === HttpStatusCode.NotModified) { | ||
| log.warn(`fetchMentionables: '${path}' returned a 304`) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🍎 |
Fixes #3399
fetchAll, if we've got a suspicious 304 let's log it and return an empty array insteaddeserialize<T>doesn't stringify correctly - let's only look at some of the fields we're interested in when deserializing content