joyent / conch-ui

Web UI for Conch (https://github.com/joyent/conch-api)
2 stars 5 forks source link

cannot change password #163

Closed karenetheridge closed 3 years ago

karenetheridge commented 4 years ago

endless spinner when submitting a new password at Profile -> Change Password.

The api logs say:

{
  "api_version": "v3.0.0-a7-0-g6d8d916a",
  "hostname": "conch-v3-staging",
  "latency": 146,
  "level": "info",
  "msg": "dispatch",
  "name": "conch-api",
  "pid": 1839,
  "req": {
    "headers": {
      "Accept": [
        "application/json, text/plain, */*"
      ],
      "Accept-Encoding": [
        "gzip, deflate, br"
      ],
      "Accept-Language": [
        "en-CA,en-GB;q=0.8,en-AU;q=0.6,en;q=0.4,en-US;q=0.2"
      ],
      "Authorization": "--REDACTED--",
      "Connection": [
        "upgrade"
      ],
      "Content-Length": [
        "20"
      ],
      "Content-Type": [
        "application/json;charset=utf-8"
      ],
      "Cookie": "--REDACTED--",
      "DNT": [
        "1"
      ],
      "Host": [
        "edge.conch.joyent.us"
      ],
      "User-Agent": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:69.0) Gecko/20100101 Firefox/69.0"
      ],
      "X-Forwarded-for": [
        ----
      ],
      "X-Real-IP": [
        ----
      ],
      "referer": [
        "https://edge.conch.joyent.us/"
      ],
      "x-conch-ui": [
        "v4.0.0-a3-0-gfa36af1"
      ]
    },
    "method": "POST",
    "query_params": {
      "clear_tokens": "0"
    },
    "remoteAddress": "----",
    "remotePort": "49750",
    "url": "/user/me/password?clear_tokens=0",
    "user": "ether@joyent.com (----)"
  },
  "req_id": "wYoQexVlfjiD",
  "res": {
    "body": {
      "data": {
        "clear_tokens": "0"
      },
      "details": [
        {
          "message": "Not in enum list: none, login_only, all.",
          "path": "/clear_tokens"
        }
      ],
      "error": "query parameters did not match required format",
      "schema": "/schema/query_params/change_password"
    },
    "headers": {
      "Cache-Control": [
        "no-cache"
      ],
      "Content-Type": [
        "application/json"
      ],
      "Request-Id": [
        "wYoQexVlfjiD"
      ],
      "Server": [
        "Mojolicious (Perl)"
      ],
      "X-Conch-API": [
        "v3.0.0-a7-0-g6d8d916a"
      ],
      "X-Request-Id": [
        "wYoQexVlfjiD"
      ]
    },
    "statusCode": 400
  },
  "time": "2019-10-16T17:21:49.152309Z",
  "v": 2
}
dustinryerson commented 3 years ago

This issue has been fixed on edge and will be deployed to production soon.