Got weird error on deployProxy after changing nothing

I had been testing out upgradeable contracts when I got this error in migrations when using deployProxy after changing absolutely nothing:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)

I was digging around through the internet and found someone that suggested deleting .openzeppelin/<network>.json, and this did the trick.

1 Like