Chemical pregnancy on depo?

Kayla

Got my first depo shot first week of Nov, husband came home 3rd week in Nov, had some random nausea a few days ago took a test saw a line (it was pink in person and came up within the timeframe) then had spotting and negative tests ever since. Could this have been a chemical pregnancy or just a bad test? Also is there a chance my shot isn’t working?