Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug]: Seeing remoteCall not defined when using merge feature

Open vedhavyas opened this issue 1 year ago • 2 comments

Installation Method

Docker

The Problem

Tried to use merge feature today and started seeing remoteCall not defined

Screenshot 2024-11-12 at 6 07 49 PM

Version of Stirling-PDF

0.32.0

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

/merge-pdfs

Docker Configuration

pdf:
    image: frooodle/s-pdf:latest
    container_name: sterling_pdf
    hostname: sterling_pdf
    restart: unless-stopped
    volumes:
      - /appdata/sterling-pdf/training_data:/usr/share/tessdata
      - /sterling-pdf/configs:/configs
    environment:
      - DOCKER_ENABLE_SECURITY=false
      - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=true
      - LANGS=en_US

Relevant Log Output

Nothing on the logs

This is what I found on the browser console

downloader.js:71 ReferenceError: remoteCall is not defined
    at HTMLFormElement.<anonymous> (downloader.js:40:7)
    at HTMLFormElement.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
(anonymous)	@	downloader.js:71


### Additional Information

_No response_

### Browsers Affected

_No response_

### No Duplicate of the Issue

- [X] I have verified that there are no existing issues raised related to my problem.

vedhavyas avatar Nov 12 '24 12:11 vedhavyas

Hey @vedhavyas! 👋 I'm here to help you with any bugs, questions, or contributions you have regarding Stirling-PDF. I'm not a human, but I can definitely assist you while you wait for a human maintainer. Let me know how I can assist you!

The error message "remoteCall not defined" suggests that the remoteCall function is either missing or not properly imported in the JavaScript file downloader.js. This issue is occurring when you attempt to use the merge feature in Stirling-PDF version 0.32.0.

Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Check for Missing Scripts: Ensure that all necessary JavaScript files are included in your project. The remoteCall function might be defined in a separate script that is not being loaded.

  2. Inspect JavaScript Imports: Verify that the downloader.js file correctly imports or references the script where remoteCall is defined. If remoteCall is part of a library or another module, ensure that it is properly imported.

  3. Review Recent Changes: Since this issue started occurring in version 0.32.0, review any recent changes to the JavaScript files related to the merge feature. There might have been updates or refactoring that affected the availability of the remoteCall function.

  4. Console and Network Logs: Check the browser's console and network logs for any errors or failed requests that might provide additional context about why remoteCall is not defined.

  5. Docker Configuration: Ensure that your Docker setup is correctly configured and that all necessary files are being mounted and accessible within the container.

If these steps do not resolve the issue, you may need to look into the specific implementation details of the remoteCall function within the Stirling-PDF codebase or reach out to the maintainers for further assistance.

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Nov 12 '24 12:11 dosubot[bot]

Can you check if there is a cache issue I cant reproduce this with https://stirlingpdf.io/merge-pdfs Can you do f12 then right click refresh button in top left, and select hard refresh with cache clear?

Frooodle avatar Nov 12 '24 13:11 Frooodle

Looks like it. Still see the same after hard refresh but cannot reproduce this in incognito.

So must be cache issue. Thanks!

vedhavyas avatar Nov 13 '24 07:11 vedhavyas