Zendro-dev / graphql-server

Skeleton NodeJS project for a graphQL server.
GNU General Public License v3.0
0 stars 1 forks source link

Response from CSV-data-export hangs out (does not returns) #21

Open framirez07 opened 4 years ago

framirez07 commented 4 years ago

When the export data is requiered with model 'UserInfo', the browser keeps loading and does not returns.

On the server side, the following error message can be seen: (node:63) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Following image shows, in the left, how the browser keeps loading, and in the right, the full message from the server: image

This error points to line 155 of file server.js: image

From these error can be deduced that the promise returned by simpleExport() is being rejected for this particular model.

It should be noted that this does not happen with other models, such as the user model or role. Some of the differences between these models are that UserInfo model contains data types: DATE, DATETIME and TIME, and the other two does not.