web icon indicating copy to clipboard operation
web copied to clipboard

fix: Keplr cannot connect

Open fadeev opened this issue 3 years ago • 5 comments

unknown1

unknown

123123

zxczc

(from Discord)

fadeev avatar Feb 23 '22 10:02 fadeev

@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.

mihailmarcu avatar Mar 08 '22 13:03 mihailmarcu

same problem eror connect using kepler

Screenshot_20220603_074450

avenbreaks avatar Jun 03 '22 00:06 avenbreaks

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 https://github.com/ignite/cli/commit/09edced5513445b635775b533701217a3e2126eb (probably later I will need to setup VITE_* env variables).

MariaPaypoint avatar Jun 23 '22 15:06 MariaPaypoint

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

amitkarpe avatar Oct 04 '22 10:10 amitkarpe

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

avenbreaks avatar Oct 08 '22 01:10 avenbreaks