the original warranty was 1 year, unless you bought (or was included in your price) the extended warranty which is 5 years. but you'd have to read the print, i'm sure there's plenty of things 'NOT' covered, so they limit their liability.
hope you get it fixed right, and doesn't cost too much out of pocket.
2017 Honda Rebel 500
2018 KTM Duke 390