Glyciant / PurplePlus

Purple+ is a promotion platform related to the /r/Twitch Subreddit. Its purpose is to give everyone a chance to be recognised for their uniqueness and achievements.
12 stars 0 forks source link

Unlinking Discord Causes Error #53

Closed Glyciant closed 7 years ago

Glyciant commented 7 years ago

Unlinking Discord accounts causes this error:

 Error: Can't set headers after they are sent.
      at validateHeader (_http_outgoing.js:489:11)
      at ServerResponse.setHeader (_http_outgoing.js:496:3)
      at ServerResponse.header (/data/purple-plus/node_modules/express/lib/response.js:730:10)
      at ServerResponse.location (/data/purple-plus/node_modules/express/lib/response.js:847:15)
      at ServerResponse.redirect (/data/purple-plus/node_modules/express/lib/response.js:885:18)
      at /data/purple-plus/routes/auth/unlink.js:93:15
      at <anonymous>
      at process._tickDomainCallback (internal/process/next_tick.js:228:7)