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?

  • 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.eth 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
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.

| improve this answer | |
  • thanks, but thing is i am not using truffle. – coderwithattitude Aug 1 '17 at 23:33
  • Truffle interact with geth through web3. Maybe this will still help you. – Anderson Aug 3 '17 at 3:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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