opentrace-community / opentrace-android

OpenTrace Android app. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
577 stars 225 forks source link

Invalid Pin on upload section #21

Closed shedevsn closed 4 years ago

shedevsn commented 4 years ago

I get invalid pin when a put the pin for upload. I use storeUploadCodes() to store the pin and i can see in firestore the Crypted code but when i enter it in the app it still write invalid pin. I changed the format date to 'yyyyMMdd' under uploadToCloudStorage in EnterPinFragment.kt but i still get invalid pin.

rinekri commented 4 years ago

@shedevsn I got the same error until I added trimming logic https://github.com/opentrace-community/opentrace-android/issues/12#issuecomment-613424603

Maybe it will help you too.

shedevsn commented 4 years ago

getUploadToken.kt or getUploadToken.ts i can't find the file (getUploadToken.kt) so i add it in getUploadToken.ts but it doesn't work

rinekri commented 4 years ago

@shedevsn then you can add an exception logging in the client upload logic and see what happened. It can help you investigate and fix your problem more efficiently.