l3wi / satoshiDemo

SatoshiPay demo in IOTA
MIT License
5 stars 4 forks source link

Wallet funding never happens #11

Closed erasmus closed 7 years ago

erasmus commented 7 years ago

Device: macOS Sierra, version 10.12.6

Browsers:

What happens?


  1. I access the demo on https://iotapay.now.sh and click "Fund the Channel"
  2. Loading spinner arrives and in my activity monitor I can see CPU for a Chrome helper (or similar service depending on browser) increase to around 20% for a while.
  3. Spinner keeps spinning. In console log, something like the below error is thrown:

    Fetch API cannot load https://faucet.tangle.works/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://iotapay.now.sh' is therefore not allowed access. The response had HTTP status code 502. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

  4. Funds never arrive.
meinharrd commented 7 years ago

@l3wi same here, no funds after i click "Fund the Channel". i get this as response body from the faucet:

An error occured with your deployment

you can replay my request using this:

curl 'https://faucet.tangle.works/' -H 'origin: https://iotapay.now.sh' -H 'dnt: 1' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-GB,en;q=0.8,en-US;q=0.6,de;q=0.4' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36' -H 'content-type: text/plain;charset=UTF-8' -H 'accept: */*' -H 'referer: https://iotapay.now.sh/' -H 'authority: faucet.tangle.works' --data-binary '{"address":"XZRMWGDMUWMNOVVNGDI9GZYDJDEZJEZKLIYJQLGAZEGP9LWMYALPUMHXCKCPIBOZMVIZZFZJWSFHNAZDB"}' --compressed
l3wi commented 7 years ago

Migrated faucet from Now.sh to dedicated VPS and the cors error has appeared to be fixed.

erasmus commented 7 years ago

works here