submission.mark_as_read() returns 403
See original GitHub issueMy 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:
- Created 8 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 adoc/
folder using runningnpm run docs
.)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.