These are chat archives for BVNK/bank
So, for the first issue, setting this up is actually not that hard, and can be easily automated, but…Kyle, I have the bank, server and client up and running, but after sending a request:
0~acmt~1~Kyle~Redelinghuysemail@example.com~Physical Address 1~~~1000
The only response I get from the server is: 1~”"
No user id.
I see that in server.go, in the processCommand function, line 145, you call CheckToken and that’s where it’s actually returning.
I printed our the error of CheckToken and I get:
Error: appauth.CheckToken: Token not found. redis: nil
Not sure what that means, because redis is running and on configuration.go, I printed out the output of the redis configuration and it’s correct.
So @ksred, I’ve run the http server and sent a create account request, but it hangs. After a few seconds I cancel the request and I still see nothing on the terminal. But about 20 seconds later, I see the following terminal output:
[0 acmt 1 Test User1 1900-01-01 19000101-1234-124 (555) 555-1234 (555) 555-4321 firstname.lastname@example.org Address 1 Address 2 Address 3 1234]
I might be doing something wrong
curl -X POST -H "Cache-Control: no-cache" -H "Postman-Token: 2526bd05-5d4b-7ca6-509b-320f8c4214f7" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "AccountHolderGivenName=Test" -F "AccountHolderFamilyName=User1" -F "AccountHolderDateOfBirth=1900-01-01" -F "AccountHolderIdentificationNumber=19000101-1234-124" -F "AccountHolderContactNumber1=(555) 555-1234" -F "AccountHolderContactNumber2=(555) 555-4321" -F "AccountHolderEmailAddressemail@example.com" -F "AccountHolderAddressLine1=Address 1" -F "AccountHolderAddressLine2=Address 2" -F "AccountHolderAddressLine3=Address 3" -F "AccountHolderPostalCode=1234" "https://bvnk.co:8443/account”
select * from accounts \G
mysql -u USER -p bank < sql/1-xxx.sql
Foudn out my setup was hanging because I set mysql host to 126.96.36.199 instead of the loopback. facepalm took me forever. Anyway, done with the sql import script. I placed it in a scripts directory. Eventually I intend to add a single setup script there that will do all the setup.
I setup my repo here, https://github.com/figassis/bank