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... – Gawey May 23 '17 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). – SCBuergel May 23 '17 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 Dossa May 23 '17 at 19:56
-
@Sebastian i am using remix ide with metamask. – coderwithattitude May 26 '17 at 13:38
-
@AdamDossa my constructor has no arguments, funny enough. – coderwithattitude May 26 '17 at 13:39
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. – Anderson Aug 3 '17 at 3:38