Getting Error: API request failed in javascript assistant

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Getting Error: API request failed in javascript assistant

Postby sbennet1 » Sat Nov 15, 2025 9:48 am

I am getting the following errors in the Java Scripting Assistant

Error: API request failed
No Code returned


I Have the include comments checked

I am using the latest version of chrome on a windows 11 computer

I tried it with deep thinking set and get "Error: API request failed "
I tried it with reasoning set and get "No Code returned "
I did not try it with fast.

I have the following input

// - Ask once for a user prefix default to "_SLB_".
// - Collect as many date properties as possible (Windows, EXIF, MediaInfo). skip object("created") object("modified") object("accessed")
// - Include fileProperty("MediaInfo:Recorded_Date")
// - Alert if oldest equals 2999-12-01.
// - Determine the oldest date, set file timestamps (created/modified) to it.
// - Build folder path as YYYY\MM from the oldest date.
// - Prefix filename with description of the oldest date.
// - Also prefix all found dates with descriptions.
// - Finally assign to newName.

Assistant fails after 10 to 30 seconds after : it shows
Sending request...
Thinking...
Still working - checking docs...
Formatting answer...

It seems to be failing related to the complexity of to query. sometimes it seems to be random.

I would include a screenshot but I don't know how to do it inline for the post.
sbennet1
 
Posts: 16
Joined: Mon Oct 27, 2025 1:55 pm

Re: Getting Error: API request failed in javascript assistant

Postby sbennet1 » Sat Nov 15, 2025 6:22 pm

the problem seems to be with running the utility to many times in a row quickly with different input.

Also, is there a limit on the produced script?

The script stopped at line 106 and 3,602 characters.
sbennet1
 
Posts: 16
Joined: Mon Oct 27, 2025 1:55 pm

Re: Getting Error: API request failed in javascript assistant

Postby Admin » Mon Nov 17, 2025 2:57 am

Hello, yes, there are limits on the size of input and output in terms of token. If limits are passed , it might fail to return an answer, sorry.
Admin
Site Admin
 
Posts: 3118
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support