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

GET http://ip:port/api/user/me/attributes 404 (NOT FOUND) #571

Open
zhangrj opened this issue Dec 22, 2021 · 2 comments
Open

GET http://ip:port/api/user/me/attributes 404 (NOT FOUND) #571

zhangrj opened this issue Dec 22, 2021 · 2 comments

Comments

@zhangrj
Copy link

zhangrj commented Dec 22, 2021

I'm install alerta in k8s use the following yaml:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: alerta
  namespace: alertmanager
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: alerta    
  template:
    metadata:
      labels:
        app.kubernetes.io/name: alerta
        app.kubernetes.io/version: 8.7.0
    spec:
      containers:
      - image: alerta/alerta-web:8.7.0
        name: alerta
        ports:
        - containerPort: 8080
          name: http
        env:
        - name: ADMIN_PASSWORD
          value: alerta
        - name: ADMIN_USERS
          value: admin
        volumeMounts:
        - name: config-volume
          mountPath: /app/alertad.conf
          subPath: alertad.conf
      nodeSelector:
        kubernetes.io/os: linux
      volumes:
      - name: config-volume
        configMap:
          name: alerta-config
apiVersion: v1
data:
  alertad.conf: |-
    DATABASE_URL = 'postgres://**:5432/alerta?user=app&password=alerta'
    PLUGINS = ['prometheus']
    SEVERITY_MAP = {
        'Emergency': 1,
        'Critical': 2,
        'Warning': 3,
        'Info': 4,
        'major': 9
    }
    DEFAULT_NORMAL_SEVERITY = 'Info'
    DEFAULT_PREVIOUS_SEVERITY = 'Warning'

    COLOR_MAP = {
        'severity': {
            'Emergency': 'red',
            'Critical': 'orange',
            'Warning': 'lightblue',
            'Info': 'white',
            'major': 'silver'
        },
        'text': 'black'
    }
    ALERT_TIMEOUT = 0
    DELETE_EXPIRED_AFTER = 0
    DELETE_INFO_AFTER = 0
kind: ConfigMap
metadata:
  name: alerta-config
  namespace: alertmanager
apiVersion: v1
kind: Service
metadata:
  name: alerta
  namespace: alertmanager
spec:
  type: NodePort
  ports:
  - name: http
    port: 8080
    targetPort: http
    nodePort: 31003
  selector:
    app.kubernetes.io/name: alerta

Everything working fine, but an error occur on the web UI, " 404 not Found",the URL is:
http://10.12.52.6:31003/api/user/me/attributes

Anyone can help me? Thanks!

@zhangrj
Copy link
Author

zhangrj commented Dec 23, 2021

Chrome is OK

@zhangrj
Copy link
Author

zhangrj commented Dec 23, 2021

The error occurs on Edge

@satterly satterly transferred this issue from alerta/docker-alerta Jun 22, 2023
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

1 participant