ignite / web

Monorepo for packages used by Ignite CLI, including a template, component library and a set of Vuex modules

Home Page:https://ignite.com/cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: Keplr cannot connect

fadeev opened this issue · comments

unknown1

unknown

123123

zxczc

(from Discord)

@fadeev as mentioned in our meeting, I am coming with an update here:
— The scenarios that I was able to reproduce are the following: if we are trying to connect to the Keplr and there is not a single account in the wallet we get this error. We do not display the corresponding message that will help to understand what is the reason. I know that we have several scenarios when this error occurs, so we cannot solve it right away, since we need to foresee all possible scenarios when this error occurs.

Suggest keeping the issue open until we find all possible scenarios and then plan the refactoring.

same problem eror connect using kepler

Screenshot_20220603_074450

commented

I have found a workaround to this problem (if it's cause is starting ignite not in localhost): it's need to set environment variables.

This is my example of yaml to start ignite in Kubernetes:

apiVersion: v1
kind: Pod
metadata:
  name: ignite-pod
  namespace: test
  labels:
    app.kubernetes.io/name: ignite-pod
spec:
  securityContext:
    runAsUser: 0
    runAsGroup: 0
    fsGroup: 0
  containers:
    - name: ignite
      image: ignitehq/cli
      command: ['sleep', '172800']
      env:
        - name: VUE_APP_CUSTOM_URL
          value: "http://192.168.100.64:30018"
        - name: VUE_APP_API_COSMOS
          value: "http://192.168.100.64:30014"
        - name: VUE_APP_API_TENDERMINT
          value: "http://192.168.100.64:30010"
        - name: VUE_APP_WS_TENDERMINT
          value: "ws://192.168.100.64:30010/websocket"

---

apiVersion: v1
kind: Service
metadata:
  name: ignite-service
  namespace: test
spec:
  type: NodePort
  selector:
    app.kubernetes.io/name: ignite-pod
  ports:
  
  - name: port-api-tendermint
    protocol: TCP
    port: 26657
    targetPort: 26657
    nodePort: 30010
    
  - name: port-api-cosmos
    protocol: TCP
    port: 1317
    targetPort: 1317
    nodePort: 30014
    
  - name: port-npm-run-dev
    protocol: TCP
    port: 3000
    targetPort: 3000
    nodePort: 30018

P.S. I found a hint here ignite/cli@09edced (probably later I will need to setup VITE_* env variables).

Hi,

Using env variable I was able to solve this problem:

export ADDRESS="1.2.3.4"
export VITE_CUSTOM_URL="http://${ADDRESS}"
export API_ADDRESS="http://${ADDRESS}:1317"
export RPC_ADDRESS="http://${ADDRESS}:26657"
export CHISEL_ADDR="http://${ADDRESS}:7575"
export VITE_API_COSMOS=${API_ADDRESS}
export VITE_API_TENDERMINT=${RPC_ADDRESS}
export VITE_WS_TENDERMINT=${RPC_ADDRESS/https/wss}/websocket

For more info check:
https://github.com/ignite/cli/blob/develop/.gitpod.yml

Hai,

Menggunakan variabel env saya dapat memecahkan masalah ini:

export ADDRESS="1.2.3.4"
export VITE_CUSTOM_URL="http://${ADDRESS}"
export API_ADDRESS="http://${ADDRESS}:1317"
export RPC_ADDRESS="http://${ADDRESS}:26657"
export CHISEL_ADDR="http://${ADDRESS}:7575"
export VITE_API_COSMOS=${API_ADDRESS}
export VITE_API_TENDERMINT=${RPC_ADDRESS}
export VITE_WS_TENDERMINT=${RPC_ADDRESS/https/wss}/websocket

Untuk info lebih lanjut, periksa: https://github.com/ignite/cli/blob/develop/.gitpod.yml

thankyou