1

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?

6
  • With this info is imposible help you...
    – Gawey
    Commented 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).
    – SCBuergel
    Commented 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 Dossa
    Commented May 23, 2017 at 19:56
  • @Sebastian i am using remix ide with metamask. Commented May 26, 2017 at 13:38
  • @AdamDossa my constructor has no arguments, funny enough. Commented May 26, 2017 at 13:39

1 Answer 1

1

enter image description here 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.

2
  • thanks, but thing is i am not using truffle. Commented Aug 1, 2017 at 23:33
  • Truffle interact with geth through web3. Maybe this will still help you.
    – Anderson
    Commented Aug 3, 2017 at 3:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.