Skip to content

"Token expired or app not enabled! Reload the page!" when scrolling news feed. #558

@ghost

Description

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

Explain the Problem

Attempting to scroll through my news feed results in "Token expired or app not enabled! Reload the page!" appearing at the top of the screen. News items are no longer marked as read if I continue to scroll and the same console error repeats as listed below.

This is an issue that I've had for months and never had time to look into. Using the mobile Nextcloud News app works fine and properly marks items as viewed when scrolling through the news list. But using it through the Nextcloud website renders it unusable because of the Token expired errors.

Steps to Reproduce

Explain what you did to encounter the issue

  1. Open News app.
  2. Scroll through a few items until errors start occuring.
  3. (There is no step 3.)

System Information

  • News app version: 14.0.0, but has been happening on all recent versions within the last year.
  • Nextcloud version: 16.0.5 but was also seen on every version prior.
  • Cron type: System cron.
  • PHP version: 7.2 and 7.3
  • Database and version: mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using EditLine wrapper
  • Browser and version: All, currently Google Chrome Version 77.0.3865.90 (Official Build) (64-bit)
  • Distribution and version: Ubuntu Server 18.04 LTS

Contents of nextcloud/data/nextcloud.log

{"reqId":"kqhRgtY2dKHGrQc4hfzr","level":1,"time":"2019-10-10T07:23:48+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"the stream is modified, parsing it","userAgent":"--","version":"16.0.5.1"}
{"reqId":"kqhRgtY2dKHGrQc4hfzr","level":1,"time":"2019-10-10T07:23:48+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"correct last modified date for feed Kotaku","userAgent":"--","version":"16.0.5.1"}
{"reqId":"kqhRgtY2dKHGrQc4hfzr","level":1,"time":"2019-10-10T07:23:48+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"correct public id for node Kotaku","userAgent":"--","version":"16.0.5.1"}
{"reqId":"h718WD2EmgTM4V2qocjj","level":1,"time":"2019-10-10T07:23:48+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"the stream is modified, parsing it","userAgent":"--","version":"16.0.5.1"}

{"reqId":"gDtClqscmy8gflVY6vLd","level":1,"time":"2019-10-10T07:23:48+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"the stream is modified, parsing it","userAgent":"--","version":"16.0.5.1"}
{"reqId":"gDtClqscmy8gflVY6vLd","level":1,"time":"2019-10-10T07:23:48+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"correct public id for node Libretro","userAgent":"--","version":"16.0.5.1"}

{"reqId":"zB2E4KCcxa7E0z8mMLYc","level":1,"time":"2019-10-10T07:23:49+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"the stream is modified, parsing it","userAgent":"--","version":"16.0.5.1"}

Contents of Browser Error Console

Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here


angular.min.js:113 POST https://zerojay.com/nextcloud/index.php/apps/news/items/read/multiple 412
(anonymous) @ angular.min.js:113
y @ angular.min.js:108
(anonymous) @ angular.min.js:105
(anonymous) @ angular.min.js:140
$digest @ angular.min.js:151
$apply @ angular.min.js:155
(anonymous) @ NewsScroll.js:62
(anonymous) @ NewsScroll.js:95
(anonymous) @ angular.min.js:169
Zt.completeTask @ angular.min.js:166
(anonymous) @ angular.min.js:52
setTimeout (async)
d.defer @ angular.min.js:51
a @ angular.min.js:169
u @ NewsScroll.js:94
dispatch @ jquery.js:4435
_.handle @ jquery.js:4121
angular.min.js:127 Possibly unhandled rejection: {"data":{"message":"CSRF check failed"},"status":412,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/nextcloud/index.php/apps/news/items/read/multiple","data":{"itemIds":[10893]},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8","requesttoken":"iWLoAvjPkv2jPvU2bTrxlzLtWoHNXKbMYuyjHvIbjFU=:4zK5cK+4oJbZSMVTCXWS5n/UOOz9LNG0Ta7aUp535TM="}},"statusText":"","xhrStatus":"complete"}
(anonymous) @ angular.min.js:127
(anonymous) @ angular.min.js:99
u @ angular.min.js:139
$digest @ angular.min.js:151
$apply @ angular.min.js:155
(anonymous) @ angular.min.js:106
y @ angular.min.js:111
$.onload @ angular.min.js:112
load (async)
(anonymous) @ angular.min.js:111
y @ angular.min.js:108
(anonymous) @ angular.min.js:105
(anonymous) @ angular.min.js:140
$digest @ angular.min.js:151
$apply @ angular.min.js:155
(anonymous) @ NewsScroll.js:62
(anonymous) @ NewsScroll.js:95
(anonymous) @ angular.min.js:169
Zt.completeTask @ angular.min.js:166
(anonymous) @ angular.min.js:52
setTimeout (async)
d.defer @ angular.min.js:51
a @ angular.min.js:169
u @ NewsScroll.js:94
dispatch @ jquery.js:4435
_.handle @ jquery.js:4121
notification.js:67 Missing argument $row in OC.Notification.hide() call, caller needs to be adjusted to only dismiss its own notification

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions