Yeah that is strange. I'm no longer getting the origin error, now a new error. I noticed there isn't a support email listed on the site, you'll need one of those if your serious.
Remote Address:104.28.17.62:80
Request URL:http://www.btccake.com/api/cakebet
Request Method:POST
Status Code:200 OK
Request:
{"btc":".005","cakesha":"e18fa58f093b6e6bd9f39ee73e7d258bc9671b89f4ad139792e7e9047385f155","wedge":"3","salt":"PinD4Ahb"}
Response:
{ "error": "[BTC Cake - Cake Bet] JSON bet input not recognized." }
Some client side code to deal with errors would be good. The spinner spins with no indication that anything happened. Unless you look at developer tools output you might think it's still processing.
First, thank you for the feedback! Apparently it can't handle ".005". Kinda odd, it must be "0.005", but no worries. I will fix this right now.
I can also inform you that I do have control on client side, and would show info there when placing a bet if something was wrong. As this error is more of a internal error that "shouldn't happen", it is not shown to the user. Besides, it wouldn't make sense to a user really. A user would wonder "What JSON bet input"?
Also, I do mention my email in a bunch of places though.
[email protected] currently. Might be something like
[email protected] later, but hey, I'm one guy working on this. Besides, I focus on important things first such as getting security in place and make it work properly. Anyway, you can use
[email protected] to get hold of me.
Thanks for that information though. I will get on fixing this rather annoying bug.
I also want to thank people that create cakes and test this out. It's fantastic feedback, and I put counter bets just to keep it interesting and test so it works. If anyone looses to me, I don't mind giving it back to you if you want, as this is just testing this out.