assuming it is definitely before pads contact rim, and is not an issue with the calliper, ie: you can feel it in the cable when hand tested when not connected to calliper then some likely causes are:
– damaged cable under the tape (internal sleeve may have worn)
– acute bend in cable outer under tape (probably would have always felt bad unless caused internal wear like above)
– cable end not seating fully in barrel
– barrel not seating fully in lever
– damaged barrel/seat
Also make sure you check all the other cable entry/exit points for damaged ferrules or grit/foreign bodies etc. Noises and feelings can sometimes migrate and appear to be coming from one place when in fact it’s elsewhere.
I need this quick as I’m off to Flanders Friday and don’t have bar tape etc to re-cable etc..?
I know hindsight is great, but it’s for precisely these type of issues that I make sure I always have a full spare set of brake and gear cables for both MTB and road bike sitting in a box, along with a pair of new grips and bar tape (and chain/cassette as well actually!). It’s easy to have them on standby and then replace the ‘spares’ when you use them or spot a deal.