• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

LrFileUtils.readFile an internal error has occurred

New Here ,
Nov 03, 2017 Nov 03, 2017

Copy link to clipboard

Copied

Hello,

When I try to get file content using below command, I'm getting "an internal error has occurred" error

local file_content = LrFileUtils.readFile(filepath)

my file path is: /var/folders/0f/91c91r2s72g1rc76kl04m1nh0000gn/T/51EE2F0E-938A-4BAE-9775-C59F4D9E020E/lightroom-hdr-merge-3.jpg

When I try to open file in finder, I can achieve to do this but I cannot read it using LrFileUtils.readFile

Does anyone have any idea?

Thanks in advance

PS: I'm creating the filepath using rendition:waitForRender() functions

ss01.jpg

ss02.jpg

TOPICS
SDK

Views

464

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 03, 2017 Nov 03, 2017

Copy link to clipboard

Copied

LATEST

Is it possible that at the point readFile() is called, the file doesn't actually exist yet, but will (very soon) be created by another LR task? Then by the time you look for it in Finder, it's there. Without seeing more of your code, I can't tell if that's a reasonable possibility.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines