我已经使用grunt buildpack成功设置了我的heroku应用程序.当我将Node.js应用程序推送到heroku时,它将运行适当的grunt任务.
我想要的是使用'grunt-contrib-compass'包来编译我的.scss文件.但这需要指南针可执行,我不知道如何得到它.
我已经检查了heroku文档,并且看到了一个过时的文档,描述了使用ruby设置指南针 ...但我还没有看到任何最近的文档用于设置Node.js.
有任何想法吗?
这是我在 stackoverflow 上的第一篇文章。就到这里了。
我构建了一个服务器端 PHP 应用程序,它涉及读取/更改一个用户的 YouTube 帐户(更改字幕文件)。用户已通过 OAuth 2 进行身份验证。我一直在存储 refresh_token 并在 access_token 过期时成功发出刷新请求。
但是现在,我似乎遇到了一个错误,这恰好与两件事相关:
我不知道这是否意味着什么。
尝试刷新访问令牌时发生错误,我使用与以前相同的刷新令牌的方式。以下是详细信息:
错误信息:
[status code] 400
[reason phrase] Bad Request
[url] https://accounts.google.com/o/oauth2/token
[request] POST /o/oauth2/token HTTP/1.1
Host: accounts.google.com
User-Agent: Guzzle/2.8.6 curl/7.24.0 PHP/5.3.10
Content-Type: application/x-www-form-urlencoded
client_id=442147492209.apps.googleusercontent.com&client_secret=D7eLQ5b0Mo1Y8uZ30ReWYwls&grant_type=refresh_token&refresh_token=1%2FCLvAt8V_d9sZznpg5YZdJlOJ58ufbHKL4F5Lw8PiJOg
[response] HTTP/1.1 400 Bad Request
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Date: Tue, 02 Oct 2012 16:28:24 GMT
Content-Type: application/json
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block …Run Code Online (Sandbox Code Playgroud) compass-sass ×1
gruntjs ×1
heroku ×1
node.js ×1
oauth-2.0 ×1
pyo3 ×1
python ×1
rust ×1
youtube-api ×1