i keep getting this error when i try deploying my contract to ropsten and the mainnet "callback contain no result Error: SyntaxError: Unexpected token < in JSON at position 0" can someone please help me?
-
With this info is imposible help you...– GaweyCommented May 23, 2017 at 15:16
-
add your full contract source and what steps you're doing to deploy it (remix? using metamask? web3 console in geth? etc).– SCBuergelCommented May 23, 2017 at 19:23
-
If I had to guess, I'd say that you've mis-formatted the constructor args to your contract. Depending how / where you're deploying from, if your contract requires constructor args you'd need to specify them correctly - e.g. enclose addresses with speech marks perhaps (error implies the first character is a <).– Adam DossaCommented May 23, 2017 at 19:56
-
@Sebastian i am using remix ide with metamask.– coderwithattitudeCommented May 26, 2017 at 13:38
-
@AdamDossa my constructor has no arguments, funny enough.– coderwithattitudeCommented May 26, 2017 at 13:39
|
Show 1 more comment
1 Answer
I met similar issue when deployed my contract to my private network and fixed it by remove .DS_Store file in build/ and build/contracts. This is an issue of Truffle. Check this .DS_Store files cause 'truffle compile' to fail and it can also be fixed by add a recursive search bash script.
-
-
Truffle interact with geth through web3. Maybe this will still help you.– AndersonCommented Aug 3, 2017 at 3:38