Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 1

401 Unauthorized Error when Creating a New Issue

I'm following this tutorial:

Using the GitHub API in your app

 

But when I get to the last part in step two which is to create an issue to see if the changes in template_server.rb are working correctly, I get an unauthorized error

C:\Users\arman\Documents\Research\EyeTracking\plugin-app\using-the-github-api-in-your-app>smee --url https://smee.io/riknbep7tLUBxxx --path /event_handler --port 3000
Forwarding https://smee.io/riknbep7tLUBxxx to http://127.0.0.1:3000/event_handler
Connected https://smee.io/riknbep7tLUBxxx
{ Error: Unauthorized
    at Request.callback (C:\Users\arman\AppData\Roaming\npm\node_modules\smee-client\node_modules\superagent\lib\node\index.js:706:15)
    at IncomingMessage.parser (C:\Users\arman\AppData\Roaming\npm\node_modules\smee-client\node_modules\superagent\lib\node\index.js:916:18)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  status: 401

I thought this was maybe due to incorrect permissions, but I double-checked with what permissions are supposed to be set for the app, and mine looks to be the same. Any ideas of how to fix this problem?