question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

submission.mark_as_read() returns 403

See original GitHub issue

My input:

r.get_new( "my sub" ).then( function (posts) {
  posts.forEach(function (post) {
    post.mark_as_read();
  });
});

Answer:

Unhandled rejection StatusCodeError: 403 - [object Object]
    at new StatusCodeError (C:\Sites\mine\node_modules\snoowrap\node_modules\request-promise\lib\errors.js:26:15)
    at Request.RP$callback [as _callback] (C:\Sites\mine\node_modules\snoowrap\node_modules\request-promise\lib\rp.js:68:32)
    at Request.self.callback (C:\Sites\mine\node_modules\snoowrap\node_modules\request-promise\node_modules\request\request.js:199:22)
    at emitTwo (events.js:100:13)
    at Request.emit (events.js:185:7)
    at Request.<anonymous> (C:\Sites\mine\node_modules\snoowrap\node_modules\request-promise\node_modules\request\request.js:1036:10)
    at emitOne (events.js:95:20)
    at Request.emit (events.js:182:7)
    at IncomingMessage.<anonymous> (C:\Sites\mine\node_modules\snoowrap\node_modules\request-promise\node_modules\request\request.js:963:12)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
    at _combinedTickCallback (node.js:377:13)
    at process._tickCallback (node.js:401:11)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
not-an-aardvarkcommented, Mar 14, 2016

Thanks for the suggestions – I’ve actually been meaning to do code examples for awhile. I started adding them here, but there are still a bunch more to go. Feel free to help out with adding them, if you’d like.

(The documentation is generated automatically from inline comments like these. After cloning the repository and doing npm install, you can build the documentaion to a doc/ folder using running npm run docs.)

1reaction
not-an-aardvarkcommented, Mar 13, 2016

I think that API endpoint is only accessible to accounts that have a reddit gold subscription – could that be the issue?

(I should probably have noted that in the documentation.)

edit: Just added a note about this in the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Forbidden on form submission - Stack Overflow
My solution: it sounds like you are not urlencoding the URL you're passing before you embed it in the URL of the script...
Read more >
403 Forbidden - HTTP - MDN Web Docs - Mozilla
The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.
Read more >
HTTP Error 403 Forbidden Messages: What They Are & How ...
A 403 Forbidden error is an HTTP status code sent to users by an HTTP server when a user tries to access a...
Read more >
How do I troubleshoot HTTP 403 errors from API Gateway?
To troubleshoot 403 errors returned by a custom domain name that requires mutual TLS and invokes an HTTP API, you must do the...
Read more >
Qlik SAAS SharePoint connector 403 error when tryi... - 1919964
You might encounter a 403 error when trying to select data from a new created SharePoint connection in Qlik Sense SAAS: This error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found