Server: Unhandled promise rejection in jsunit tests

Created on 22 Jan 2019  路  1Comment  路  Source: nextcloud/server

We have a lot of those in the jsunit tests on master right now:

ERROR: 'Unhandled promise rejection', TypeError: undefined is not an object (evaluating 'fileList.isEmpty')
http://localhost:9876/base/apps/files_trashbin/tests/js/filelistSpec.js?5fd90656cff4f49039c67b7230239608a2d9fa60:351:21
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:47789
u@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:45231
fireWith@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:46034
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:47909
u@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:45231
fireWith@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:46034
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:39:48208
http://localhost:9876/base/core/js/files/client.js?45fcb98ff347716e68e4804dd65d22a9aee6777e:9:28741
o@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:53950
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:54095
u@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:51:98901
ERROR: 'Unhandled promise rejection', TypeError: undefined is not an object (evaluating 'fileList.findFileEl')
http://localhost:9876/base/apps/files_trashbin/tests/js/filelistSpec.js?5fd90656cff4f49039c67b7230239608a2d9fa60:333:21
o@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:53950
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:54095
u@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:51:98901
ERROR: 'Unhandled promise rejection', TypeError: undefined is not an object (evaluating 'fileList.findFileEl')
http://localhost:9876/base/apps/files_trashbin/tests/js/filelistSpec.js?5fd90656cff4f49039c67b7230239608a2d9fa60:371:21
o@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:53950
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:54095
u@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:51:98901
ERROR: 'Unhandled promise rejection', TypeError: undefined is not an object (evaluating 'fileList.isEmpty')
http://localhost:9876/base/apps/files_trashbin/tests/js/filelistSpec.js?5fd90656cff4f49039c67b7230239608a2d9fa60:393:21
o@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:53950
http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:46:54095
u@http://localhost:9876/base/core/js/dist/main.js?5eb97d6cf4ea8eaa6eff53f9a2a9ca1ae5ce0ca2:51:98901

@nextcloud/javascript Any idea? Might be related to the webpack bundling?

1. to develop bug javascript

>All comments

I have made a bisection and the problem was introduced in 07760b83fcf8778abaabedef290ccb166793fc26 @ChristophWurst

Was this page helpful?
0 / 5 - 0 ratings