Exception caught: Cannot show selection prompt since the current terminal isn't interactive. #117

Closed
opened 2025-12-24 10:40:05 +00:00 by PietjePuk · 3 comments

While installing OF-DL on an unRaid Docker I get the following error.
auth.json is fine, as it is logging in.
It makes no difference if I choose DisableBrowserAuth True or false.
On a clean install I am able to choose DisableBrowserAuth False and login into OF and have the docker create a auth.json, but as soon as I do the docker shuts down with the error noted below.

config.conf located successfully!
You are running OF-DL version 1.9.17
Latest Release version: 1.9.17
auth.json located successfully!
rules.json located successfully!
FFmpeg located successfully. Path auto-detected: /usr/bin/ffmpeg
ffmpeg version detected as 6.1.1
device_client_id_blob located successfully!
device_private_key located successfully!
Logged In successfully as ******************
Exception caught: Cannot show selection prompt since the current terminal isn't interactive.

StackTrace:    at Spectre.Console.ListPrompt`1.Show(ListPromptTree`1 tree, CancellationToken cancellationToken, Int32 requestedPageSize, Boolean wrapAround) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\Prompts\List\ListPrompt.cs:line 28
   at Spectre.Console.SelectionPrompt`1.ShowAsync(IAnsiConsole console, CancellationToken cancellationToken) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\Prompts\SelectionPrompt.cs:line 87
   at Spectre.Console.SelectionPrompt`1.Show(IAnsiConsole console) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\Prompts\SelectionPrompt.cs:line 79
   at Spectre.Console.AnsiConsole.Prompt[T](IPrompt`1 prompt) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\AnsiConsole.Prompt.cs:line 21
   at OF_DL.Program.HandleUserSelection(APIHelper apiHelper, Config currentConfig, Dictionary`2 users, Dictionary`2 lists) in /src/OF DL/Program.cs:line 2812
   at OF_DL.Program.DownloadAllData(APIHelper m_ApiHelper, Auth Auth, Config Config) in /src/OF DL/Program.cs:line 994
   at OF_DL.Program.Main(String[] args) in /src/OF DL/Program.cs:line 899

Press any key to exit.

config.conf

# Auth
Auth {
  DisableBrowserAuth = "true"
}
# External Tools
External {
  FFmpegPath = ""
}
# Download Settings
Download {
  Media {
    DownloadAvatarHeaderPhoto = true
    DownloadPaidPosts = true
    DownloadPosts = true
    DownloadArchived = true
    DownloadStreams = true
    DownloadStories = true
    DownloadHighlights = true
    DownloadMessages = true
    DownloadPaidMessages = true
    DownloadImages = true
    DownloadVideos = true
    DownloadAudios = true
  }
  IgnoreOwnMessages = false
  DownloadPostsIncrementally = false
  BypassContentForCreatorsWhoNoLongerExist = false
  DownloadDuplicatedMedia = false
  SkipAds = false
  DownloadPath = "/data"
  DownloadOnlySpecificDates = false
  DownloadDateSelection = "before"
  CustomDate = ""
  ShowScrapeSize = false
  DisableTextSanitization = false
  DownloadVideoResolution = "source"
}
# File Settings
File {
  PaidPostFileNameFormat = ""
  PostFileNameFormat = ""
  PaidMessageFileNameFormat = ""
  MessageFileNameFormat = ""
  RenameExistingFilesWhenCustomFormatIsSelected = false
}
# Creator-Specific Configurations
CreatorConfigs {
}
# Folder Settings
Folder {
  FolderPerPaidPost = false
  FolderPerPost = false
  FolderPerPaidMessage = false
  FolderPerMessage = false
}
# Subscription Settings
Subscriptions {
  IncludeExpiredSubscriptions = false
  IncludeRestrictedSubscriptions = false
  IgnoredUsersListName = ""
}
# Interaction Settings
Interaction {
  NonInteractiveMode = false
  NonInteractiveModeListName = ""
  NonInteractiveModePurchasedTab = false
}
# Performance Settings
Performance {
  Timeout = -1
  LimitDownloadRate = false
  DownloadLimitInMbPerSec = 4
}
# Logging/Debug Settings
Logging {
  LoggingLevel = "error"
}
While installing OF-DL on an unRaid Docker I get the following error. auth.json is fine, as it is logging in. It makes no difference if I choose DisableBrowserAuth True or false. On a clean install I am able to choose DisableBrowserAuth False and login into OF and have the docker create a auth.json, but as soon as I do the docker shuts down with the error noted below. ``` config.conf located successfully! You are running OF-DL version 1.9.17 Latest Release version: 1.9.17 auth.json located successfully! rules.json located successfully! FFmpeg located successfully. Path auto-detected: /usr/bin/ffmpeg ffmpeg version detected as 6.1.1 device_client_id_blob located successfully! device_private_key located successfully! Logged In successfully as ****************** Exception caught: Cannot show selection prompt since the current terminal isn't interactive. StackTrace: at Spectre.Console.ListPrompt`1.Show(ListPromptTree`1 tree, CancellationToken cancellationToken, Int32 requestedPageSize, Boolean wrapAround) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\Prompts\List\ListPrompt.cs:line 28 at Spectre.Console.SelectionPrompt`1.ShowAsync(IAnsiConsole console, CancellationToken cancellationToken) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\Prompts\SelectionPrompt.cs:line 87 at Spectre.Console.SelectionPrompt`1.Show(IAnsiConsole console) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\Prompts\SelectionPrompt.cs:line 79 at Spectre.Console.AnsiConsole.Prompt[T](IPrompt`1 prompt) in C:\Users\rhysd\Downloads\spectre.console-0.47.0 mod\spectre.console-0.47.0\src\Spectre.Console\AnsiConsole.Prompt.cs:line 21 at OF_DL.Program.HandleUserSelection(APIHelper apiHelper, Config currentConfig, Dictionary`2 users, Dictionary`2 lists) in /src/OF DL/Program.cs:line 2812 at OF_DL.Program.DownloadAllData(APIHelper m_ApiHelper, Auth Auth, Config Config) in /src/OF DL/Program.cs:line 994 at OF_DL.Program.Main(String[] args) in /src/OF DL/Program.cs:line 899 Press any key to exit. ``` **config.conf** ``` # Auth Auth { DisableBrowserAuth = "true" } # External Tools External { FFmpegPath = "" } # Download Settings Download { Media { DownloadAvatarHeaderPhoto = true DownloadPaidPosts = true DownloadPosts = true DownloadArchived = true DownloadStreams = true DownloadStories = true DownloadHighlights = true DownloadMessages = true DownloadPaidMessages = true DownloadImages = true DownloadVideos = true DownloadAudios = true } IgnoreOwnMessages = false DownloadPostsIncrementally = false BypassContentForCreatorsWhoNoLongerExist = false DownloadDuplicatedMedia = false SkipAds = false DownloadPath = "/data" DownloadOnlySpecificDates = false DownloadDateSelection = "before" CustomDate = "" ShowScrapeSize = false DisableTextSanitization = false DownloadVideoResolution = "source" } # File Settings File { PaidPostFileNameFormat = "" PostFileNameFormat = "" PaidMessageFileNameFormat = "" MessageFileNameFormat = "" RenameExistingFilesWhenCustomFormatIsSelected = false } # Creator-Specific Configurations CreatorConfigs { } # Folder Settings Folder { FolderPerPaidPost = false FolderPerPost = false FolderPerPaidMessage = false FolderPerMessage = false } # Subscription Settings Subscriptions { IncludeExpiredSubscriptions = false IncludeRestrictedSubscriptions = false IgnoredUsersListName = "" } # Interaction Settings Interaction { NonInteractiveMode = false NonInteractiveModeListName = "" NonInteractiveModePurchasedTab = false } # Performance Settings Performance { Timeout = -1 LimitDownloadRate = false DownloadLimitInMbPerSec = 4 } # Logging/Debug Settings Logging { LoggingLevel = "error" } ```
Collaborator

What Docker run command are you using? It looks like that is incorrect.

What Docker run command are you using? It looks like that is incorrect.
Author

It is unraid, so it does not run like a command line docker.

I was able to find the command it is running in the background.

docker run
-d
--name='OF-DL'
--net='bridge'
--pids-limit 2048
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Basilisk"
-e HOST_CONTAINERNAME="OF-DL"
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.icon='https://w7.pngwing.com/pngs/979/242/png-transparent-onlyfans-app-logo-tech-companies.png'
-v '/mnt/user/appdata/ofdl/config':'/config':'rw'
-v '/mnt/user/Downloads/ofdl/data':'/data':'rw' 'git.ofdl.tools/sim0n00ps/of-dl:latest'

It is unraid, so it does not run like a command line docker. I was able to find the command it is running in the background. docker run -d --name='OF-DL' --net='bridge' --pids-limit 2048 -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Basilisk" -e HOST_CONTAINERNAME="OF-DL" -l net.unraid.docker.managed=dockerman -l net.unraid.docker.icon='https://w7.pngwing.com/pngs/979/242/png-transparent-onlyfans-app-logo-tech-companies.png' -v '/mnt/user/appdata/ofdl/config':'/config':'rw' -v '/mnt/user/Downloads/ofdl/data':'/data':'rw' 'git.ofdl.tools/sim0n00ps/of-dl:latest'
Collaborator

You need to use one of the NonInteractiveMode settings if you want to run without a terminal. By default, ofdl is a console application, but there are some automated scraping options you can use if you're not looking to run it directly. https://docs.ofdl.tools/config/all-configuration-options/#noninteractivemode

You need to use one of the NonInteractiveMode settings if you want to run without a terminal. By default, ofdl is a console application, but there are some automated scraping options you can use if you're not looking to run it directly. https://docs.ofdl.tools/config/all-configuration-options/#noninteractivemode
melithine added the
invalid
label 2025-12-24 19:10:58 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sim0n00ps/OF-DL#117
No description provided.