我在一个项目文件夹下使用cf push命名进行部署,遇到如下错误:
RESPONSE: [2019-04-19T15:55:02+08:00]HTTP/1.1 401 Unauthorized Cache-Control: no-store Content-Length: 109 Content-Type: application/json; charset=UTF-8Date: Fri, 19 Apr 2019 07:55:01 GMTPragma: no-cache Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;Www-Authenticate: Bearer error=“invalid_token”, error_description="The token expired, was revoked, or the tokID is incorrect. X-Content-Type-Options: nosniffX-Frame-Options: DENY x-Vcap-Request-Id: f4463016-944b-47f3-4fb5-5e1c7b6dd205X-Xss-Protection: 1; mode-block१ “error”: “invalid_token”, “error_description”: "The token expired, was revoked, or the token ID is incorrect.
解决方式是使用cf login重新登录对应的endpoint:
问题解决: