Skip to content

Instantly share code, notes, and snippets.

@Entrio
Created June 18, 2018 17:51
Show Gist options
  • Save Entrio/ecd62eacb6b8e93c214b5a191bbff622 to your computer and use it in GitHub Desktop.
Save Entrio/ecd62eacb6b8e93c214b5a191bbff622 to your computer and use it in GitHub Desktop.
HTTP Response Body
<!DOCTYPE html><html><head><title></title></head><body><h1>Cannot use 'in' operator to search for 'expires_at' in &lt;html&gt;
&lt;head&gt;&lt;title&gt;301 Moved Permanently&lt;/title&gt;&lt;/head&gt;
&lt;body bgcolor=&quot;white&quot;&gt;
&lt;center&gt;&lt;h1&gt;301 Moved Permanently&lt;/h1&gt;&lt;/center&gt;
&lt;hr&gt;&lt;center&gt;nginx&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;
</h1><h2></h2><pre>TypeError: Cannot use 'in' operator to search for 'expires_at' in &lt;html&gt;
&lt;head&gt;&lt;title&gt;301 Moved Permanently&lt;/title&gt;&lt;/head&gt;
&lt;body bgcolor=&quot;white&quot;&gt;
&lt;center&gt;&lt;h1&gt;301 Moved Permanently&lt;/h1&gt;&lt;/center&gt;
&lt;hr&gt;&lt;center&gt;nginx&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;
at parseTokenDateProperties (/usr/src/app/node_modules/simple-oauth2/lib/client/parse-token.js:11:20)
at new AccessToken (/usr/src/app/node_modules/simple-oauth2/lib/client/access-token.js:17:18)
at Object.createAccessToken [as create] (/usr/src/app/node_modules/simple-oauth2/lib/client/access-token.js:25:12)
at oauth2.clientCredentials.getToken.then (/usr/src/app/routes/introspect.js:46:34)
at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/usr/src/app/node_modules/bluebird/js/release/promise.js:454:14)
at Promise._settlePromiseFromHandler (/usr/src/app/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/usr/src/app/node_modules/bluebird/js/release/promise.js:638:18)</pre></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment