Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task import from CSV fails #323

Closed
mountaindude opened this issue Oct 7, 2023 · 1 comment · Fixed by #321 · May be fixed by #470
Closed

Task import from CSV fails #323

mountaindude opened this issue Oct 7, 2023 · 1 comment · Fixed by #321 · May be fixed by #470
Milestone

Comments

@mountaindude
Copy link
Contributor

What version of Ctrl-Q are you using?

3.13.2 pre

What version of Node.js are you using? Not applicable if you use the standalone version of Ctrl-Q.

18.18.0

What command did you use to start Ctrl-Q?

node ./src/ctrl-q.js task-import --auth-type cert --host --auth-user-dir

--auth-user-id --file-type csv --file-name reload-tasks.csv

What operating system are you using?

Linux

What CPU architecture are you using?

x86_64

What Qlik Sense versions are you using?

2023-May-p6

Describe the Bug

2023-10-07T06:15:40.575Z info: -----------------------------------------------------------
2023-10-07T06:15:40.578Z info: | Ctrl-Q
2023-10-07T06:15:40.578Z info: | 
2023-10-07T06:15:40.579Z info: | Version      : 3.13.2
2023-10-07T06:15:40.579Z info: | Log level    : verbose
2023-10-07T06:15:40.579Z info: | 
2023-10-07T06:15:40.579Z info: | Command      : task-import
2023-10-07T06:15:40.580Z info: |              : create tasks based on definitions in a file on disk, optionally also importing apps from QVF files.
2023-10-07T06:15:40.580Z info: | 
2023-10-07T06:15:40.580Z info: | Run Ctrl-Q with the '--help' option to see a list of all available options for this command.
2023-10-07T06:15:40.581Z info: | 
2023-10-07T06:15:40.581Z info: | https://github.com/ptarmiganlabs/ctrl-q
2023-10-07T06:15:40.581Z info: ----------------------------------------------------------
2023-10-07T06:15:40.582Z info: 
2023-10-07T06:15:40.582Z verbose: Ctrl-Q was started as a stand-alone binary: false
2023-10-07T06:15:40.582Z verbose: Ctrl-Q was started from /home/goran/code/ctrl-q
2023-10-07T06:15:40.582Z verbose: Options: {
  "logLevel": "verbose",
  "port": "4242",
  "schemaVersion": "12.612.0",
  "virtualProxy": "",
  "secure": true,
  "authType": "cert",
  "authCertFile": "./cert/client.pem",
  "authCertKeyFile": "./cert/client_key.pem",
  "authRootCertFile": "./cert/root.pem",
  "fileType": "csv",
  "updateMode": "create",
  "limitImportCount": 0,
  "sleepAppUpload": 1000,
  "host": "...",
  "authUserDir": "...",
  "authUserId": "...",
  "fileName": "reload-tasks.csv"
}
2023-10-07T06:15:40.583Z verbose: 
2023-10-07T06:15:40.583Z verbose: About to call action handler for subcommand: task-import
2023-10-07T06:15:40.586Z verbose: Certificate file ...ctrl-q/cert/client.pem found
2023-10-07T06:15:40.587Z verbose: Certificate key file ...ctrl-q/cert/client_key.pem found
2023-10-07T06:15:40.588Z verbose: Ctrl-Q was started as a stand-alone binary: false
2023-10-07T06:15:40.588Z verbose: Ctrl-Q was started from .../ctrl-q
2023-10-07T06:15:40.588Z info: Import tasks from definitions in file "reload-tasks.csv"
2023-10-07T06:15:40.589Z verbose: Getting tags from QSEoW...
2023-10-07T06:15:40.671Z info: Successfully retrieved 25 tags from QSEoW
2023-10-07T06:15:40.671Z verbose: Getting custom properties from QSEoW...
2023-10-07T06:15:40.692Z info: Successfully retrieved 29 custom properties from QSEoW
2023-10-07T06:15:40.693Z verbose: Task file "reload-tasks.csv" found
2023-10-07T06:15:40.706Z error: IMPORT TASK: Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
    at new NodeError (node:internal/errors:393:5)
    at Parser.onclose (node:internal/streams/end-of-stream:142:30)
    at Parser.emit (node:events:525:35)
    at emitCloseNT (node:internal/streams/destroy:132:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

Expected Behavior

No response

To Reproduce

No response

@mountaindude
Copy link
Contributor Author

Also, external program tasks are not supported in the task-import command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant