You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Atom: 1.29.0 x64 Electron: 2.0.5 OS: Microsoft Windows 10 Pro Thrown From: ide-html package 0.4.2
Stack Trace
Uncaught Error: Message header must separate key and value using :
At C:\Users\Owner\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\messageReader.js:68
Error: Message header must separate key and value using :
at /packages/ide-html/node_modules/vscode-jsonrpc/lib/messageReader.js:68:23
at Array.forEach (<anonymous>)
at MessageBuffer.tryReadHeaders (/packages/ide-html/node_modules/vscode-jsonrpc/lib/messageReader.js:65:17)
at StreamMessageReader.onData (/packages/ide-html/node_modules/vscode-jsonrpc/lib/messageReader.js:194:43)
at /packages/ide-html/node_modules/vscode-jsonrpc/lib/messageReader.js:185:19)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
const clientID = '';
const redirectURI = 'http://localhost:3000/';
let accessToken;
const Spotify = {
// Check to see if accessToken is already set, or set it w/expiresIn
otherwise
getAccessToken() {
if(accessToken) {
return accessToken;
}
// Check URL if Access Token and expiresIn are set
const matchAccessToken =
window.location.href.match(/access_token=([^&]*)/);
const matchexpiresIn =
window.location.href.match(/expires_in=([^&]*)/);
if (matchAcessToken && matchexpiresIn) {
accessToken = matchAccessToken[1];
const expiresIn = Number(matchexpiresIn[1]);
// Set timeout; Wipe accessToken at expiresIn
window.setTimeout(() => accessToken = '', expiresIn * 1000);
// Clear parameters from URL to prevent the app from grabbing
accessToken after expiresIn
window.history.pushState('Access Token', null, '/');
}
}
}
export default Spotify;
*Devlin Verley II*
[email protected]
College of Continuing and Professional Studies
Bachelor of Applied Science, Manufacturing Operations Management
University of Minnesota-Twin Cities
[Enter steps to reproduce:]
Atom: 1.29.0 x64
Electron: 2.0.5
OS: Microsoft Windows 10 Pro
Thrown From: ide-html package 0.4.2
Stack Trace
Uncaught Error: Message header must separate key and value using :
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: