Skip to content

Writing output file to local directory blows up #1

@conorgil

Description

@conorgil

The only change is in the --output flag

This works fine:

java -jar ../utils/qualtrics2sheets.jar \
  download_qualtrics \
  --token XYZ \
  --datacenter 123 \
  --survey ABC \
  --output output \
  --filename prescreen_data.csv \
  --if-exists overwrite

This blows up:

java -jar ../utils/qualtrics2sheets.jar \
  download_qualtrics \
  --token XYZ \
  --datacenter 123 \
  --survey ABC \
  --output . \
  --filename prescreen_data.csv \
  --if-exists overwrite

with this error:

2024-04-17 16:36:02.776 - q2s.qualtrics.DownloadSurvey - DEBUG - unzipping ABC export as prescreen_data.csv to .
2024-04-17 16:36:02.780 - q2s.Main - ERROR - execution failed: java.lang.RuntimeException: Entry with an illegal path: TOTP app analysis - Prescreen - Pilot - 2024-03-13.csv
java.lang.RuntimeException: Entry with an illegal path: TOTP app analysis - Prescreen - Pilot - 2024-03-13.csv
	at q2s.util.UnzipKt.unzipAndRename(Unzip.kt:85)
	at q2s.qualtrics.DownloadSurveyKt.downloadExport(DownloadSurvey.kt:131)
	at q2s.qualtrics.DownloadSurveyKt$downloadExport$1.invokeSuspend(DownloadSurvey.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:87)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:61)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:40)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at q2s.qualtrics.DownloadQualtricsCommand.execute(DownloadQualtricsCommand.kt:53)
	at kotlinx.cli.ArgParser.parse(ArgParser.kt:657)
	at kotlinx.cli.ArgParser.parse(ArgParser.kt:530)
	at q2s.MainKt.main(Main.kt:21)

``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions