Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login locally when running node #91

Open
geoguide opened this issue Dec 29, 2021 · 5 comments
Open

Can't login locally when running node #91

geoguide opened this issue Dec 29, 2021 · 5 comments

Comments

@geoguide
Copy link

I waited overnight to catchup on blocks because I figured it was because I was behind, but when I try to sign in nothing happens on the front-end. I see a flurry of requests on the log but the login window closes and I still see the unauthenticated view.

nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:36 +0000] "GET /api/v0/get-exchange-rate HTTP/1.1" 200 408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:36 +0000] "OPTIONS /api/v0/get-app-state HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:36 +0000] "POST /api/v0/get-app-state HTTP/1.1" 200 2902 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-users-stateless HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/delete-identities HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 1723 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/delete-identities HTTP/1.1" 200 3 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "GET /api/v0/get-exchange-rate HTTP/1.1" 200 408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-app-state HTTP/1.1" 200 2902 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 1106 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-next-nft-showcase HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-posts-stateless HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-posts-stateless HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-next-nft-showcase HTTP/1.1" 200 28 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-posts-stateless HTTP/1.1" 200 18 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-posts-stateless HTTP/1.1" 200 18 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "OPTIONS /api/v0/get-profiles HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 33519 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 22091 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 26341 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 34242 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 17658 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 2955 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-profiles HTTP/1.1" 200 6745 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:37 +0000] "POST /api/v0/get-users-stateless HTTP/1.1" 200 16527 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
backend   | I1229 16:18:38.966817       1 base.go:250] Refreshing exchange rate...
backend   | I1229 16:18:40.751778       1 base.go:189] Blockchain exchange rate: 10100 [10100 10100 10100 10100 10100 10100 10100 10100 10100 10100]
backend   | I1229 16:18:40.751858       1 base.go:254] Blockchain.com price (USD cents): 10100
backend   | I1229 16:18:40.767773       1 base.go:261] Coinbase price (USD Cents): 10079
backend   | I1229 16:18:40.767881       1 base.go:288] Final exchange rate: 10730
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:41 +0000] "GET /api/v0/get-exchange-rate HTTP/1.1" 200 408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
nginx     | 172.18.0.1 - - [29/Dec/2021:16:18:41 +0000] "POST /api/v0/get-app-state HTTP/1.1" 200 2902 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"

image

@tijno
Copy link
Contributor

tijno commented Dec 29, 2021

what do /api/v0/health-check and /api/v0/get-exchange-rate return ?

do you want to share your url so i can test to see where its breaking ?

also - what do you see in network tab of webdev tools for xhr requests?

@geoguide
Copy link
Author

what do /api/v0/health-check and /api/v0/get-exchange-rate return ?

do you want to share your url so i can test to see where its breaking ?

also - what do you see in network tab of webdev tools for xhr requests?

{"SatoshisPerDeSoExchangeRate":221778,"USDCentsPerBitcoinExchangeRate":4757136,"NanosPerETHExchangeRate":35583317535,"USDCentsPerETHExchangeRate":375404,"NanosSold":8340814265238791,"USDCentsPerDeSoExchangeRate":10550,"USDCentsPerDeSoReserveExchangeRate":0,"BuyDeSoFeeBasisPoints":0,"SatoshisPerBitCloutExchangeRate":221778,"USDCentsPerBitCloutExchangeRate":10550,"USDCentsPerBitCloutReserveExchangeRate":0}
{
  "error": "Waiting for blockchain to sync. Height: 17731, SyncState: SYNCING_BLOCKS"
}

looks like it's resyncing all the blocks?

image

@maebeam
Copy link
Contributor

maebeam commented Dec 30, 2021

Could you look at your browser's javascript console please?

@pangia
Copy link

pangia commented Dec 30, 2021

check your caddyfile. make sure "deso.run:*" is in the list as a valid connect-src.

@starykolarz
Copy link

Had similar issue; adding deso.org node.deso.org api.deso.org to caddyfile solved it
There are also errors on altumbase calls - added that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants