Skip to main content
Participant
November 3, 2017
Question

LrFileUtils.readFile an internal error has occurred

  • November 3, 2017
  • 1 reply
  • 588 views

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

This topic has been closed for replies.

1 reply

johnrellis
Genius
November 3, 2017

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.