poanetwork / poa-popa

DApp for proof of physical address (PoPA) attestation for validators of POA Network
https://popa.poa.network
GNU General Public License v3.0
24 stars 18 forks source link

(Bug) Cant finish the process of the app #176

Closed SiddigZeidan closed 6 years ago

SiddigZeidan commented 6 years ago

After I fill out all the information (fake info ) and pay the MetaMask fee, I always receive the following screen

image

phahulin commented 6 years ago

The reason is that non-existent zip code was used (123456)

error returned by create_postcard: Error: to.address_zip is not a valid ZIP code or to must be a string

so for some reason verification didn't work https://github.com/poanetwork/poa-popa/blob/master/web-dapp/controllers/prepareRegTx.js#L60

fvictorio commented 6 years ago

When using a development account in POB, the zip code always has to be "11111" and the address "deliverable".

garatortiz commented 6 years ago

More info about address or primary line for test environment: https://lob.com/docs#us-verification-test-environment

phahulin commented 6 years ago

When using test API key for the post office service, address verification methods don't work (https://lob.com/docs#us-verification-test-environment)

The test API key does not perform any verification, automatic correction, or standardization for addresses.

However, when making request to send a postcard, verification is done and addresses with fake data are rejected. To run tests, please use "deliverable" and "11111" as suggested above https://github.com/poanetwork/poa-popa/issues/176#issuecomment-394826988

I'm going to close this because it's not a bug. This would need to be re-checked when final version is deployed and production API key is used.

Error message in UI will be improved a little in #182